Skip to main content

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:

  1. Add the virtual environment to the .gitignore file by writing <name-of-venv>/.
  2. Set up the virtual environment using: python -m venv <name-of-venv>.
  3. Activate the virtual environment using: venv/Scripts/activate (Windows).

Run the following commands:

  1. Install dependencies using: pip install setuptools build wheel twine.
  2. Build source code and binary distribution wheel using: python -m build.
  3. 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).
  4. B: Upload the distribution wheel to the Python Package Index using: twine upload dist/*.
  5. 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_binary when importing,
  • We can write from decimal_binary_converter import decimal_to_binary.

Project details


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

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file simple_example_package_of_decimal_binary_converter-0.0.1.tar.gz.

File metadata

File hashes

Hashes for simple_example_package_of_decimal_binary_converter-0.0.1.tar.gz
Algorithm Hash digest
SHA256 70111f72f53ee0fa13fb7911e3627adabca69bbe1d126a3d1256bc448b626149
MD5 aba1ac9647a95ea73e1939bcd64b7da5
BLAKE2b-256 489ac345e008d5e5f6e560af692e72a4da33686e1ca089ea957253405b9d5e8c

See more details on using hashes here.

File details

Details for the file simple_example_package_of_decimal_binary_converter-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for simple_example_package_of_decimal_binary_converter-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4a2f7e36d4e329fe7e275147c7673c62de4578609ef693217589e5b08fea4442
MD5 c53259cc30795779311b891885fc3b2e
BLAKE2b-256 f938aff8e6b587a0b760502e8d6591ed10717a735a201c52d6e128266f2dbd3c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page