skillfed

python-baseconv

Convert numbers from base 10 integers to base X strings and back again.

python-baseconv v1.2.2 684.5K downloads/30d#5,357 on PyPI42
Permissive license Python Software Foundation License Abandoned released

What it is and what it does

baseconv is a lightweight utility for converting numbers between base 10 and arbitrary other bases. It provides pre-built converters for common bases (binary, hexadecimal, base36, base58, base62, base64) and a BaseConverter class that lets you define custom alphabets for encoding and decoding. The package has no runtime dependencies and works by treating numbers as strings in the target base, supporting both positive and negative integers with customizable sign characters.

The package is mature and stable—it was last updated in 2019 and has been in production use for years—but is no longer actively maintained. The repository is archived and there have been no commits since 2020. It remains useful for straightforward base-conversion tasks in applications that do not require ongoing updates or support.

Use it for:

  • Encode large integers into shorter, human-readable strings using base58 or base62 for URL slugs or identifiers
  • Convert binary or hexadecimal representations for low-level data processing or debugging
  • Create custom number encodings with a specific alphabet for domain-specific applications
  • Decode base64-encoded numbers in legacy systems or protocols that use non-standard base representations

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Converts integers to and from strings in arbitrary bases (binary, hex, base36, base58, base62, base64, or custom alphabets) and back again.

Yes, if you need straightforward base conversion and can accept no future maintenance. The package is stable, has no known vulnerabilities, and carries no dependencies. Install it only if your use case is simple and unlikely to require updates; avoid it if you need active support or compatibility assurance with future Python versions.

Install

python-baseconv on PyPI

pip

pip install python-baseconv

uv

uv add python-baseconv

poetry

poetry add python-baseconv

Installing python-baseconv

Before you install

High install friction: the package is abandoned (last commit 2020-03-02, repository archived), with no runtime dependencies but no active maintenance. It has been stable for years and carries no known vulnerabilities, but you will receive no updates or support if issues arise.

License in practice

Licensed under the Python Software Foundation License (permissive), which permits use, modification, and distribution with minimal restrictions. No GPL code is included.

Quickstart

pip install python-baseconv

from baseconv import base2, base16, base36, base58, base62, base64
base2.encode(1234)
# Returns: '10011010010'
base16.decode('4d2')
# Returns: '1234'

Verify before relying

  • Whether the package works correctly with modern Python 3 versions beyond those tested at release
  • Whether custom BaseConverter instances handle edge cases in all modern Python environments

Package facts

License Python Software Foundation License (permissive)
Python support not specified
Install friction high — source build required
Runtime dependencies none
Maintenance abandoned — 2,689 days since the last release
Last repo commit (repository archived)
First released
Downloads 684,546/month — #5,357 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: python-baseconv-1.2.2.tar.gz

Keywords: converter, numbers, math

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Python Software Foundation LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2.7Programming Language :: Python :: 3Topic :: Software Development :: Libraries :: Python Modules

Tags

base conversionnumber base encoder decoderbinary hex base64 convertcustom alphabet number encodingbase X string conversion
number-encodingbase-conversion

More Python Modules packages