Skip to main content

Numerical-base-converter

This package is to convert a value from a numerical base to another. It can work with python >= 3.0 and was created under python 3.8.5

Here is the GitHub link: https://github.com/Leoriem-code/Numerical-base-converter

The 'base' function use the 'convert' function to convert the numbers given (as a string). If a list/tuple is provided, the function will do all the string in the list/tuple. If all the numbers in the are not to be converted with the same base, please provided these values in a list following this: base([n_1, n_2, ..., [n_x, new_w_1, new_t_1], n_x+1, ..., [n_z, new_w_2, new_t_2]], base_written_in, base_to_write_to)

Here, 'base_written_in' and 'base_to_write_to' are the main base in wich we have to write in and, 'n_1', 'n_2', 'n_x', 'n_x+1' and 'n_z' are numbers we want to convert. However, the difference lay in the base in wich we want to write them. 'n_x' and all the numbers that follow will be considered written in base 'new_w_1'. They also will be written in base 'new_t_1' until say otherwise (like with [n_z, new_w_2, new_t_2])

So a lengthy explanation to say that in the example: /!\ /!\ read carefully /!\ /!
base(['0', '1', ['2', 10, 2], '3', ['4', 10, 3], '5', '6'], 2, 10)

    0 and 1 are considered written in base 2 and will be output in base 10. So the output will be ['0', '1']
    2 is written in base 10 and will be output in base 2, output: '10'
    3 will be considered like 2 (because we have not asked to change the values of the base), output: '11'
    4, 5 and 6 are written in base 10 and will be written in base 3, output: ['11', '12', '20']

Metadata

Release files for Base-converter 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Base-converter 0.1.0
File Size Uploaded Provenance
Base converter-0.1.0.tar.gz 3.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for Base-converter 0.1.0
File Interpreter ABI Platform
Base_converter-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.1 kB

Release files / Base converter-0.1.0.tar.gz

Download URL Base converter-0.1.0.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
01b7e323ff2fe1ee31e3cc5ce8df460c764c69858d7cd37b24d2781e50a07287
BLAKE2b-256 checksum
How to use checksums
c80e39661f632db7767c9a2b198263310e5685ea0a23646ae48994ef1f488423
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

Release files / Base_converter-0.1.0-py3-none-any.whl

Download URL Base_converter-0.1.0-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7c47c528aeddf662dc3857a912e2b0ea48ed3f08d6e5a4b9dfc0bda8c2e36047
BLAKE2b-256 checksum
How to use checksums
be44c0da68897815766afacc1fea9bb172d46802ad65fdd1aa65dc225e2fc05a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

Security for Base-converter 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page