Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(0)  |  Derive(0)  |  Import(6)
simple token service 

src/p/t/ptah-0.8.0/ptah/password.py   ptah(Download)
 
import ptah
from ptah import config, token
 
_ = translationstring.TranslationStringFactory('ptah')

src/p/t/ptah-HEAD/ptah/password.py   ptah(Download)
 
import ptah
from ptah import config, token
 
_ = translationstring.TranslationStringFactory('ptah')

src/p/t/ptah-HEAD/ptah/tests/test_token.py   ptah(Download)
    def test_token(self):
        from ptah import token
 
        tt = token.TokenType('unique-id', timedelta(minutes=20))
        self.init_ptah()
    def test_token_type(self):
        from ptah import token
 
        token.TokenType('unique-id', timedelta(minutes=20))
        token.TokenType('unique-id', timedelta(minutes=20))

src/p/t/ptah-0.8.0/ptah/tests/test_token.py   ptah(Download)
    def test_token(self):
        from ptah import token
 
        tt = token.TokenType('unique-id', timedelta(minutes=20))
        self.init_ptah()
    def test_token_type(self):
        from ptah import token
 
        token.TokenType('unique-id', timedelta(minutes=20))
        token.TokenType('unique-id', timedelta(minutes=20))