{"id":15957437,"url":"https://github.com/feeeek/aiomoe","last_synced_at":"2025-04-23T11:57:52.720Z","repository":{"id":57409035,"uuid":"398859999","full_name":"FeeeeK/aiomoe","owner":"FeeeeK","description":"Fully asynchronous trace.moe API wrapper","archived":false,"fork":false,"pushed_at":"2021-08-28T19:46:31.000Z","size":11,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-23T11:57:46.131Z","etag":null,"topics":[],"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/FeeeeK.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}},"created_at":"2021-08-22T17:32:55.000Z","updated_at":"2022-06-26T09:47:29.000Z","dependencies_parsed_at":"2022-09-26T17:10:53.982Z","dependency_job_id":null,"html_url":"https://github.com/FeeeeK/aiomoe","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FeeeeK%2Faiomoe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FeeeeK%2Faiomoe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FeeeeK%2Faiomoe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FeeeeK%2Faiomoe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FeeeeK","download_url":"https://codeload.github.com/FeeeeK/aiomoe/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250430589,"owners_count":21429323,"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":"2024-10-07T13:41:42.889Z","updated_at":"2025-04-23T11:57:52.697Z","avatar_url":"https://github.com/FeeeeK.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AioMoe\n\nFully asynchronous trace.moe API wrapper\n\n## Installation\n\nYou can install the stable version from PyPI:\n\n    $ pip install aiomoe\n\nOr get it from github:\n\n    $ pip install https://github.com/FeeeeK/aiomoe/archive/refs/heads/master.zip\n\n## Usage\n\n### Get info about your account\n\n```python\nimport asyncio\nfrom aiomoe import AioMoe\n\ntm = AioMoe() # or AioMoe(token=\"xxxxxxxx\")\n\nasync def main():\n    me = await tm.me()\n    print(me)\n    print(f\"Used quota: {me.quota_used}/{me.quota}\")\n\nasyncio.run(main())\n```\nThe output will be like this:\n```\nUser(error=None, id='your ip', priority=0, concurrency=1, quota=1000, quota_used=0)\nUsed quota: 0/1000\n```\n\n### Search anime\n```python\nimport asyncio\nfrom aiomoe import AioMoe\n\ntm = AioMoe()\n\nasync def main():\n    image = \"https://i.imgur.com/Xrb06w5.png\"\n    search_results = await tm.search(file_source=image, anilist_info=True)\n    print(search_results.result[0].anilist.title.romaji)\n    # 'Steins;Gate 0'\n\nasyncio.run(main())\n```\nYou can pass a link to an image, bytes or file-like object (`io.BytesIO`)\n```python\n    with open(\"image.png\", \"rb\") as file:\n        search_results = await tm.search(file)\n```\nAnd use additional parameters such as:\n - anilist_info - Return an `Anilist` object instead of anilist id\n - cut_borders - Cut out black borders from screenshots\n - anilist_id - Filter results by anilist id\n\n## See Also\n  - [Response objects](https://github.com/FeeeeK/aiomoe/blob/master/aiomoe/models/models.py)\n  - [trace.moe API docs](https://soruly.github.io/trace.moe-api/#/docs)\n  - [trace.moe API swagger docs](https://app.swaggerhub.com/apis/soruly/api.trace.moe)\n\n## Contributing\n\n1.  Fork it\n2.  Create your feature branch (`git checkout -b my-new-feature`)\n3.  Commit your changes (`git commit -am 'Add some feature'`)\n4.  Push to the branch (`git push origin my-new-feature`)\n5.  Create new Pull Request\n\n## License\n\nReleased under the MIT license.\n\nCopyright by [FeeeeK](https://github.com/feeeek).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeeeek%2Faiomoe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffeeeek%2Faiomoe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeeeek%2Faiomoe/lists"}