bda.basen 1.0
bda.basen
Module to represent integers as any other based representation string. This module is made under the KISS paradigm.
There exist direct converter functions.
>>> from bda.basen import str2int >>> from bda.basen import int2str>>> ref = 'abcde'>>> int2str(12345, ref) 'deddea'>>> str2int('abcde', ref) 194
Or a direct representation call. this might be more in future.
>>> from bda.basen import base62 >>> term = base62(100) >>> str(term) '1C'>>> term = base62('1D') >>> int(term) 101
| File | Type | Py Version | Uploaded on | Size | # downloads |
|---|---|---|---|---|---|
| bda.basen-1.0.tar.gz (md5) | Source | 2009-07-16 | 2KB | 588 | |
- Author: BlueDynamics Alliance
- Home Page: https://svn.bluedynamics.net/svn/internal/mdb
- License: GNU General Public Licence
- Categories
- Package Index Owner: rnix, jensens
- DOAP record: bda.basen-1.0.xml
