{"id":26418670,"url":"https://github.com/devknown/alpha-id-py","last_synced_at":"2025-03-18T01:54:20.270Z","repository":{"id":182733908,"uuid":"656008236","full_name":"devknown/alpha-id-py","owner":"devknown","description":"Python library for generating short alphanumeric strings from integers","archived":false,"fork":false,"pushed_at":"2024-05-09T21:55:27.000Z","size":15,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-01T04:36:34.850Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devknown.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-20T04:46:55.000Z","updated_at":"2024-09-18T14:36:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"93c5ad0e-e18c-4865-b230-41d77ed2b2a4","html_url":"https://github.com/devknown/alpha-id-py","commit_stats":null,"previous_names":["devknown/alpha-id-py"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devknown%2Falpha-id-py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devknown%2Falpha-id-py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devknown%2Falpha-id-py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devknown%2Falpha-id-py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devknown","download_url":"https://codeload.github.com/devknown/alpha-id-py/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244141583,"owners_count":20404835,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-18T01:54:19.730Z","updated_at":"2025-03-18T01:54:20.257Z","avatar_url":"https://github.com/devknown.png","language":"Python","readme":"\u003ch4 align=\"center\"\u003eAlphaID - Convert any integer to a short alphanumeric version\u003c/h4\u003e\n\n\u003cp align=\"center\"\u003e\n   \u003ca href=\"https://github.com/devknown/alpha-id-py/releases\"\u003e\n   \u003cimg alt=\"Release\" src=\"https://img.shields.io/github/v/release/devknown/alpha-id-py?v=1\"\u003e\n   \u003ca href=\"https://github.com/devknown/alpha-id-py/actions/workflows/tests.yml\"\u003e\n   \u003cimg alt=\"Tests\" src=\"https://github.com/devknown/alpha-id-py/actions/workflows/tests.yml/badge.svg\"\u003e\n   \u003ca href=\"https://github.com/devknown/alpha-id-py/actions/workflows/build.yml\"\u003e\n   \u003cimg alt=\"Build\" src=\"https://github.com/devknown/alpha-id-py/actions/workflows/build.yml/badge.svg\"\u003e\n   \u003ca href=\"https://github.com/devknown/alpha-id-py/blob/main/LICENSE\"\u003e\n   \u003cimg alt=\"License\" src=\"https://img.shields.io/github/license/devknown/alpha-id-py\"\u003e\n   \u003ca href=\"https://pypi.org/project/alpha-id-py/\"\u003e\n   \u003cimg alt=\"Python version\" src=\"https://img.shields.io/pypi/pyversions/alpha-id-py.svg\"\u003e\n\u003c/p\u003e\n\n# alpha-id-py\n\n`alpha-id-py` is a Python library that allows you to generate short alphanumeric strings from integers. It can be useful for creating compact, unique, and obfuscated identifiers.\n\n## AlphaID Library Versions\nThese versions should all function harmoniously, allowing for encoding in one language and decoding in another.\n- [PHP Version](https://github.com/devknown/alpha-id)\n- [JavaScript Version](https://github.com/devknown/alpha-id-js)\n- [Python Version](https://github.com/devknown/alpha-id-py)\n\n## Installation\n\nYou can install `alpha-id-py` using pip:\n\n```bash\npip install alpha-id-py\n```\n\n## Getting Started\n\nSimple usage looks like this:\n\n```python\nfrom alpha_id.alpha_id import AlphaID\n\nalpha_id = AlphaID()\n\nencoded_string = alpha_id.convert(258456357951)\nprint(encoded_string)\n# Output: '4y7exoH'\n\noriginal_number = alpha_id.recover('4y7exoH')\nprint(original_number)\n# Output: 258456357951\n```\n\n## Configuring a Global Key\n\nYou can set a global key that will be used for encoding and decoding if no specific key is provided. This can be done using the `config` method:\n\n```python\nfrom alpha_id.alpha_id import AlphaID\n\nalpha_id = AlphaID()\nalpha_id.config('my_key')\n\nencoded_string = alpha_id.convert(258456357951)\nprint(encoded_string)\n# Output: '4ymMZq9'\n\noriginal_number = alpha_id.recover('4ymMZq9')\nprint(original_number)\n# Output: 258456357951\n```\n\n## License\n\n`alpha-id-py` is open-source software licensed under the [MIT license](https://opensource.org/licenses/MIT).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevknown%2Falpha-id-py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevknown%2Falpha-id-py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevknown%2Falpha-id-py/lists"}