Skip to main content

A simple way to convert numbers from one base to another.

Project description

Base Change

An easy way to switch between bases in Python.

Usage

Install

pip install baseconvertpy

Import

import baseconvertpy

Converting bases

baseconvertpy.convert(<Number>, <New Base>, <Original Base (Default is 10)>, <Charset (Default is characters for up to base 62)>)

Converting from base 10 to base X

baseconvertpy.to_baseX(<Number in base 10>, <New Base>, <Charset (Default is characters for up to base 62)>)

Converting from base X to base 10

baseconvertpy.to_base10(<Number in base X>, <Original Base>, <Charset (Default is characters for up to base 62)>)

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

baseconvertpy-1.0.2.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

baseconvertpy-1.0.2-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

File details

Details for the file baseconvertpy-1.0.2.tar.gz.

File metadata

  • Download URL: baseconvertpy-1.0.2.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2

File hashes

Hashes for baseconvertpy-1.0.2.tar.gz
Algorithm Hash digest
SHA256 8f6166c83bc178b052c3cfd1339b29253b6d56518abeac9b1a3b9b83bc77c850
MD5 8644f7397de905f6ecd2462133f00ce4
BLAKE2b-256 efb4f7590c3ff3afaf4265c94430bdbb5e0f1d3b339ed758db5ba51f6ebc9507

See more details on using hashes here.

File details

Details for the file baseconvertpy-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: baseconvertpy-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2

File hashes

Hashes for baseconvertpy-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 584ee2b4b32ac069deb34233c414c915eeb006158ae10e76f5452ddfd9f315cb
MD5 8632cbf2e9071da89393cfd7fd8c76bc
BLAKE2b-256 bafedfb2b69dc7c1497d1fc1f719610047c1f5b9657241a129ecc97c7dae06fc

See more details on using hashes here.

Supported by

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