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

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/a/n/Anomos-HEAD/Anomos/track.py   Anomos(Download)
from Anomos.NatCheck import NatCheck
from Anomos.TwistedNatCheck import NatCheckCTXFactory, NatChecker
from Anomos.NetworkModel import NetworkModel
from Anomos.bencode import bencode, bdecode, Bencached
from Anomos.parseargs import parseargs, formatDefinitions
        self.natcheck_ctx = NatCheckCTXFactory(self.certificate)
 
        self.networkmodel = NetworkModel(config)
        self.natchecker = NatChecker(self.natcheck_ctx, self.networkmodel.natcheck_cb)
 

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"))