Change to/from any base you like
Project description
myFbase
Change to/from any base you like: hexadecimal, binary or whatever you want.
How to use
Installation
$ pip install myFbase
Usage
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.
Source Distribution
myFbase-0.1.1.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for myFbase-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a67501e129b6ac47011e7ddf11a120b51ae6e3983970a2a976c89d6649938b51 |
|
MD5 | 69a68a84d59238fb39784b1188c39f39 |
|
BLAKE2b-256 | f93ef75119adb948447c00750e94ca2cbfda022b0444c1aa322474da3efe4d3c |