pyinaturalist 0.17.0.dev1__y3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. .readthedocs.yml +19 -0
  2. CONTRIBUTING.md +122 -0
  3. CONTRIBUTORS.md +18 -0
  4. HISTORY.md +371 -0
  5. README.md +213 -0
  6. docker-compose.yml +17 -0
  7. pyinaturalist/__init__.py +27 -0
  8. pyinaturalist/auth.py +152 -0
  9. pyinaturalist/client.py +154 -0
  10. pyinaturalist/constants.py +245 -0
  11. pyinaturalist/controllers/__init__.py +7 -0
  12. pyinaturalist/controllers/base.py +9 -0
  13. pyinaturalist/controllers/observations.py +96 -0
  14. pyinaturalist/controllers/projects.py +43 -0
  15. pyinaturalist/controllers/taxa.py +25 -0
  16. pyinaturalist/controllers/users.py +34 -0
  17. pyinaturalist/converters.py +389 -0
  18. pyinaturalist/docs/__init__.py +16 -0
  19. pyinaturalist/docs/docstrings.py +126 -0
  20. pyinaturalist/docs/emoji.py +137 -0
  21. pyinaturalist/docs/model_docs.py +110 -0
  22. pyinaturalist/docs/signatures.py +179 -0
  23. pyinaturalist/docs/templates.py +694 -0
  24. pyinaturalist/exceptions.py +17 -0
  25. pyinaturalist/formatters.py +306 -0
  26. pyinaturalist/models/__init__.py +106 -0
  27. pyinaturalist/models/base.py +132 -0
  28. pyinaturalist/models/comment.py +52 -0
  29. pyinaturalist/models/controlled_term.py +96 -0
  30. pyinaturalist/models/identification.py +71 -0
  31. pyinaturalist/models/lazy_property.py +133 -0
  32. pyinaturalist/models/life_list.py +111 -0
  33. pyinaturalist/models/message.py +40 -0
  34. pyinaturalist/models/observation.py +281 -0
  35. pyinaturalist/models/observation_field.py +102 -0
  36. pyinaturalist/models/photo.py +125 -0
  37. pyinaturalist/models/place.py +102 -0
  38. pyinaturalist/models/project.py +153 -0
  39. pyinaturalist/models/search.py +44 -0
  40. pyinaturalist/models/taxon.py +282 -0
  41. pyinaturalist/models/taxon_meta.py +222 -0
  42. pyinaturalist/models/user.py +115 -0
  43. pyinaturalist/node_api.py +21 -0
  44. pyinaturalist/paginator.py +231 -0
  45. pyinaturalist/py.typed +1 -0
  46. pyinaturalist/request_params.py +318 -0
  47. pyinaturalist/rest_api.py +24 -0
  48. pyinaturalist/session.py +326 -0
  49. pyinaturalist/v0/__init__.py +15 -0
  50. pyinaturalist/v0/observation_fields.py +97 -0
  51. pyinaturalist/v0/observations.py +330 -0
  52. pyinaturalist/v1/__init__.py +70 -0
  53. pyinaturalist/v1/controlled_terms.py +52 -0
  54. pyinaturalist/v1/identifications.py +70 -0
  55. pyinaturalist/v1/messages.py +91 -0
  56. pyinaturalist/v1/observation_fields.py +74 -0
  57. pyinaturalist/v1/observations.py +517 -0
  58. pyinaturalist/v1/places.py +139 -0
  59. pyinaturalist/v1/posts.py +30 -0
  60. pyinaturalist/v1/projects.py +284 -0
  61. pyinaturalist/v1/search.py +36 -0
  62. pyinaturalist/v1/taxa.py +150 -0
  63. pyinaturalist/v1/users.py +68 -0
  64. pyinaturalist/v2/__init__.py +1 -0
  65. pyinaturalist-0.17.0dev1.dist-info/LICENSE +21 -0
  66. pyinaturalist-0.17.0dev1.dist-info/METADATA +263 -0
  67. pyinaturalist-0.17.0dev1.dist-info/RECORD +68 -0
  68. pyinaturalist-0.17.0dev1.dist-info/WHEEL +4 -0
