baseint
BaseInt is a small Python library for converting numbers in arbitrary bases.
Features
- Create BaseInt instances from integers, strings, lists and tuples.
- Convert between bases easily.
- Supports custom character maps.
Example
from baseint import BaseInt
b = BaseInt("1111", 2)
print(b.toDecimal()) # 15
print(f"{b.sconvert(8)!r}") # BI:8:17
Release files for baseint 0.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| baseint-0.0.8.tar.gz | 2.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| baseint-0.0.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.9 kB
Release files / baseint-0.0.8.tar.gz
| Download URL | baseint-0.0.8.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4fbc73ab8839dc4f524e2211e1ba403c6a818e7966110f47ba205f573e4ef71f
|
|
BLAKE2b-256 checksum How to use checksums |
0a7146a675043c908117520cdaeeb0f34052bb004bfece925a75d7cb8615b39d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.2
|
Release files / baseint-0.0.8-py3-none-any.whl
| Download URL | baseint-0.0.8-py3-none-any.whl |
|---|---|
| Size | 2.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2a92e447e6c54b3de42b63447d4f03bf7cd5ef410200a13070e376f379e62081
|
|
BLAKE2b-256 checksum How to use checksums |
b817df3e27c790588379af122ebfc5f8e8cf5ac9dd209b1f7f0310f5ae336887
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.2
|