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 details)
Built Distribution
File details
Details for the file baseXtoY-1.2.post1.tar.gz
.
File metadata
- Download URL: baseXtoY-1.2.post1.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74726ff9c8df66b36a66f8a0c48c0985df9802de76dc1acfe79a24bac5c9dea5 |
|
MD5 | a1d549f841f1d19b957a29f90db27574 |
|
BLAKE2b-256 | d8a75330c3c94f285903923444fd21287cc3db765839d59966e6afa3b5e6e95a |
File details
Details for the file baseXtoY-1.2.post1-py3-none-any.whl
.
File metadata
- Download URL: baseXtoY-1.2.post1-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f56a7ce600e35b2be35cfc3560156f4bdb3ef03b6c8fd2cfe1b8d6da25a43510 |
|
MD5 | 5c036c21ee35f1ca95dbccfd609fad43 |
|
BLAKE2b-256 | ee863aaa70d0044b3c9875364f17ac9d1bf4bff94e09222acf7bb1e79eafe67c |