Skip to main content

bda.basen

Project description

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

Project details


Download files

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

Source Distribution

bda.basen-1.0.tar.gz (2.6 kB view details)

Uploaded Source

File details

Details for the file bda.basen-1.0.tar.gz.

File metadata

  • Download URL: bda.basen-1.0.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for bda.basen-1.0.tar.gz
Algorithm Hash digest
SHA256 875e94495f8eab616820fa731e313a3581da8227e008e521c24685934bf001af
MD5 b79be9e8be880d3d32734a1a9945d438
BLAKE2b-256 6717bd8fec256829bcfe834a6c04128cbddcb1998a6efffa6f1f5c0da8c26b92

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page