ebird-api 3.1.0__tar.gz → 3.1.1__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.1.0 → ebird_api-3.1.1}/CHANGELOG.md +4 -0
- {ebird_api-3.1.0/src/ebird_api.egg-info → ebird_api-3.1.1}/PKG-INFO +1 -1
- {ebird_api-3.1.0 → ebird_api-3.1.1}/pyproject.toml +2 -2
- {ebird_api-3.1.0 → ebird_api-3.1.1}/src/ebird/api/__init__.py +1 -1
- {ebird_api-3.1.0 → ebird_api-3.1.1}/src/ebird/api/checklists.py +3 -3
- {ebird_api-3.1.0 → ebird_api-3.1.1}/src/ebird/api/hotspots.py +3 -3
- {ebird_api-3.1.0 → ebird_api-3.1.1}/src/ebird/api/observations.py +8 -8
- {ebird_api-3.1.0 → ebird_api-3.1.1}/src/ebird/api/regions.py +3 -3
- {ebird_api-3.1.0 → ebird_api-3.1.1}/src/ebird/api/statistics.py +2 -2
- {ebird_api-3.1.0 → ebird_api-3.1.1}/src/ebird/api/taxonomy.py +4 -4
- {ebird_api-3.1.0 → ebird_api-3.1.1/src/ebird_api.egg-info}/PKG-INFO +1 -1
- {ebird_api-3.1.0 → ebird_api-3.1.1}/LICENSE.txt +0 -0
- {ebird_api-3.1.0 → ebird_api-3.1.1}/README.md +0 -0
- {ebird_api-3.1.0 → ebird_api-3.1.1}/setup.cfg +0 -0
- {ebird_api-3.1.0 → ebird_api-3.1.1}/setup.py +0 -0
- {ebird_api-3.1.0 → ebird_api-3.1.1}/src/ebird/api/client.py +0 -0
- {ebird_api-3.1.0 → ebird_api-3.1.1}/src/ebird/api/constants.py +0 -0
- {ebird_api-3.1.0 → ebird_api-3.1.1}/src/ebird/api/utils.py +0 -0
- {ebird_api-3.1.0 → ebird_api-3.1.1}/src/ebird/api/validation.py +0 -0
- {ebird_api-3.1.0 → ebird_api-3.1.1}/src/ebird_api.egg-info/SOURCES.txt +0 -0
- {ebird_api-3.1.0 → ebird_api-3.1.1}/src/ebird_api.egg-info/dependency_links.txt +0 -0
- {ebird_api-3.1.0 → ebird_api-3.1.1}/src/ebird_api.egg-info/top_level.txt +0 -0
|
@@ -8,6 +8,10 @@ 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.1.1] - 2024-12-30
|
|
12
|
+
## Changed
|
|
13
|
+
- URLs calling the api are now in the form, https://api.ebird.org/v2/...
|
|
14
|
+
|
|
11
15
|
## [3.1.0] - 2024-12-30
|
|
12
16
|
### Added
|
|
13
17
|
- get_taxonomy_locales which returns a list of all the languages
|
|
@@ -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.1.
|
|
33
|
+
version = "3.1.1"
|
|
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.1.
|
|
41
|
+
current_version = "3.1.1"
|
|
42
42
|
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
|
|
43
43
|
serialize = ["{major}.{minor}.{patch}"]
|
|
44
44
|
ignore_missing_version = false
|
|
@@ -8,9 +8,9 @@ from ebird.api.validation import (
|
|
|
8
8
|
clean_max_checklists,
|
|
9
9
|
)
|
|
10
10
|
|
|
11
|
-
CHECKLISTS_DATE_URL = "https://ebird.org/
|
|
12
|
-
CHECKLISTS_RECENT_URL = "https://ebird.org/
|
|
13
|
-
CHECKLIST_URL = "https://ebird.org/
|
|
11
|
+
CHECKLISTS_DATE_URL = "https://api.ebird.org/v2/product/lists/%s/%s"
|
|
12
|
+
CHECKLISTS_RECENT_URL = "https://api.ebird.org/v2/product/lists/%s"
|
|
13
|
+
CHECKLIST_URL = "https://api.ebird.org/v2/product/checklist/view/%s"
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
def get_visits(token, area, date=None, max_results=10):
|
|
@@ -10,9 +10,9 @@ from ebird.api.validation import (
|
|
|
10
10
|
clean_region,
|
|
11
11
|
)
|
|
12
12
|
|
|
13
|
-
REGION_HOTSPOTS_URL = "https://ebird.org/
|
|
14
|
-
NEARBY_HOTSPOTS_URL = "https://ebird.org/
|
|
15
|
-
HOTSPOT_INFO_URL = "https://ebird.org/
|
|
13
|
+
REGION_HOTSPOTS_URL = "https://api.ebird.org/v2/ref/hotspot/%s"
|
|
14
|
+
NEARBY_HOTSPOTS_URL = "https://api.ebird.org/v2/ref/hotspot/geo"
|
|
15
|
+
HOTSPOT_INFO_URL = "https://api.ebird.org/v2/ref/hotspot/info/%s"
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
def get_hotspots(token, region, back=None):
|
|
@@ -18,18 +18,18 @@ from ebird.api.validation import (
|
|
|
18
18
|
clean_sort,
|
|
19
19
|
)
|
|
20
20
|
|
|
21
|
-
OBSERVATIONS_URL = "https://ebird.org/
|
|
22
|
-
NOTABLE_OBSERVATIONS_URL = "https://ebird.org/
|
|
23
|
-
SPECIES_OBSERVATIONS_URL = "https://ebird.org/
|
|
21
|
+
OBSERVATIONS_URL = "https://api.ebird.org/v2/data/obs/%s/recent"
|
|
22
|
+
NOTABLE_OBSERVATIONS_URL = "https://api.ebird.org/v2/data/obs/%s/recent/notable"
|
|
23
|
+
SPECIES_OBSERVATIONS_URL = "https://api.ebird.org/v2/data/obs/%s/recent/%s"
|
|
24
24
|
|
|
25
|
-
NEARBY_OBSERVATIONS_URL = "https://ebird.org/
|
|
26
|
-
NEARBY_NOTABLE_URL = "https://ebird.org/
|
|
27
|
-
NEARBY_SPECIES_URL = "https://ebird.org/
|
|
25
|
+
NEARBY_OBSERVATIONS_URL = "https://api.ebird.org/v2/data/obs/geo/recent"
|
|
26
|
+
NEARBY_NOTABLE_URL = "https://api.ebird.org/v2/data/obs/geo/recent/notable"
|
|
27
|
+
NEARBY_SPECIES_URL = "https://api.ebird.org/v2/data/obs/geo/recent/%s"
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
NEAREST_SPECIES_URL = "https://ebird.org/
|
|
30
|
+
NEAREST_SPECIES_URL = "https://api.ebird.org/v2/data/nearest/geo/recent/%s"
|
|
31
31
|
|
|
32
|
-
HISTORIC_OBSERVATIONS_URL = "https://ebird.org/
|
|
32
|
+
HISTORIC_OBSERVATIONS_URL = "https://api.ebird.org/v2/data/obs/%s/historic/%s"
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
def get_observations(
|
|
@@ -3,9 +3,9 @@
|
|
|
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://ebird.org/
|
|
7
|
-
ADJACENT_REGIONS_URL = "https://ebird.org/
|
|
8
|
-
REGION_INFO_URL = "https://ebird.org/
|
|
6
|
+
REGION_LIST_URL = "https://api.ebird.org/v2/ref/region/list/%s/%s.json"
|
|
7
|
+
ADJACENT_REGIONS_URL = "https://api.ebird.org/v2/ref/adjacent/%s"
|
|
8
|
+
REGION_INFO_URL = "https://api.ebird.org/v2/ref/region/info/%s"
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
def get_regions(token, rtype, region):
|
|
@@ -9,8 +9,8 @@ from ebird.api.validation import (
|
|
|
9
9
|
clean_region,
|
|
10
10
|
)
|
|
11
11
|
|
|
12
|
-
TOP_100_URL = "https://ebird.org/
|
|
13
|
-
TOTALS_URL = "https://ebird.org/
|
|
12
|
+
TOP_100_URL = "https://api.ebird.org/v2/product/top100/%s/%s"
|
|
13
|
+
TOTALS_URL = "https://api.ebird.org/v2/product/stats/%s/%s"
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
def get_top_100(token, region, date, rank="spp", max_results=100):
|
|
@@ -9,10 +9,10 @@ from ebird.api.validation import (
|
|
|
9
9
|
clean_species_code,
|
|
10
10
|
)
|
|
11
11
|
|
|
12
|
-
TAXONOMY_URL = "https://ebird.org/
|
|
13
|
-
TAXONOMY_FORMS_URL = "https://ebird.org/
|
|
14
|
-
TAXONOMY_GROUPS_URL = "https://ebird.org/
|
|
15
|
-
TAXONOMY_VERSIONS_URL = "https://ebird.org/
|
|
12
|
+
TAXONOMY_URL = "https://api.ebird.org/v2/ref/taxonomy/ebird"
|
|
13
|
+
TAXONOMY_FORMS_URL = "https://api.ebird.org/v2/ref/taxon/forms/%s"
|
|
14
|
+
TAXONOMY_GROUPS_URL = "https://api.ebird.org/v2/ref/sppgroup/%s"
|
|
15
|
+
TAXONOMY_VERSIONS_URL = "https://api.ebird.org/v2/ref/taxonomy/versions"
|
|
16
16
|
TAXONOMY_LOCALES_URL = "https://api.ebird.org/v2/ref/taxa-locales/ebird"
|
|
17
17
|
|
|
18
18
|
|
|
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
|