Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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


Release history Release notifications

Download files

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

Files for bases.py, version 0.2.2
Filename, size File type Python version Upload date Hashes
Filename, size bases.py-0.2.2.tar.gz (2.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page