A simple base converter in python3.
Project description
Description
baseXtoY
is a simple multi-base converter.
It supports base conversions from base 1 to base 36.
Numbers contain characters from 1 to 9, and from A to Z.
Note that baseXtoY
is case-insensitive.
Usage
>>> import baseXtoY
>>> baseXtoY.license() --> displays license
baseXtoY.baseXtoY(num, **X, **Y) --> converts num from base X to base Y
# X and Y are keywords arguments
# example:
>>> baseXtoY.baseXtoY('FF', X=16, Y=10) # will work
255
>>> baseXtoY.baseXtoY('FF', 16, 10) # will not work since X and Y are not positional.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: baseXtoY() takes 1 positional argument but 3 were given
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
baseXtoY-1.2.post1.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for baseXtoY-1.2.post1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f56a7ce600e35b2be35cfc3560156f4bdb3ef03b6c8fd2cfe1b8d6da25a43510 |
|
MD5 | 5c036c21ee35f1ca95dbccfd609fad43 |
|
BLAKE2b-256 | ee863aaa70d0044b3c9875364f17ac9d1bf4bff94e09222acf7bb1e79eafe67c |