Skip to main content

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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

myFbase-0.1.1-py2.py3-none-any.whl (4.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file myFbase-0.1.1.tar.gz.

File metadata

  • Download URL: myFbase-0.1.1.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.20.0

File hashes

Hashes for myFbase-0.1.1.tar.gz
Algorithm Hash digest
SHA256 15d1d25843b824494e2fdd0fca534cb7828eed8b3a2697853dfc94d19da4c518
MD5 492353a638087fad2764dc7b6d4bf6aa
BLAKE2b-256 a410422b9b56d433322326aa54b626d50174a9c07b7e410905da03a18050eacd

See more details on using hashes here.

File details

Details for the file myFbase-0.1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: myFbase-0.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.20.0

File hashes

Hashes for myFbase-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a67501e129b6ac47011e7ddf11a120b51ae6e3983970a2a976c89d6649938b51
MD5 69a68a84d59238fb39784b1188c39f39
BLAKE2b-256 f93ef75119adb948447c00750e94ca2cbfda022b0444c1aa322474da3efe4d3c

See more details on using hashes here.

Supported by

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