Registry / serialization / base36

base36

JSON →
library0.1.1pypypi✓ verified 83d ago

A Python library for encoding and decoding integers to/from base36 strings. Version 0.1.1 is the latest stable release as of April 2026. The library is actively maintained with no breaking changes reported.

pip install base36
INSTALL
IMPORT
SIG · BASE36
B
base36
serializationpythonv0.1.1
Install
1.5s avg
Import
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.1.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 17.8MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.5s · import 0.000s · 18MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

dumps
from base36 import dumps
from base36 import encode
loads
from base36 import loads
from base36 import decode

Basic usage: encode an integer to a base36 string and decode it back.

from base36 import encode, decode # Encode integer to base36 string encoded = encode(123456789) print(encoded) # Output: '21i3v9' # Decode base36 string back to integer decoded = decode('21i3v9') print(decoded) # Output: 123456789
Debug
Known issues
gotchaInput type: encode expects an integer, decode expects a string. Passing incorrect types will raise TypeError.
fix
Ensure encode receives an int and decode receives a str.
affects: all
gotchaCase sensitivity: decode is case-insensitive but returns an integer. Lowercase output from encode is standard.
fix
Use lowercase strings for consistency; decode handles uppercase as well.
affects: all
Upgrade
Version history
0.1.1latest on PyPI · released Dec 7, 2014
Audit
Dependencies

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
14
Amazon
1
OpenAI (training)
1
Resources
base36 — pip install base36 · libregistry