You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python **API wrapper** for https://api-onepiece.com/\
23
23
Thank'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. \
24
-
Learn more about possibilities in the [Usage](#usage) section.
24
+
Learn more about possibilities in the [Usage](#usage) section.
25
25
26
26
⚠️*This package is still in development and it's my very first python package, so it may not be stable.*
27
27
@@ -33,37 +33,64 @@ Learn more about possibilities in the [Usage](#usage) section.
33
33
34
34
**There are several solutions :**
35
35
36
-
- Use this command ``pip install onepyece`` to get it from [PyPi](https://pypi.org/project/onepyece/)
37
-
- Use this command ``pip install git+https://github.com/icepick4/onepyece`` to download it from this repo.
38
-
- Download either the .zip or the tar.gz archive from the last release and then use this command ``pip install <path_to_archive>``
36
+
-Use this command `pip install onepyece` to get it from [PyPi](https://pypi.org/project/onepyece/)
37
+
-Use this command `pip install git+https://github.com/icepick4/onepyece` to download it from this repo.
38
+
-Download either the .zip or the tar.gz archive from the last release and then use this command `pip install <path_to_archive>`
39
39
40
40
## Usage
41
41
42
42
```py
43
43
>>>import onepyece as op
44
+
45
+
44
46
>>> sanji = op.character_by_name('sanji') # You can get a character by its name
45
-
>>> sanji.birthday
46
-
'2000-03-02'
47
+
>>> sanji.size
48
+
>>>'180cm'
49
+
>>> sanji.crew['roman_name']
50
+
>>>'Mugiwara no Ichimi'
51
+
47
52
>>> nb_fruits = op.count_fruits() # You can get the count of a specific endpoint
0 commit comments