Skip to main content

A simple tool for interconversion between binary, decimal, octal and hexadecimal

Project description

PyInterconvert

A simple tool for interconversion of binary, decimal, hexadecimal and octal

Current functions

  • BinToDec
  • BinToOct
  • BinToHex
  • DecToBin
  • DecToOct
  • DecTohex
  • HexToBin
  • OctToBin

For other Hexadecimal and Octal conversions the given functions can be used together as follows:-

BinToDec(HexToBin(arg)) #Hexadecimal to Decimal
BinToOct(HexToBin(arg)) #Hexadecimal to Octal
BinToDec(OctToBin(arg)) #Octal to Decimal
BinToHex(OctToBin(arg)) #Octal to Hexadecimal

Arg is of type string

Sample Usage

from pyinterconvert import ConvClient

c = ConvClient()

print(c.BinToOct(1010101))
#prints 125

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

pyinterconvert-0.1.5.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

pyinterconvert-0.1.5-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file pyinterconvert-0.1.5.tar.gz.

File metadata

  • Download URL: pyinterconvert-0.1.5.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.6.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for pyinterconvert-0.1.5.tar.gz
Algorithm Hash digest
SHA256 bcd9acfbf4d3241aeec849d47dba4e876a8789083172daff4d5248ccf8bfb889
MD5 0dff006388fd5c91f9a54d5f785238b3
BLAKE2b-256 3329a3a20962a61e462fe87f1cccd1e1242ca39af89a8e284b218aa577b9c6e9

See more details on using hashes here.

File details

Details for the file pyinterconvert-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: pyinterconvert-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.6.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for pyinterconvert-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 101ba07e9c92c4e1a95f9a2e0134d7d453425cc786732371ee86a18e1f499bda
MD5 ad68da386f09ee3b790218439abdf36d
BLAKE2b-256 0485c67d8160efd5cec4e11f0e19e8bea8bec0fc4dae9c50d5851d087f0d72c8

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