decimal_binary_converter
A Python package to convert numbers between decimal and binary representations.
Features
- Convert decimal to binary with
decimal_to_binary - Convert binary to decimal with
binary_to_decimal
Installation
Copy the dec_bi_conv folder into your project or use pip install . from the root folder.
Usage
from dec_bi_conv import decimal_to_binary, binary_to_decimal
print(decimal_to_binary(15)) # '1111' print(binary_to_decimal('1111')) # 15
Testing
Run tests using pytest: pytest tests/
License
See LICENSE.txt for terms.
Metadata
Release files for decimal-binary-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)
| File | Size | Uploaded | |
|---|---|---|---|
| decimal_binary_converter-0.1.0.tar.gz | 2.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| decimal_binary_converter-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.4 kB
Release files / decimal_binary_converter-0.1.0.tar.gz
| Download URL | decimal_binary_converter-0.1.0.tar.gz |
|---|---|
| Size | 2.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d1643dac4b932199a832e45a6da9c61fcea13ea62ebed9e97cef2c41daca4fbd
|
|
BLAKE2b-256 checksum How to use checksums |
a0547ff089769bd144381c8858596b1757f44c197a6e3bc70f0b12a06b3e4047
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.8.10
|
Release files / decimal_binary_converter-0.1.0-py3-none-any.whl
| Download URL | decimal_binary_converter-0.1.0-py3-none-any.whl |
|---|---|
| Size | 2.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
13fc256d2ad49e7e8f2407094e9787e504542b2f0d00f1684f7b776346e51a11
|
|
BLAKE2b-256 checksum How to use checksums |
bd1ded755c28b48b9ce87ec19a63904336d4d6ee9da99c38dae93c3917fa8604
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.8.10
|