.readthedocs.yml ADDED
@@ -0,0 +1,19 @@
1
+ # Read the Docs configuration file
2
+ version: 2
3
+
4
+ build:
5
+ os: ubuntu-20.04
6
+ tools:
7
+ python: '3.10'
8
+
9
+ sphinx:
10
+ builder: html
11
+ configuration: docs/conf.py
12
+
13
+ python:
14
+ system_packages: True
15
+ install:
16
+ - method: pip
17
+ path: .
18
+ extra_requirements:
19
+ - docs
CONTRIBUTING.md ADDED
@@ -0,0 +1,122 @@
1
+ # Contributing Guide
2
+ Contributions are welcome, and they are greatly appreciated! Every
3
+ little bit helps, and credit will always be given.
4
+
5
+ ## Installation
6
+ To set up for local development (requires [poetry](https://python-poetry.org)):
7
+ ```bash
8
+ $ git clone https://github.com/niconoe/pyinaturalist.git
9
+ $ cd pyinaturalist
10
+ $ poetry install -v -E docs
11
+ ```
12
+
13
+ ## Contribution Guidelines
14
+
15
+ ### Pull Requests
16
+ Here are some general guidelines for submitting a pull request:
17
+ - If the changes are trivial, just submit a PR and briefly explain the changes in the description.
18
+ - Otherwise, please submit an issue describing the proposed change prior to submitting a PR.
19
+ - Make sure the code is tested, documented, and type-annotated (as described in sections below).
20
+ - Submit the PR to be merged into the `main` branch.
21
+
22
+ ### Tests
23
+ We use the [pytest](https://docs.pytest.org/en/latest/) framework for unit testing.
24
+ Just run the `pytest` command to run locally.
25
+
26
+ #### Testing supported python versions
27
+ For PRs, GitHub Actions will run these tests for each supported python version.
28
+
29
+ You can use [nox](https://nox.thea.codes) to do this locally, if needed:
30
+ ```bash
31
+ nox -e test
32
+ ```
33
+
34
+ Or to run tests for a specific python version:
35
+ ```bash
36
+ nox -e test-3.10
37
+ ```
38
+
39
+ See `nox --list` for a ful list of available commands.
40
+
41
+ ### Documentation
42
+ For PRs, please include docstrings for all functions and classes.
43
+
44
+ To build the docs locally:
45
+ ```bash
46
+ $ nox -e docs
47
+ ```
48
+
49
+ To preview:
50
+ ```bash
51
+ # MacOS:
52
+ $ open docs/_build/html/index.html
53
+ # Linux:
54
+ $ xdg-open docs/_build/html/index.html
55
+ ```
56
+
57
+ You can also use [sphinx-autobuild](https://github.com/executablebooks/sphinx-autobuild) to rebuild the docs and live reload in the browser whenver doc contents change:
58
+ ```bash
59
+ $ nox -e livedocs
60
+ ```
61
+
62
+ Project documentation is generated using [Sphinx](https://www.sphinx-doc.org),
63
+ [MyST](https://myst-parser.readthedocs.io), and several Sphinx extensions and custom templates.
64
+ See [conf.py](https://github.com/niconoe/pyinaturalist/blob/main/docs/conf.py) for more details.
65
+
66
+ Documentation is automatically built by ReadTheDocs whenever code is merged into `main`:
67
+ * [Stable version (tags only))](https://pyinaturalist.readthedocs.io/en/stable/)
68
+ * [Development version (all other commits)](https://pyinaturalist.readthedocs.io/en/latest/)
69
+
70
+ For any new or changed behavior, add a brief high-level summary to `HISTORY.md`.
71
+ This isn't needed for internal changes (tests, other docs, refactoring, etc.).
72
+
73
+ ### Type Annotations
74
+ All parameters and return values should have type annotations, which will be checked by `mypy` and
75
+ will show up in the documentation.
76
+
77
+ ### Formatting, Linting, Type Checking, Etc.
78
+ Code checking and formatting tools used include:
79
+ * [black](https://github.com/psf/black)
80
+ * [isort](https://pycqa.github.io/isort/)
81
+ * [flake8](https://flake8.pycqa.org/en/latest/)
82
+ * [mypy](https://mypy.readthedocs.io/en/stable/getting_started.html)
83
+
84
+ All of these will be run by GitHub Actions on pull requests. You can also run them locally with:
85
+ ```bash
86
+ nox -e lint
87
+ ```
88
+
89
+ #### Pre-Commit Hooks
90
+ Optionally, you can use [pre-commit](https://github.com/pre-commit/pre-commit) to automatically
91
+ run all of these checks before a commit is made:
92
+ ```bash
93
+ pre-commit install
94
+ ```
95
+
96
+ This can save you some time in that it will show you errors immediately rather than waiting for CI
97
+ jobs to complete, or if you forget to manually run the checks before committing.
98
+
99
+ You can disable these hooks at any time with:
100
+ ```bash
101
+ pre-commit uninstall
102
+ ```
103
+
104
+ ### Releases
105
+ Notes for maintainers on publishing new releases:
106
+
107
+ Releases are based on git tags. GitHub Actions will build and deploy packages to PyPi on tagged commits
108
+ on the `main` branch. Release steps:
109
+ - Update the version in both `pyproject.toml` and `pyinaturalist/__init__.py`
110
+ - Update the release notes in `HISTORY.md`
111
+ - Merge changes into the `main` branch
112
+ - Push a new tag, e.g.: `git tag v0.1.0 && git push upstream --tags`
113
+ - This will trigger a deployment. Verify that this completes successfully and that the new version
114
+ can be installed from PyPI with `pip install pyinaturalist`.
115
+ - Verify that the docs are built and published to [Read The Docs](https://pyinaturalist.readthedocs.io).
116
+ - A PR for a new Conda release will be created by a bot on the [pyinaturalist-feedstock](https://github.com/conda-forge/pyinaturalist-feedstock/)
117
+ repo. It may take a couple hours after PyPI deployment for this to happen. Typically this will be
118
+ auto-merged and built without any manual action required. Just verify that this completes successfully
119
+ and that the new version can be installed from conda-forge with `conda install -c conda-forge pyinaturalist`.
120
+ - If new depedencies have been added, then those must also be added to the [conda recipe](https://github.com/conda-forge/pyinaturalist-feedstock/blob/master/recipe/meta.yaml).
121
+ - A Docker build will be triggered for [pyinaturalist-notebook](https://github.com/JWCook/pyinaturalist-notebook).
122
+ Verfify that this successfully gets deployed to Docker Hub.
CONTRIBUTORS.md ADDED
@@ -0,0 +1,18 @@
1
+ # Contributors
2
+ Thanks to the following individuals for providing pull requests, feedback, bug reports, answering
3
+ questions, and other contributions that have helped to improve pyinaturalist:
4
+
5
+ * [AE Hamrick](https://github.com/AEHamrick)
6
+ * [Ben Armstrong](https://github.com/synrg)
7
+ * [Dr. Tom August](https://github.com/AugustT)
8
+ * [Eduardo Ramírez](https://github.com/eduramirezh)
9
+ * [Felipe S Barros](https://github.com/FelipeSBarros)
10
+ * [Ken-ichi Ueda](https://github.com/kueda/)
11
+ * [Matt Muir](https://forum.inaturalist.org/u/muir)
12
+ * [Patrick Leary](https://github.com/pleary)
13
+ * [Peter Desmet](https://github.com/peterdesmet)
14
+ * [pisum](https://forum.inaturalist.org/u/pisum)
15
+ * [Sam R](https://github.com/samtreesandbushes)
16
+ * [SDJ Brown](https://github.com/sdjbrown)
17
+ * [Stijn Van Hoey](https://github.com/stijnvanhoey)
18
+ * [Will Kuhn](https://github.com/willkuhn)
HISTORY.md ADDED
@@ -0,0 +1,371 @@
1
+ # History
2
+
3
+ ## 0.17.0 (Unreleased)
4
+ [See all Issues & PRs for 0.17](https://github.com/niconoe/pyinaturalist/milestone/8?closed=1)
5
+
6
+ ### New Endpoints
7
+ * Added new **Project** endpoint and helper functions:
8
+ * `update_project()`
9
+ * `add_project_users()`
10
+ * `delete_project_users()`
11
+
12
+ ### Modified Endpoints
13
+ * Updated `get_projects_by_id()` to allow string values (URL slugs) for `project_id`
14
+ * Updated `get_user_by_id()` to allow string values (usernames) for `user_id`
15
+
16
+ ### Authentication
17
+ * Added support for JWT authentication, which will now be used by default
18
+ * To get an OAuth access token instead of a JWT, call `get_access_token(jwt=False)`
19
+ * Added caching to `get_access_token()`. JWTs will be stored in the API response cache and reused
20
+ until they expire.
21
+
22
+ ### Other Changes
23
+ * Dropped support for python 3.6
24
+ * Added support for setting timeout for individual API requests (with `timeout` parameter)
25
+ * Added support for setting cache timeout for individual API requests (with `expire_after` parameter)
26
+ * Added support for bypassing the cache for individual API requests (with `refresh` parameter)
27
+
28
+ ## 0.16.0 (2022-02-22)
29
+ [See all Issues & PRs for 0.16](https://github.com/niconoe/pyinaturalist/milestone/7?closed=1)
30
+
31
+ ### New Endpoints
32
+ * Added new **Taxon** endpoint: `get_taxa_map_layers()`
33
+ * Added new **Message** endpoints:
34
+ * `get_messages()`
35
+ * `get_message_by_id()`
36
+ * `get_unread_meassage_count()`
37
+
38
+ ### Observation Media
39
+ The following changes apply to `upload()`, `create_observation()`, and `update_observation()`:
40
+ * Added support for uploading observation photo & sound files from URLs
41
+ * Added support for attaching previously uploaded photos to an observation by photo ID
42
+
43
+ ### Other Changes
44
+ * Added support for python 3.10
45
+ * Removed `pyinaturalist.user_agent` global variable and API function keyword args, and recommend setting on session object instead
46
+ * Removed `pyinaturalist.DRY_RUN*` global variables, and recommend setting in environment variables instead
47
+ * Fixed `count_only=True`/`per_page=0` to not run full query
48
+ * Do not error on unrecognized `**kwargs`, for cases where the API may accept some additional undocumented parameters
49
+ * Allow overriding default location for API request cache
50
+
51
+
52
+ ## 0.15.0 (2021-09-07)
53
+ [See all Issues & PRs for 0.15](https://github.com/niconoe/pyinaturalist/milestone/6?closed=1)
54
+
55
+ ### New Endpoints
56
+ * Added new functions for v1 **Observation** endpoints:
57
+ * `create_observation()`
58
+ * `update_observation()`
59
+ * `delete_observation()`
60
+ * `upload()` (uploads both photos and sounds)
61
+ * These are now preferred over the older v0 endpoints
62
+ * Added new functions for v1 **Observation field value** endpoints:
63
+ * `set_observation_field()` (creates and updates observation field values)
64
+ * `delete_observation_field()`
65
+ * Added new function for **Observation taxon summary**: `get_observation_taxon_summary()`
66
+ * Added new functions for **Project observation** endpoints:
67
+ * `add_project_observation()`
68
+ * `delete_project_observation()`
69
+
70
+ ### Modified Endpoints
71
+ * Added a `dry_run` argument to all API request functions to dry-run an individual request
72
+ * Added a `reverse` argument to all paginated API request functions to reverse the sort order
73
+
74
+ ### Models
75
+ * Added new data models:
76
+ * ListedTaxon
77
+ * TaxonSummary
78
+ * UserCounts
79
+ * Added a preview version of `iNatClient`, a higher-level interface for API requests, which returns
80
+ model objects instead of JSON. See issues
81
+ [#163](https://github.com/niconoe/pyinaturalist/issues/163) and
82
+ [#217](https://github.com/niconoe/pyinaturalist/issues/217) for details.
83
+
84
+ ### Performance
85
+ * Added API request caching with [requests-cache](https://github.com/reclosedev/requests-cache)
86
+ * Updated rate-limiting not apply to cached requests
87
+ * Added custom `ClientSession` class to configure caching, rate-limiting, retries, and timeouts
88
+
89
+ ### Logging
90
+ * Improved logging output for dry-run mode: now shows formatted `PreparedRequest` details
91
+ instead of `request()` keyword args
92
+ * Added an `enable_logging()` function to optionally show prettier logs with `rich`
93
+ * Updated logging to redact all credentials from logged API requests
94
+
95
+ ### Other Changes
96
+ * Increased default timeout to 10 seconds to accomodate some longer-running queries
97
+ * Added `get_interval_ranges()` function to help with queries over a series of date/time intervals
98
+ * Fixed bug with `rule_details` param for `get_projects_by_id()`
99
+ * Added more tutorial/example notebooks
100
+
101
+ ## 0.14.1 (2021-07-21)
102
+ * Added new function for **Posts** endpoint: `get_posts()`
103
+ * Fixed broken `response_format` parameter in `v0.get_observations()`
104
+
105
+ ## 0.14.0 (2021-07-14)
106
+ [See all Issues & PRs for 0.14](https://github.com/niconoe/pyinaturalist/milestone/5?closed=1)
107
+
108
+ ### New Endpoints
109
+ * Added new function for **Observation sounds** endpoint: `upload_sounds()`
110
+ * Added new function for **Life list** endpoint: `get_observation_taxonomy()`
111
+
112
+ ### Modified Endpoints
113
+ * Added support for passing a `requests.Session` object to all API request functions
114
+ * Added a `photos` parameter `create_observation()` and `update_observation()` to upload photos
115
+ * Added a `sounds` parameter `create_observation()` and `update_observation()` to upload sounds
116
+ * Renamed `add_photo_to_observation()` to `upload_photos()`
117
+ * The alias `rest_api.add_photo_to_observation()` is still available for backwards-compatibility
118
+ * Updated `upload_photos()` to take accept either a single photo or a list of photos, and return a list of responses
119
+ * Updated `upload_sounds()` to take accept either a single sound or a list of sounds, and return a list of responses
120
+ * Added alias `observed_on` for `observed_on_string` in `create_observation()`
121
+ * Fixed conversion for datetime parameters in `create_observation()` and `update_observation()`
122
+ * Updated all requests to correctly convert `datetime` objects to strings
123
+ * Moved API functions into separate modules by API version and resource type.
124
+ * All can still be imported via `from pyinaturalist import *`
125
+ * Added aliases for backwards-compatibility, so imports from `pyinaturalist.rest_api` and
126
+ `pyinaturalist.node_api` will still work, but these are deprecated and will be removed in a future release
127
+ * Deprecated `get_geojson_observations()` (moved to join other observation conversion tools in `pyinaturalist-convert`)
128
+
129
+ ### Models
130
+ Added data models for all API response types, to support working with typed python objects instead of JSON.
131
+
132
+ Models:
133
+ * Comment
134
+ * ControlledTerm
135
+ * ControlledTermValue
136
+ * Annotation
137
+ * Identification
138
+ * LifeList
139
+ * LifeListTaxon
140
+ * Observation
141
+ * ObservationField
142
+ * ObservationFieldValue
143
+ * Photo
144
+ * Place
145
+ * Project
146
+ * ProjectObservation
147
+ * ProjectObservationField
148
+ * ProjectUser
149
+ * SearchResult
150
+ * Taxon
151
+ * ConservationStatus
152
+ * EstablishmentMeans
153
+ * TaxonCount
154
+ * TaxonCounts
155
+ * User
156
+
157
+ Model features:
158
+ * Type conversions
159
+ * Lazy initialization
160
+ * Basic formatters
161
+ * Table formatters
162
+
163
+ ### Other Changes
164
+ * Consolidated response formatting into a single `pprint()` function (instead of one per resource type)
165
+ * Refactored and reorganized the following internal utility modules (see API docs for details):
166
+ * `converters`
167
+ * `docs`
168
+ * `formatters`
169
+ * `request_params`
170
+ * Added a default response timeout of 5 seconds
171
+ * Added an example (`examples/sample_responses.py`) containing response JSON, model objects, and tables of every type to experiment with
172
+ * Added a tutorial notebook (`examples/Tutorial.ipynb`)
173
+ * Set up pyinaturalist-notebook to be [runnable with Binder](https://mybinder.org/v2/gh/niconoe/pyinaturalist/main?filepath=examples)
174
+
175
+ -----
176
+ ## 0.13.0 (2021-05-22)
177
+ [See all Issues & PRs for 0.13](https://github.com/niconoe/pyinaturalist/milestone/4?closed=1)
178
+
179
+ ### New Endpoints
180
+ * Added new function for **Search** endpoint: `search()` (combined search for places, projects, taxa, and users)
181
+ * Added new functions for **Identifications** endpoints: `get_identifications()` and `get_identifications_by_id()`
182
+ * Added new functions for **Users** endpoints: `get_user_by_id()` and `get_users_autocomplete()`
183
+
184
+ ### Modified Endpoints
185
+ * Added undocumented `ident_user_id` parameter to `get_observations()`
186
+ * Added `count_only=True` as an alias for `per_page=0` (to get only result counts).
187
+ * Added generic auto-pagination that can apply to any endpoint that supports pagination.
188
+ * Added `page='all'` as a shortcut for auto-pagination
189
+ * The above changes apply to all functions that support pagination:
190
+ * `node_api.get_identifications()`
191
+ * `node_api.get_observations()`
192
+ * `node_api.get_observation_species_counts()`
193
+ * `node_api.get_observation_observers()`
194
+ * `node_api.get_observation_identifiers()`
195
+ * `node_api.get_places_autocomplete()`
196
+ * `node_api.get_projects()`
197
+ * `node_api.get_taxa()`
198
+ * `rest_api.get_observations()`
199
+ * `rest_api.get_observation_fields()`
200
+ * The following methods are now deprecated. They are still functional, but will raise a `DeprecationWarning`:
201
+ * `node_api.get_all_observations()`
202
+ * `rest_api.get_all_observation_fields()`
203
+ * Removed `node_api.get_all_observation_species_counts()`, since this was only added recently
204
+ * Updated `rest_api.get_observation_fields()` to return a dict with `'results'` for consistency with other endpoints
205
+
206
+ ### Other Changes
207
+ * Added response formatting functions to `pyinaturalist.formatters`
208
+ * All API functions and formatters can now be imported from the top-level package, e.g.
209
+ `from pyinaturalist import *`
210
+ * Removed `minify` option from `get_taxa_autocomplete`
211
+ * Published [pyinaturalist on conda-forge](https://anaconda.org/conda-forge/pyinaturalist)
212
+ * Added global rate-limiting to stay within the rates suggested in
213
+ [API Recommended Practices](https://www.inaturalist.org/pages/api+recommended+practices)
214
+ (per second, minute, and day)
215
+ * Moved `Dockerfile` and `docker-compose.yml` to a separate repo
216
+ ([pyinaturalist-notebook](https://github.com/JWCook/pyinaturalist-notebook))
217
+ and published on Docker Hub
218
+ * Packaging is now handled with Poetry. For users, installation still works the same. For developers,
219
+ see [Contributing Guide](https://github.com/niconoe/pyinaturalist/blob/main/CONTRIBUTING.md) for details.
220
+
221
+ -----
222
+ ## 0.12.1 (2021-03-07)
223
+ * Add undocumented `ident_user_id` parameter to `get_observations()`
224
+
225
+ ## 0.12.0 (2021-02-02)
226
+ [See all Issues & PRs for 0.12](https://github.com/niconoe/pyinaturalist/milestone/3?closed=1)
227
+
228
+ ### New Endpoints
229
+ * Added new function for **Observation Histogram** endpoint: `get_observation_histogram()`
230
+ * Added new function for **Observers** endpoint: `get_observation_observers()`
231
+ * Added new function for **Identifiers** endpoint: `get_observation_identifiers()`
232
+ * Added new function for **Controlled Terms** endpoints: `get_controlled_terms()`
233
+ * Wraps both `GET /controlled_terms` and `/controlled_terms/for_taxon` endpoints
234
+
235
+ ### Modified Endpoints
236
+ * Added conversion from date/time strings to timezone-aware python `datetime` objects.
237
+ This applies to the following functions:
238
+ * `node_api.get_observation()`
239
+ * `node_api.get_observations()`
240
+ * `node_api.get_all_observation()`
241
+ * `node_api.get_projects()`
242
+ * `node_api.get_projects_by_id()`
243
+ * `node_api.get_taxa()`
244
+ * `node_api.get_taxa_by_id()`
245
+ * `rest_api.get_observation()`
246
+ * `rest_api.get_observation_fields()`
247
+ * `rest_api.get_all_observation_fields()`
248
+ * Added conversion for an additional `location` field in observation responses
249
+
250
+ ### Authentication
251
+ * Added support for providing credentials via environment variables
252
+ * Added integration with system keyring for credentials storage
253
+ * Added documentation & examples for authentication options
254
+
255
+ ### Other Changes
256
+ * Added a `Dockerfile` and `docker-compose.yml` for a Jupyter notebook containing pyinaturalist + other relevant packages
257
+ * Added some more detailed usage examples under `examples/`
258
+ * Improved performance for large paginated queries
259
+ * Fixed bug that dropped request parameter values of `0` as if they were `None`
260
+ * Dropped support for python 3.5
261
+ * Removed request parameters that were deprecated in 0.11
262
+
263
+ -----
264
+ ## 0.11.0 (2020-11-04)
265
+ [See all Issues & PRs for 0.11](https://github.com/niconoe/pyinaturalist/milestone/2?closed=1)
266
+
267
+ ### New Endpoints
268
+ * Added new functions for Node API **Places** endpoints:
269
+ * `get_places_by_id()`
270
+ * `get_places_nearby()`
271
+ * `get_places_autocomplete()`
272
+ * Added new functions for Node API **Projects** endpoints:
273
+ * `get_projects()`
274
+ * `get_projects_by_id()`
275
+ * Added new function for an additional Node API **Observation** endpoint:
276
+ * `get_observation_species_counts()`
277
+ * `get_all_observation_species_counts()`
278
+
279
+ ### Modified Endpoints
280
+ * Added support for simplified observation field syntax (`observation_fields={id: value}`)
281
+ for `create_observations()` and `update_observation()`
282
+ * Updated `node_api.get_taxa_by_id()` to accept multiple IDs
283
+ * Updated `rest_api.get_observations()` with type conversion from strings to floats for response lat/long coordinates.
284
+ Only applies to JSON response format.
285
+ * Updated `node_api.get_taxa_autocomplete()` with optional `min_rank` and `max_rank` parameters, for consistency with `get_taxa()`
286
+ * Using the `params` positional argument for the handful of functions that used it
287
+ will raise a `DeprecationWarning`, but will otherwise still be functional until `0.12`
288
+ * Renamed `search_query` argument to `q` to be consistent with API request parameters
289
+ * Using the `search_query` argument for `rest_api.get_observation_fields()` and `rest_api.get_all_observation_fields()`
290
+ will raise a `DeprecationWarning`, but will otherwise still be functional until `0.12`
291
+ * Renamed `create_observations()` to `create_observation()`, as this only supports creating a single observation per
292
+ call. This is aliased to `create_observations()` for backwards-compatibility, but will raise a `DeprecationWarning`.
293
+
294
+ ### Documentation & Usability
295
+ * Added example response data to docs all endpoints
296
+ * Added links to official API reference to docs for all endpoints
297
+ * Added full API request parameters to all API functions, in the form of keyword arguments with type annotations and docstrings
298
+ * Added complete table of iNaturalist API endpoints and endpoints implemented by pyinaturalist
299
+ * Added and improved usage examples
300
+ * Numerous other documentation improvements
301
+ * Made all API function signatures consistent by taking request params as keyword arguments
302
+
303
+ ### Other Changes
304
+ * Dropped support for python 3.4
305
+ * Added support for python 3.9
306
+ * Added parameter validation for multiple-choice request parameters
307
+
308
+ ## 0.10.0 (2020-06-16)
309
+ [See all Issues & PRs for 0.10](https://github.com/niconoe/pyinaturalist/milestone/1?closed=1)
310
+
311
+ ### New Endpoints
312
+ * Added new **Observation** endpoint: `rest_api.get_observations()`, with 6 additional observation response formats, including GeoJSON, Darwin Core, and others
313
+
314
+ ### Modified Endpoints
315
+ * Added `minify` option to `node_api.get_taxa_autocomplete()`
316
+
317
+ ### Other Changes
318
+ * Added more info & examples to README for taxa endpoints, and other documentation improvements
319
+ * Added conversion for all date and datetime parameters to timezone-aware ISO 8601 timestamps
320
+ * Added a dry-run mode to mock out API requests for testing
321
+ * Set up pre-release builds for latest development version
322
+
323
+ -----
324
+ ## 0.9.1 (2020-05-26)
325
+
326
+ * Bugfix: proper support for boolean and integer list parameters ([Issue #17](https://github.com/niconoe/pyinaturalist/issues/17))
327
+
328
+ ## 0.9.0 (2020-05-06)
329
+
330
+ ### New Endpoints
331
+ * Added new functions for Node API **Taxa** endpoints:
332
+
333
+ * `node_api.get_taxa()`
334
+ * `node_api.get_taxa_autocomplete()`
335
+ * `node_api.get_taxa_by_id()`
336
+
337
+ ## 0.8.0 (2019-07-11)
338
+
339
+ * All functions now take an optional `user-agent <https://en.wikipedia.org/wiki/User_agent>`_ parameter in order to identify yourself to iNaturalist. If not set, `Pyinaturalist/<VERSION>` will be used.
340
+
341
+ ## 0.7.0 (2019-05-08)
342
+
343
+ * `rest_api.delete_observation()` now raises `ObservationNotFound` if the observation doesn't exist
344
+ * minor dependencies update for security reasons
345
+
346
+ ## 0.6.0 (2018-11-15)
347
+
348
+ * New function: `rest_api.delete_observation()`
349
+
350
+ ## 0.5.0 (2018-11-05)
351
+
352
+ * New function: `node_api.get_observation()`
353
+
354
+ ## 0.4.0 (2018-11-05)
355
+
356
+ * `create_observation()` now raises exceptions in case of errors.
357
+
358
+ ## 0.3.0 (2018-11-05)
359
+
360
+ * `update_observation()` now raises exceptions in case of errors.
361
+
362
+ ## 0.2.0 (2018-10-31)
363
+
364
+ * Better infrastructure (type annotations, documentation, ...)
365
+ * Dropped support for Python 2.
366
+ * New function: `update_observation()`
367
+ * `rest_api.AuthenticationError` is now `exceptions.AuthenticationError`
368
+
369
+ ## 0.1.0 (2018-10-10)
370
+
371
+ * First release on PyPI.