{"id":20991,"library":"base36","title":"base36","description":"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.","status":"active","version":"0.1.1","language":"python","source_language":"en","source_url":"https://github.com/tonyseek/python-base36","tags":["base36","encoding","radix","positional numeral system"],"install":[{"cmd":"pip install base36","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"","wrong":"","symbol":"encode","correct":"from base36 import encode"},{"note":"","wrong":"","symbol":"decode","correct":"from base36 import decode"}],"quickstart":{"code":"from base36 import encode, decode\n\n# Encode integer to base36 string\nencoded = encode(123456789)\nprint(encoded)  # Output: '21i3v9'\n\n# Decode base36 string back to integer\ndecoded = decode('21i3v9')\nprint(decoded)  # Output: 123456789","lang":"python","description":"Basic usage: encode an integer to a base36 string and decode it back."},"warnings":[{"fix":"Ensure encode receives an int and decode receives a str.","message":"Input type: encode expects an integer, decode expects a string. Passing incorrect types will raise TypeError.","severity":"gotcha","affected_versions":"all"},{"fix":"Use lowercase strings for consistency; decode handles uppercase as well.","message":"Case sensitivity: decode is case-insensitive but returns an integer. Lowercase output from encode is standard.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Convert the string to int first: encode(int('123'))","cause":"Passing a string to encode instead of an integer.","error":"TypeError: 'str' object cannot be interpreted as an integer"},{"fix":"Ensure the input string contains only 0-9 and a-z (or A-Z) characters.","cause":"Decode expects a valid base36 string; non-alphanumeric characters cause this error.","error":"ValueError: invalid literal for int() with base 36: '...'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}