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

from baseconvertpy import *

Converting bases

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

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

Converting from base X to base 10

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.1.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: baseconvertpy-1.0.1.tar.gz
  • Upload date:
  • Size: 2.0 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.1.tar.gz
Algorithm Hash digest
SHA256 5820d7e2b05130c8e4c0701113f86280f35241526ad1d4021ca0c7d903408f60
MD5 e0d1e273f47cf05e2083271a95a1b86c
BLAKE2b-256 cad6d507009b4917032062056f61a61faf7b85dd9e68c9245e20e1f17986ffc8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: baseconvertpy-1.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c3404d9ad1730d4b0fa119e59f33c758343f59876c0e8444b298cd5617a28f99
MD5 8db760f2e68d32609db5e0a93b6695eb
BLAKE2b-256 7ae0239b3cbd3a059dc170aa98c2a5b86bc831e7b776087b644ca74dc77862ac

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