{"id":23343,"library":"bases","title":"bases","description":"Python library for general Base-N encodings (e.g., base64, base32, base16, hex, binary, and custom alphabets). Version 0.3.0 supports Python 3.7+ and uses runtime type validation. Release cadence is low; no releases since 2022.","status":"active","version":"0.3.0","language":"python","source_language":"en","source_url":"https://github.com/hashberg-io/bases","tags":["base64","base32","base16","encoding","decoding","base-n"],"install":[{"cmd":"pip install bases","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Runtime type validation","package":"typing-validation","optional":false}],"imports":[{"wrong":"from bases import Alphabet","symbol":"alphabet","correct":"from bases import alphabet"},{"symbol":"base64","correct":"from bases import base64"},{"symbol":"base32","correct":"from bases import base32"}],"quickstart":{"code":"from bases import Base64Encoding\nencoding = Base64Encoding()\ndata = b'hello world'\nencoded = encoding.export(data)\nprint(encoded)  # Output: aGVsbG8gd29ybGQ=\ndecoded = encoding.import_bytes(encoded)\nprint(decoded)  # Output: b'hello world'\n","lang":"python","description":"Import Base64Encoding, encode bytes, and decode back."},"warnings":[{"fix":"Use `encoding.import_bytes(encoded)` and handle bytes output.","message":"The `import_bytes` method returns bytes, not string. Do not assume it returns a string.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Upgrade to Python 3.7+ or use `bases==0.1.1`.","message":"Python 3.6 support was removed in v0.2.0. If your project requires Python 3.6, pin to v0.1.1.","severity":"deprecated","affected_versions":">=0.2.0"},{"fix":"Ensure alphabet has no duplicate characters.","message":"Custom alphabets must be strings of unique characters without duplicates. Violation raises ValueError.","severity":"gotcha","affected_versions":">=0.1.0"}],"env_vars":null,"search_vec":"'0.3.0':20 '2022':36 '3.7':23 'alphabet':18 'base':1,7,43 'base-n':6,42 'base16':13,39 'base32':12,38 'base64':11,37 'binari':15 'cadenc':30 'custom':17 'decod':41 'e.g':10 'encod':9,40 'general':5 'hex':14 'librari':3 'low':32 'n':8,44 'python':2,22 'releas':29,34 'runtim':26 'sinc':35 'support':21 'type':27 'use':25 'valid':28 'version':19","created_at":"2026-05-01T08:07:16.410511+00:00","updated_at":"2026-05-01T08:07:16.410511+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"0.3.0","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/hashberg-io/bases","docs":null,"changelog":null,"pypi":"https://pypi.org/project/bases/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["serialization"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-08-02","install_tag":null}}