File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# History
2+ ### 0.6.0 (2019-05-3)
3+ * V2Client get methods now return element instead of single element list
4+ * set urllib3 version to >=1.24.3, <1.25 (CVE-2019 -11236)
5+ * Support for Python 3.4 and 3.5
6+
27### 0.5.2 (2019-03-01)
38* Fixed bug that caused pokemon_encounters subresource to not be detected in LocationAreaResource
49(thanks to [ jachymb] ( https://github.com/jachymb ) )
Original file line number Diff line number Diff line change @@ -75,24 +75,24 @@ Then you can start grabbing stuff from the API:
7575``` python
7676>> > mew = pokepy.V2Client().get_pokemon(' mew' )
7777>> > mew
78- [ < Pokemon - Mew> ]
79- >> > mew[ 0 ] .name
78+ < Pokemon - Mew>
79+ >> > mew.name
8080mew
8181```
8282
8383``` python
8484>> > kakuna = pokepy.V2Client().get_pokemon(14 )
8585>> > kakuna
86- [ < Pokemon - Kakuna> ]
87- >> > kakuna[ 0 ] .weigth
86+ < Pokemon - Kakuna>
87+ >> > kakuna.weigth
8888100
8989```
9090
9191``` python
9292>> > cut = pokepy.V2Client().get_move(15 )
9393>> > cut
94- [ < Move - Cut> ]
95- >> > cut[ 0 ] .power
94+ < Move - Cut>
95+ >> > cut.power
969650
9797```
9898
@@ -101,30 +101,30 @@ Some resources have subresources:
101101``` python
102102>> > kakuna = pokepy.V2Client().get_pokemon(14 )
103103>> > kakuna
104- [ < Pokemon - Kakuna> ]
105- >> > kakuna[ 0 ] .types
104+ < Pokemon - Kakuna>
105+ >> > kakuna.types
106106[< Pokemon_Type> , < Pokemon_Type> ]
107- >> > kakuna[ 0 ] .types[0 ].type.name
107+ >> > kakuna.types[0 ].type.name
108108poison
109109```
110110
111111``` python
112112>> > insomnia = pokepy.V2Client().get_ability(15 )
113113>> > insomnia
114- [ < Ability - Insomnia> ]
115- >> > insomnia[ 0 ] .effect_entries[0 ].short_effect
114+ < Ability - Insomnia>
115+ >> > insomnia.effect_entries[0 ].short_effect
116116Prevents sleep.
117117```
118118
119119### Parameters
120120Most resources can be requested by using either the ` name ` or ` id ` of the resource:
121121``` python
122122>> > pokepy.V2Client().get_pokemon(' rotom' )
123- [ < Pokemon - Rotom> ]
123+ < Pokemon - Rotom>
124124>> > pokepy.V2Client().get_pokemon(479 )
125- [ < Pokemon - Rotom> ]
125+ < Pokemon - Rotom>
126126>> > pokepy.V2Client().get_pokemon(' 479' )
127- [ < Pokemon - Rotom> ]
127+ < Pokemon - Rotom>
128128```
129129
130130### Cache
Original file line number Diff line number Diff line change 1616__author__ = 'Paul Hallett'
17171818__credits__ = ["Paul Hallett" , "Owen Hallett" , "Kronopt" ]
19- __version__ = '0.5.2 '
19+ __version__ = '0.6.0 '
2020__copyright__ = 'Copyright Paul Hallett 2016'
2121__license__ = 'BSD'
2222
You can’t perform that action at this time.
0 commit comments