Skip to main content

Change to/from any base you like

Project description


Change to/from any base you like: hexadecimal, binary or whatever you want.

How to use


$ pip install myFbase


from myFbase import MyFbase

mfb = MyFbase('abc')
print(mfb.encode(8))  # cc
print(mfb.decode('cc'))  # 8

mfb = MyFbase('0123456789ABCDEF')  # Hex base
print(mfb.encode(15))  # F
print(mfb.encode(16))  # 10
print(mfb.encode(4294967295))  # FFFFFFFF

Project details

Download files

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

Files for myFbase, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size myFbase-0.1.1-py2.py3-none-any.whl (4.3 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size myFbase-0.1.1.tar.gz (2.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page