Package for converting decimal numbers into binary numbers
Project description
decimal-binary-converter
Python packge for converting decimal numbers into binary.
This package is used to provide an example of how to create a Python package. ✨
How to make the package available 🙌
If necessary, use a virtual environment:
- Add the virtual environment to the
.gitignorefile by writing<name-of-venv>/. - Set up the virtual environment using:
python -m venv <name-of-venv>. - Activate the virtual environment using:
venv/Scripts/activate(Windows).
Run the following commands:
- Install dependencies using:
pip install setuptools build wheel twine. - Build source code and binary distribution wheel using:
python -m build. - A: Upload the distribution wheel to the Test Python Package Index using:
twine upload --repository testpypi dist/*. (Requires an API Key. Get it by registering an account). - B: Upload the distribution wheel to the Python Package Index using:
twine upload dist/*. - Install the package using
pip install <your-package>.
Details 🔎
In the __init__.py file, we leave it non-empty to make it easier to import stuff from the pacakge.
- Instead of having to write
from decimal_binary_converter.converter import decimal_to_binarywhen importing, - We can write
from decimal_binary_converter import decimal_to_binary.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file simple_example_package_of_decimal_binary_converter-0.0.1.tar.gz.
File metadata
- Download URL: simple_example_package_of_decimal_binary_converter-0.0.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
70111f72f53ee0fa13fb7911e3627adabca69bbe1d126a3d1256bc448b626149
|
|
| MD5 |
aba1ac9647a95ea73e1939bcd64b7da5
|
|
| BLAKE2b-256 |
489ac345e008d5e5f6e560af692e72a4da33686e1ca089ea957253405b9d5e8c
|
File details
Details for the file simple_example_package_of_decimal_binary_converter-0.0.1-py3-none-any.whl.
File metadata
- Download URL: simple_example_package_of_decimal_binary_converter-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a2f7e36d4e329fe7e275147c7673c62de4578609ef693217589e5b08fea4442
|
|
| MD5 |
c53259cc30795779311b891885fc3b2e
|
|
| BLAKE2b-256 |
f938aff8e6b587a0b760502e8d6591ed10717a735a201c52d6e128266f2dbd3c
|