Skip to main content

A python port for https://github.com/aseemk/bases.js

Project description

Utility for converting numbers to/from different bases/alphabets. Common bases have convenience aliases (see https://github.com/belldandu/bases.py#usage && https://github.com/belldandu/bases.py#api), but arbitrary/custom alphabets can be used.

As most people have noticed pythons int() only supports one way base conversions. e.g.( int(‘lol’,36) # 28101 ). Pythons format() also only supports conversion the other way up to base 16. This library was created to help those python programmers by providing a bases conversion system that works both ways, can use customized conversions and supports from base 2 all the way up to base 64 all in one library.

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

bases.py-0.2.2.tar.gz (2.2 kB view details)

Uploaded Source

File details

Details for the file bases.py-0.2.2.tar.gz.

File metadata

  • Download URL: bases.py-0.2.2.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for bases.py-0.2.2.tar.gz
Algorithm Hash digest
SHA256 ec651140d531b01b4711c77129030455f494b13dcd989987ceb02968c43bf9b1
MD5 1216affec337066abf95d2688d2d09f7
BLAKE2b-256 445aa77ee65fbee7751ffc734084bea60c4a139828010c1dcc4208c51de033d1

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