{"id":22221455,"url":"https://github.com/amasecocoa/python-aid","last_synced_at":"2026-01-25T11:05:22.942Z","repository":{"id":244648510,"uuid":"815881324","full_name":"AmaseCocoa/python-aid","owner":"AmaseCocoa","description":"python-aidはMisskeyのaid/aidxのPython向けの実装です。","archived":false,"fork":false,"pushed_at":"2024-10-20T09:41:06.000Z","size":30,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-27T08:56:33.630Z","etag":null,"topics":["aid","aidx"],"latest_commit_sha":null,"homepage":"","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/AmaseCocoa.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,"zenodo":null}},"created_at":"2024-06-16T12:11:56.000Z","updated_at":"2025-01-18T16:09:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"41d5b180-c45c-4e57-9429-ea9dfb52d931","html_url":"https://github.com/AmaseCocoa/python-aid","commit_stats":null,"previous_names":["amasecocoa/python-aid"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/AmaseCocoa/python-aid","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmaseCocoa%2Fpython-aid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmaseCocoa%2Fpython-aid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmaseCocoa%2Fpython-aid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmaseCocoa%2Fpython-aid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AmaseCocoa","download_url":"https://codeload.github.com/AmaseCocoa/python-aid/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmaseCocoa%2Fpython-aid/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28752470,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T10:25:12.305Z","status":"ssl_error","status_checked_at":"2026-01-25T10:25:11.933Z","response_time":113,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["aid","aidx"],"created_at":"2024-12-02T23:13:35.296Z","updated_at":"2026-01-25T11:05:22.937Z","avatar_url":"https://github.com/AmaseCocoa.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# python-aid\npython-aidはMisskeyのaid/aidxのPython向けの実装です。\n\naidは[この実装](https://github.com/misskey-dev/misskey/blob/c1514ce91dc08481a092a789ee37da546cdb4583/packages/backend/src/misc/id/aid.ts)、aidxは[この実装](https://github.com/misskey-dev/misskey/blob/c1514ce91dc08481a092a789ee37da546cdb4583/packages/backend/src/misc/id/aidx.ts)に基づいています。\n\n## aid/aidxとは？\nMisskeyで利用されているID生成アルゴリズムです。\n\n## Example\n### aid\n```python\nfrom python_aid import aid\n\ngenerated = aid.genAid()\nprint(\"aid: \" + generated)\n\nprint(\"time: \" + aid.parseAid(generated).strftime('%Y-%m-%d %H:%M:%S.%f'))\n```\n#### With timestamp\n```python\nfrom python_aid import aid\n\ngenerated = aid.genAid(timestamp=1718546963) # 1718546963 = 2024/06/16 23:09:23 (JST)\nprint(\"aid: \" + generated)\n\nprint(\"time: \" + aidx.parseAid(generated).strftime('%Y-%m-%d %H:%M:%S.%f'))\n```\n### aidx\n```python\nfrom python_aid import aidx\n\ngenerated = aidx.genAidx()\nprint(\"aidx: \" + generated)\n\nprint(\"time: \" + aidx.parseAidx(generated).strftime('%Y-%m-%d %H:%M:%S.%f'))\n```\n#### With timestamp\n```python\nfrom python_aid import aidx\n\ngenerated = aidx.genAidx(timestamp=1718546963) # 1718546963 = 2024/06/16 23:09:23 (JST)\nprint(\"aidx: \" + generated)\n\nprint(\"time: \" + aidx.parseAidx(generated).strftime('%Y-%m-%d %H:%M:%S.%f'))\n```\n## 試す\n[python-aid sandbox](https://codepiece.pages.dev/?state=N4Igxg9gJgpiBcIBmAnCBbABABwJ4BcALCAOwH0BDASykyvWwhX02qgA8AdE7gcxhIwUFfDFoBeVjXYA6fiQCC0gBQBKbthRUS%2BZZxBt28TPswBqTPKEix6niU3bd%2B%2FPRjHTFwzOwUUAZxglDmUrYVEoVRl%2FfBQkV3QYZQByAFIATQBaVPRs2lSACXhUgFligGUZVKRk1VUQABoQXzAAawp%2BfwQAbWaCYhJMthAAXSb8P358BBAYqAgAV2mm%2BYB3EgAbCAooLvhukYBfIA%3D%3D)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famasecocoa%2Fpython-aid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famasecocoa%2Fpython-aid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famasecocoa%2Fpython-aid/lists"}