python-baseconv
Convert numbers from base 10 integers to base X strings and back again.
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-baseconvuv
uv add python-baseconvpoetry
poetry add python-baseconvInstalling 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
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
base36Converts integers to and from base36…
permissive · top 15,000 on PyPI
based58Encodes and decodes data using Base58 and…
unclear · top 15,000 on PyPI
py-multibaseEncodes and decodes data using the Multibase…
permissive · top 15,000 on PyPI
pybase62Encodes and decodes integers and byte sequences…
unclear · top 5,000 on PyPI
base58Encodes and decodes data using Base58 and…
permissive · top 5,000 on PyPI
base64ioProvides a streaming interface for Base64…
permissive · top 15,000 on PyPI
base58checkEncodes and decodes byte arrays using the…
permissive · top 15,000 on PyPI
basesProvides customizable Base-N encoding and…
unclear · top 15,000 on PyPI
hashidsGenerates short, unique, non-sequential hashes…
permissive · top 5,000 on PyPI
asn1Encodes and decodes ASN.1 data structures using…
permissive · top 5,000 on PyPI