ebird-api 3.2.0__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.
- {ebird_api-3.2.0 → ebird_api-3.2.2}/CHANGELOG.md +10 -0
- {ebird_api-3.2.0/src/ebird_api.egg-info → ebird_api-3.2.2}/PKG-INFO +2 -2
- {ebird_api-3.2.0 → ebird_api-3.2.2}/pyproject.toml +2 -2
- {ebird_api-3.2.0 → ebird_api-3.2.2}/src/ebird/api/__init__.py +1 -1
- {ebird_api-3.2.0 → ebird_api-3.2.2}/src/ebird/api/client.py +5 -4
- {ebird_api-3.2.0 → ebird_api-3.2.2}/src/ebird/api/constants.py +2 -0
- {ebird_api-3.2.0 → ebird_api-3.2.2}/src/ebird/api/regions.py +1 -1
- {ebird_api-3.2.0 → ebird_api-3.2.2}/src/ebird/api/validation.py +1 -1
- {ebird_api-3.2.0 → ebird_api-3.2.2/src/ebird_api.egg-info}/PKG-INFO +2 -2
- {ebird_api-3.2.0 → ebird_api-3.2.2}/LICENSE.txt +0 -0
- {ebird_api-3.2.0 → ebird_api-3.2.2}/README.md +0 -0
- {ebird_api-3.2.0 → ebird_api-3.2.2}/setup.cfg +0 -0
- {ebird_api-3.2.0 → ebird_api-3.2.2}/setup.py +0 -0
- {ebird_api-3.2.0 → ebird_api-3.2.2}/src/ebird/api/checklists.py +0 -0
- {ebird_api-3.2.0 → ebird_api-3.2.2}/src/ebird/api/hotspots.py +0 -0
- {ebird_api-3.2.0 → ebird_api-3.2.2}/src/ebird/api/observations.py +0 -0
- {ebird_api-3.2.0 → ebird_api-3.2.2}/src/ebird/api/species.py +0 -0
- {ebird_api-3.2.0 → ebird_api-3.2.2}/src/ebird/api/statistics.py +0 -0
- {ebird_api-3.2.0 → ebird_api-3.2.2}/src/ebird/api/taxonomy.py +0 -0
- {ebird_api-3.2.0 → ebird_api-3.2.2}/src/ebird/api/utils.py +0 -0
- {ebird_api-3.2.0 → ebird_api-3.2.2}/src/ebird_api.egg-info/SOURCES.txt +0 -0
- {ebird_api-3.2.0 → ebird_api-3.2.2}/src/ebird_api.egg-info/dependency_links.txt +0 -0
- {ebird_api-3.2.0 → ebird_api-3.2.2}/src/ebird_api.egg-info/top_level.txt +0 -0
|
@@ -8,7 +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
|
+
|
|
16
|
+
## [3.2.1] - 2024-12-31
|
|
17
|
+
### Updated
|
|
18
|
+
- Remove the '.json' suffix from the URL from get_regions()
|
|
19
|
+
|
|
11
20
|
## [3.2.0] - 2024-12-30
|
|
21
|
+
### Added
|
|
12
22
|
- Add get_species_list which returns the list of codes for species seen
|
|
13
23
|
in a country, subnational1 are, subnational2 area or hotspot.
|
|
14
24
|
|
|
@@ -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.
|
|
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.
|
|
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
|
|
@@ -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 =
|
|
35
|
-
self.max_observers =
|
|
36
|
-
self.back =
|
|
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 =
|
|
40
|
+
self.dist = constants.DEFAULT_DISTANCE
|
|
40
41
|
self.hotspot = False
|
|
41
42
|
self.provisional = True
|
|
42
43
|
self.sort = "date"
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
from ebird.api.utils import call
|
|
4
4
|
from ebird.api.validation import clean_region, clean_region_type
|
|
5
5
|
|
|
6
|
-
REGION_LIST_URL = "https://api.ebird.org/v2/ref/region/list/%s/%s
|
|
6
|
+
REGION_LIST_URL = "https://api.ebird.org/v2/ref/region/list/%s/%s"
|
|
7
7
|
ADJACENT_REGIONS_URL = "https://api.ebird.org/v2/ref/adjacent/%s"
|
|
8
8
|
REGION_INFO_URL = "https://api.ebird.org/v2/ref/region/info/%s"
|
|
9
9
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|