Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Generic python utilities

Project Description
python library DNA
==================

[![Coverage Status](https://coveralls.io/repos/hivetech/dna/badge.png)](https://coveralls.io/r/hivetech/dna)

> Generic python utilities

Installation
------------

```console
pip install dna
```

Example
-----

```python
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():

log.info('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()
```
Release History

Release History

This version
History Node

0.0.7

History Node

0.0.6

History Node

0.0.5

History Node

0.0.4

History Node

0.0.3

History Node

0.0.2

History Node

0.0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
dna-0.0.7.tar.gz (11.1 kB) Copy SHA256 Checksum SHA256 Source Oct 11, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting