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

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

        def createPeerID(ins='---'):
    assert isinstance(ins, str)
    assert len(ins) == 3
    return _idprefix + ins + _idrandom[0]
        


src/b/i/BitTornado-HEAD/btdownloadgui.py   BitTornado(Download)
from BitTornado.natpunch import UPnP_test
from BitTornado.clock import clock
from BitTornado import version, createPeerID, report_email
 
try:
                break
 
            myid = createPeerID()
            random.seed(myid)
 

src/f/r/FriendlyTorrent-HEAD/src/tornado/tftornado.py   FriendlyTorrent(Download)
from time import strftime
from BitTornado.clock import clock
from BitTornado import createPeerID, version
 
assert sys.version >= '2', "Install Python 2.0 or greater"
                break
 
            myid = createPeerID()
            seed(myid)
 

src/h/e/Herd-HEAD/murder_client.py   Herd(Download)
from time import strftime
from BitTornado.clock import clock
from BitTornado import createPeerID, version
from BitTornado.ConfigDir import ConfigDir
 
        configdir.deleteOldCacheData(config['expire_cache_data'])
 
        myid = createPeerID()
        seed(myid)
 

src/b/i/BitTornado-HEAD/btdownloadheadless.py   BitTornado(Download)
from BitTornado.natpunch import UPnP_test
from BitTornado.clock import clock
from BitTornado import createPeerID, version
from BitTornado.ConfigDir import ConfigDir
 
        configdir.deleteOldCacheData(config['expire_cache_data'])
 
        myid = createPeerID()
        random.seed(myid)
 

src/b/i/BitTornado-HEAD/btdownloadcurses.py   BitTornado(Download)
from BitTornado.natpunch import UPnP_test
from BitTornado.clock import clock
from BitTornado import createPeerID, version
from BitTornado.ConfigDir import ConfigDir
 
            configdir.deleteOldCacheData(config['expire_cache_data'])
 
            myid = createPeerID()
            random.seed(myid)
 

src/s/w/swarm-HEAD/swarm/client.py   swarm(Download)
from BitTornado.download_bt1 import BT1Download, defaults, get_response
from BitTornado.RawServer import RawServer
from BitTornado.bencode import bencode
from BitTornado import createPeerID
from swarm.concurrent import spawn_later, Event
        self.verbose = verbose
 
        self.id = createPeerID()
 
        self.done_flag = Event()