# python-radix
Python-radix library
The library contains tools for conversion numbers to a new base. Current version works with radixes from 2 to 36.
Python-radix usage examples
Python-radix has both procedural and object-oriented solutions.
Procedural way example
# to convert number 4 from base 10 to base 2
cast(4, 10, 2)
>>’100’
You can use both str and int types for the number you convert.
Object oriented way example
# create an object to convert numbers from one base to another (here it converts from base 10 to base 2)
new = Converter(10, 2)
new.convert(4)
>>’100’
This will work too:
new = Converter(10, 2)
new.convert(‘4’)
>>’100’
Metadata
Release files for python-radix 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| python-radix-0.1.1.tar.gz | 2.1 kB | Without provenance | Details for python-radix-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| python_radix-0.1.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for python_radix-0.1.1-py2.py3-none-any.whl |
Total release size: 6.6 kB
Release files / python-radix-0.1.1.tar.gz
| Download URL | python-radix-0.1.1.tar.gz |
|---|---|
| Size | 2.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
483b5ff239d2f58c128ab9d737cd2cf86b413bdf64c3c68dbfc699cab2a7eeea
|
|
BLAKE2b-256 checksum How to use checksums |
a0ff6f70f140aafbdd4a341ad259af925ea41e685ada27c71bca549433741cfc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / python_radix-0.1.1-py2.py3-none-any.whl
| Download URL | python_radix-0.1.1-py2.py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
85c7119bebd19e5cf0475d60ebdfe3ef1bdc11690e8f3bef4c5894b2eee113a9
|
|
BLAKE2b-256 checksum How to use checksums |
f33b301b2fae3f22d5aad5572a20b0316ca78ca74d171e39e44481801da88ee9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for python-radix 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.