{"id":15009749,"url":"https://github.com/icepick4/onepyece","last_synced_at":"2025-08-01T00:05:40.182Z","repository":{"id":65536863,"uuid":"593379162","full_name":"icepick4/onepyece","owner":"icepick4","description":"💻 Python API wrapper for https://api-onepiece.com/  🏴‍☠️","archived":false,"fork":false,"pushed_at":"2024-02-14T11:11:51.000Z","size":3520,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T19:51:32.651Z","etag":null,"topics":["api","api-tool","api-wrapper","flake8","lint","linter","one-piece","onepiece","package","py","pypi","python","python-package","python3","testing","wrapper"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/onepyece/","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/icepick4.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-01-25T21:27:53.000Z","updated_at":"2024-06-17T11:18:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"66323c2a-5740-4319-ae9d-50a83aab499a","html_url":"https://github.com/icepick4/onepyece","commit_stats":{"total_commits":70,"total_committers":3,"mean_commits":"23.333333333333332","dds":0.2571428571428571,"last_synced_commit":"b3ffc747c89bede5d4fa3dc02f9bb0eaef2ed07d"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icepick4%2Fonepyece","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icepick4%2Fonepyece/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icepick4%2Fonepyece/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icepick4%2Fonepyece/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/icepick4","download_url":"https://codeload.github.com/icepick4/onepyece/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248083152,"owners_count":21045050,"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":["api","api-tool","api-wrapper","flake8","lint","linter","one-piece","onepiece","package","py","pypi","python","python-package","python3","testing","wrapper"],"created_at":"2024-09-24T19:28:17.718Z","updated_at":"2025-04-09T17:51:42.466Z","avatar_url":"https://github.com/icepick4.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# One Pyece\n\n\u003cimg src=\"https://raw.githubusercontent.com/icepick4/onepyece/main/docs/onepyece_logo.png\" width=\"200px\"/\u003e\n\n_Image generated with Midjourney._\n\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/onepyece)\n![PyPI](https://img.shields.io/pypi/v/onepyece)\n![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/icepick4/onepyece/python-package.yml)\n![PyPI - License](https://img.shields.io/pypi/l/onepyece)\n![GitHub last commit](https://img.shields.io/github/last-commit/icepick4/onepyece)\n\n[![forthebadge](https://forthebadge.com/images/badges/made-with-python.svg)](https://forthebadge.com)\n[![forthebadge](https://forthebadge.com/images/badges/built-with-love.svg)](https://forthebadge.com)\n\n\u003c/div\u003e\n\n## Description\n\nPython **API wrapper** for https://api-onepiece.com/ \\\nThank's to this package you can simply get informations about One Piece characters, fruits, crews, etc. The datas provided by the API are in french only for the moment. \\\nLearn more about possibilities in the [Usage](#usage) section.\n\n⚠️*This package is still in development and it's my very first python package, so it may not be stable.*\n\n## What's New in v2.0\n\n**Multilanguage Support:** One Pyece now supports multiple languages! Starting from version 2.0, you can generate an \\`API\\` object with a language parameter, making it possible to fetch data in either French or English. English is the default language if the parameter is not set. This enhancement aims to make our API more accessible and user-friendly for our international audience.\n\n## Installation\n\n**There are several solutions :**\n\n-   Use this command `pip install onepyece` to get it from [PyPi](https://pypi.org/project/onepyece/)\n-   Use this command `pip install git+https://github.com/icepick4/onepyece` to download it from this repo.\n-   Download either the .zip or the tar.gz archive from the last release and then use this command `pip install \u003cpath_to_archive\u003e`\n\n## Usage\n\n```py\n\u003e\u003e\u003e import onepyece as op\n\n\n\u003e\u003e\u003e sanji = op.character_by_name('sanji') # You can get a character by its name\n\u003e\u003e\u003e sanji.size\n\u003e\u003e\u003e '180cm'\n\u003e\u003e\u003e sanji.crew['roman_name']\n\u003e\u003e\u003e 'Mugiwara no Ichimi'\n\n\u003e\u003e\u003e nb_fruits = op.count_fruits() # You can get the count of a specific endpoint\n\u003e\u003e\u003e nb_fruits.count\n\u003e\u003e\u003e 206\n\u003e\u003e\u003e nb_fruits.url\n\u003e\u003e\u003e 'https://api.api-onepiece.com/v2/fruits/en/count'\n\n\u003e\u003e\u003e crews = op.API('crews') # List of all the crews in dict form as you can see below\n\u003e\u003e\u003e crews[0]\n\u003e\u003e\u003e API(object={'endpoint': None, 'search_term': None, 'resource': None, 'lang': 'en', 'url': None, 'id': 1, 'name': 'The Chapeau de Paille crew', 'description': None, 'status': 'assets', 'roman_name': 'Mugiwara no Ichimi', 'total_prime': '3.161.000.100', 'number': '10', 'is_yonko': True})\n\u003e\u003e\u003e crews.count # You can implicitly get the count of an endpoint by getting the whole list of it.\n\u003e\u003e\u003e 149\n\u003e\u003e\u003e crews[1].name\n\u003e\u003e\u003e 'Le Roux crew'\n\n# Make a search on a list already fetched\n\u003e\u003e\u003e roger_crew = crews.search('name', 'roger')\n\u003e\u003e\u003e roger_crew\n\u003e\u003e\u003e Total crews found for this search: 1.\n\u003e\u003e\u003e roger_crew[0]\n{\n    \"endpoint\": null,\n    \"search_term\": null,\n    \"resource\": null,\n    \"lang\": \"en\",\n    \"url\": null,\n    \"id\": 5,\n    \"name\": \"The Pirates Roger crew\",\n    \"description\": null,\n    \"status\": \"dissolved\",\n    \"roman_name\": \"Rojā Kaizoku Dan\",\n    \"total_prime\": \"5.564.800.000\",\n    \"number\": \"30\",\n    \"is_yonko\": true\n}\n```\n\nTo learn more about the possibilities, you can check the\ndetailed **documentation** [here](docs/) and more examples [here](docs/examples.py).\n\n## Tests\n\nYou can test the application by running `python -m tests`\n\n## Contributing\n\nPull requests are welcome. Do not hesitate to open an issue if you have any problem or suggestion.\n\n## License\n\nThis project is under the MIT License.\n\n## Author\n\n\u003ca href=\"https://github.com/icepick4\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/82316285?v=4\" width=\"100px;\" alt=\"Remi Jara\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eRemi Jara\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficepick4%2Fonepyece","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ficepick4%2Fonepyece","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficepick4%2Fonepyece/lists"}