skip to navigation
skip to content

Not Logged In

dna 0.0.3

Generic python utilities

python library DNA

Generic python utilities


pip install dna


import dna.utils as utils
import dna.logger as logger

log_setup = logger.setup(level='info', filename='app.log')
log = logger.logger(__name__)
with log_setup.applicationbound():'hello', where='world')

    useless_id = utils.generate_unique_id()
    useless_name = utils.generate_random_name()

    if utils.docker_check() and utils.is_running('ipyhon'):

        print utils.Version('0.4.1')

        module = utils.dynamic_import('dna.settings', 'LOG')
        print utils.emphasis(module, align=False)

        print utils.self_ip()
File Type Py Version Uploaded on Size
dna-0.0.3.tar.gz (md5) Source 2014-04-14 5KB
  • Downloads (All Versions):
  • 15 downloads in the last day
  • 89 downloads in the last week
  • 610 downloads in the last month