Skip to content

Commit f1c0680

Browse files
committed
v0.6.0
Update documentation
1 parent 41454a2 commit f1c0680

3 files changed

Lines changed: 20 additions & 15 deletions

File tree

docs/history.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
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))

docs/usage.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff 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
8080
mew
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
8888
100
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
9696
50
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
108108
poison
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
116116
Prevents sleep.
117117
```
118118

119119
### Parameters
120120
Most 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

pokepy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
__author__ = 'Paul Hallett'
1717
__email__ = '[email protected]'
1818
__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

0 commit comments

Comments
 (0)