ebird-api 3.2.1__tar.gz → 3.2.2__tar.gz

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 (23) hide show
  1. {ebird_api-3.2.1 → ebird_api-3.2.2}/CHANGELOG.md +7 -0
  2. {ebird_api-3.2.1/src/ebird_api.egg-info → ebird_api-3.2.2}/PKG-INFO +2 -2
  3. {ebird_api-3.2.1 → ebird_api-3.2.2}/pyproject.toml +2 -2
  4. {ebird_api-3.2.1 → ebird_api-3.2.2}/src/ebird/api/__init__.py +1 -1
  5. {ebird_api-3.2.1 → ebird_api-3.2.2}/src/ebird/api/client.py +5 -4
  6. {ebird_api-3.2.1 → ebird_api-3.2.2}/src/ebird/api/constants.py +2 -0
  7. {ebird_api-3.2.1 → ebird_api-3.2.2}/src/ebird/api/validation.py +1 -1
  8. {ebird_api-3.2.1 → ebird_api-3.2.2/src/ebird_api.egg-info}/PKG-INFO +2 -2
  9. {ebird_api-3.2.1 → ebird_api-3.2.2}/LICENSE.txt +0 -0
  10. {ebird_api-3.2.1 → ebird_api-3.2.2}/README.md +0 -0
  11. {ebird_api-3.2.1 → ebird_api-3.2.2}/setup.cfg +0 -0
  12. {ebird_api-3.2.1 → ebird_api-3.2.2}/setup.py +0 -0
  13. {ebird_api-3.2.1 → ebird_api-3.2.2}/src/ebird/api/checklists.py +0 -0
  14. {ebird_api-3.2.1 → ebird_api-3.2.2}/src/ebird/api/hotspots.py +0 -0
  15. {ebird_api-3.2.1 → ebird_api-3.2.2}/src/ebird/api/observations.py +0 -0
  16. {ebird_api-3.2.1 → ebird_api-3.2.2}/src/ebird/api/regions.py +0 -0
  17. {ebird_api-3.2.1 → ebird_api-3.2.2}/src/ebird/api/species.py +0 -0
  18. {ebird_api-3.2.1 → ebird_api-3.2.2}/src/ebird/api/statistics.py +0 -0
  19. {ebird_api-3.2.1 → ebird_api-3.2.2}/src/ebird/api/taxonomy.py +0 -0
  20. {ebird_api-3.2.1 → ebird_api-3.2.2}/src/ebird/api/utils.py +0 -0
  21. {ebird_api-3.2.1 → ebird_api-3.2.2}/src/ebird_api.egg-info/SOURCES.txt +0 -0
  22. {ebird_api-3.2.1 → ebird_api-3.2.2}/src/ebird_api.egg-info/dependency_links.txt +0 -0
  23. {ebird_api-3.2.1 → ebird_api-3.2.2}/src/ebird_api.egg-info/top_level.txt +0 -0
@@ -8,10 +8,17 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).
8
8
  This project adheres to [PEP440](https://www.python.org/dev/peps/pep-0440/)
9
9
  and by implication, [Semantic Versioning](http://semver.org/).
10
10
 
11
+ ## [3.2.2] - 2025-01-10
12
+ ### Added
13
+ - Added constant API_MAX_RESULTS for the maximum number of results returned
14
+ by an API call.
15
+
11
16
  ## [3.2.1] - 2024-12-31
17
+ ### Updated
12
18
  - Remove the '.json' suffix from the URL from get_regions()
13
19
 
14
20
  ## [3.2.0] - 2024-12-30
21
+ ### Added
15
22
  - Add get_species_list which returns the list of codes for species seen
16
23
  in a country, subnational1 are, subnational2 area or hotspot.
17
24
 
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: ebird-api
3
- Version: 3.2.1
3
+ Version: 3.2.2
4
4
  Summary: Wrapper for accessing the eBird API
5
5
  Author-email: Project Babbler <projectbabbler@gmail.com>
6
6
  License: MIT License
@@ -30,7 +30,7 @@ license = {text = "MIT License"}
30
30
  name = "ebird-api"
31
31
  readme = "README.md"
32
32
  requires-python = ">= 3.8"
33
- version = "3.2.1"
33
+ version = "3.2.2"
34
34
 
35
35
  [project.urls]
36
36
  Repository = "https://github.com/ProjectBabbler/ebird-api.git"
@@ -38,7 +38,7 @@ Issues = "https://github.com/ProjectBabbler/ebird-api/issues"
38
38
  Changelog = "https://github.com/ProjectBabbler/ebird-api/blob/master/CHANGELOG.md"
39
39
 
40
40
  [tool.bumpversion]
41
- current_version = "3.2.1"
41
+ current_version = "3.2.2"
42
42
  parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
43
43
  serialize = ["{major}.{minor}.{patch}"]
44
44
  ignore_missing_version = false
@@ -2,7 +2,7 @@
2
2
 
3
3
  """A set of wrapper functions for accessing the eBird API."""
4
4
 
5
- __version__ = "3.2.1"
5
+ __version__ = "3.2.2"
6
6
 
7
7
  from ebird.api.checklists import get_checklist, get_visits
8
8
  from ebird.api.client import Client
@@ -4,6 +4,7 @@
4
4
 
5
5
  from ebird.api import (
6
6
  checklists,
7
+ constants,
7
8
  hotspots,
8
9
  observations,
9
10
  regions,
@@ -31,12 +32,12 @@ class Client:
31
32
  self.api_key = api_key
32
33
  self.locale = clean_locale(locale)
33
34
  self.max_observations = None
34
- self.max_visits = 200
35
- self.max_observers = 100
36
- self.back = 14
35
+ self.max_visits = constants.API_MAX_RESULTS
36
+ self.max_observers = constants.DEFAULT_MAX_OBSERVERS
37
+ self.back = constants.DEFAULT_BACK
37
38
  self.category = None
38
39
  self.detail = "full"
39
- self.dist = 25
40
+ self.dist = constants.DEFAULT_DISTANCE
40
41
  self.hotspot = False
41
42
  self.provisional = True
42
43
  self.sort = "date"
@@ -14,6 +14,8 @@ DEFAULT_MAX_OBSERVERS = 100
14
14
  DEFAULT_MAX_CHECKLISTS = 10
15
15
  DEFAULT_TOP_100_RANK = "spp"
16
16
 
17
+ API_MAX_RESULTS = 200
18
+
17
19
  LOCALES = {
18
20
  "Bulgarian": "bg",
19
21
  "Chinese": "zh",
@@ -175,7 +175,7 @@ def clean_max_observers(value):
175
175
 
176
176
 
177
177
  def clean_max_checklists(value):
178
- return clean_max_results(value, 200)
178
+ return clean_max_results(value, constants.API_MAX_RESULTS)
179
179
 
180
180
 
181
181
  def clean_locale(value):
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: ebird-api
3
- Version: 3.2.1
3
+ Version: 3.2.2
4
4
  Summary: Wrapper for accessing the eBird API
5
5
  Author-email: Project Babbler <projectbabbler@gmail.com>
6
6
  License: MIT License
File without changes
File without changes
File without changes
File without changes