This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Module to represent integers as any other based representation string.

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 for a 62 ascii based base.

>>> from bda.basen import base62
>>> term = base62(100)
>>> str(term)
'1C'

>>> term = base62('1D')
>>> int(term)
101

This works also with uuids, which is with ~22 chars less than the default hex with 32 chars:

>>> term = base62(uuid.uuid4())

basej uses 91 chars ascii as base (no backslash, no single/double quotes, no control chars). With this a chance to get 20 chars for a uuid is high:

>>> term = basej(uuid.uuid4())

Source Code and Contributions

If you want to help with the development (improvement, update, bug-fixing, …) of bda.basen this is a great idea! Submit issues or pull requests!

The code is located at github.

Maintainer is Jens Klein, Robert Niederreiter and the BlueDynamics Alliance developer team. We appreciate any contribution and if a release is needed to be done on pypi, please just contact one of us dev@bluedynamics dot com

Code is licensed under GPL v2. History =======

1.1 (2016-05-25)

  • Support for python uuid module [jensens]
  • more generic basex base class and special basej class. [jensens]

1.0

  • initial implementation [rnixx, jensens]
Release History

Release History

1.1

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
bda.basen-1.1.tar.gz (3.4 kB) Copy SHA256 Checksum SHA256 Source May 25, 2016

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