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

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)

src/a/n/Anomos-HEAD/Anomos/NetworkModel.py   Anomos(Download)
def tc_test(numnodes=1000, numedges=10000):
    import math
    import time
    from binascii import b2a_hex
    Anomos.Crypto.init('./')

src/a/n/Anomos-HEAD/Anomos/download.py   Anomos(Download)
    def __init__(self, config, doneflag, listen_fail_ok=False):
        self.config = dict(config)
        Anomos.Crypto.init(self.config['data_dir'])
        self.cert_flag = threading.Event()
        self.event_handler = EventHandler(doneflag)

src/a/n/Anomos-HEAD/Anomos/track.py   Anomos(Download)
        return
 
    Anomos.Crypto.init(config['data_dir'])
    servercert = Anomos.Crypto.Certificate(loc="server", tracker=True, ephemeral=False)
    e = EventHandler()

src/a/n/Anomos-HEAD/anontrack.py   Anomos(Download)
    twistlog.PythonLoggingObserver(loggerName='anomos').start()
 
    Anomos.Crypto.init(config['data_dir'])
    servercert = Anomos.Crypto.Certificate(loc="server", tracker=True, ephemeral=False)
    t = Tracker(config, servercert, reactor.callLater)

src/a/n/Anomos-HEAD/tests/GenGraph.py   Anomos(Download)
    def __init__(self, p_reach=1):
        self.root = os.path.split(os.path.abspath(sys.argv[0]))[0]
        Anomos.Crypto.init(self.root)
        self.nm = NetworkModel.NetworkModel({'allow_close_neighbors':0})
        self.cert = X509.load_cert(os.path.join(Anomos.Crypto.global_cryptodir,"fake-peer-cert.pem"))

src/a/n/Anomos-HEAD/tests/FakePeer.py   Anomos(Download)
def init():
    root = os.path.split(os.path.abspath(sys.argv[0]))[0]
    Anomos.Crypto.init(root)
 
class FakePeer(object):