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

All Samples(8)  |  Call(4)  |  Derive(0)  |  Import(4)

src/d/a/Dandelion-Message-Service-HEAD/dandelionpy/dandelion/gui/gui.py   Dandelion-Message-Service(Download)
import dandelion
from dandelion.util import *
from dandelion.identity import IdentityInfo
from re import sub
import time
 
        for id in newidentities:
            id_info = IdentityInfo(self._db, id)
            if id_info.nick is None:
                thisname = encode_b64_bytes(id.fingerprint).decode()
 
        self._selected_identity = self.identities[selindex]
        id_info = IdentityInfo(self._db, self._selected_identity)
 
        # delete previous text in editnick
 
        if self._selected_identity:
            id_info = IdentityInfo(self._db, self._selected_identity)
            newnick = self.editnick.get()
            id_info.nick = newnick

src/d/a/Dandelion-Message-Service-HEAD/dandelionpy/dandelion/database.py   Dandelion-Message-Service(Download)
along with Dandelion.  If not, see <http://www.gnu.org/licenses/>.
"""
from dandelion.identity import Identity, PrivateIdentity, DSA_key, RSA_key, IdentityInfo
from dandelion.message import Message
from dandelion.util import encode_b64_bytes, decode_b64_bytes, encode_b64_int, \

src/d/a/Dandelion-Message-Service-HEAD/dandelionpy/dandelion/test/identity_test.py   Dandelion-Message-Service(Download)
import dandelion.identity
 
from dandelion.identity import IdentityInfo
from dandelion.database import ContentDB
 
 
        # Test creation
        id_info_a = IdentityInfo(db, id_a)
        self.assertEqual(id_info_a.db, db)
        self.assertEqual(id_info_a.id.fingerprint, id_a.fingerprint)

src/d/a/Dandelion-Message-Service-HEAD/dandelionpy/dandelion/test/database_test.py   Dandelion-Message-Service(Download)
from dandelion.message import Message
from dandelion.database import ContentDB, ContentDBException
from dandelion.identity import IdentityInfo
 
class DatabaseTest(unittest.TestCase):