ebird-api 3.3.0__tar.gz → 3.4.0__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.3.0 → ebird_api-3.4.0}/CHANGELOG.md +3 -0
  2. {ebird_api-3.3.0/src/ebird_api.egg-info → ebird_api-3.4.0}/PKG-INFO +1 -1
  3. {ebird_api-3.3.0 → ebird_api-3.4.0}/pyproject.toml +2 -2
  4. {ebird_api-3.3.0 → ebird_api-3.4.0}/src/ebird/api/__init__.py +1 -1
  5. {ebird_api-3.3.0 → ebird_api-3.4.0}/src/ebird/api/validation.py +6 -6
  6. {ebird_api-3.3.0 → ebird_api-3.4.0/src/ebird_api.egg-info}/PKG-INFO +1 -1
  7. {ebird_api-3.3.0 → ebird_api-3.4.0}/LICENSE.txt +0 -0
  8. {ebird_api-3.3.0 → ebird_api-3.4.0}/README.md +0 -0
  9. {ebird_api-3.3.0 → ebird_api-3.4.0}/setup.cfg +0 -0
  10. {ebird_api-3.3.0 → ebird_api-3.4.0}/setup.py +0 -0
  11. {ebird_api-3.3.0 → ebird_api-3.4.0}/src/ebird/api/checklists.py +0 -0
  12. {ebird_api-3.3.0 → ebird_api-3.4.0}/src/ebird/api/client.py +0 -0
  13. {ebird_api-3.3.0 → ebird_api-3.4.0}/src/ebird/api/constants.py +0 -0
  14. {ebird_api-3.3.0 → ebird_api-3.4.0}/src/ebird/api/hotspots.py +0 -0
  15. {ebird_api-3.3.0 → ebird_api-3.4.0}/src/ebird/api/observations.py +0 -0
  16. {ebird_api-3.3.0 → ebird_api-3.4.0}/src/ebird/api/regions.py +0 -0
  17. {ebird_api-3.3.0 → ebird_api-3.4.0}/src/ebird/api/species.py +0 -0
  18. {ebird_api-3.3.0 → ebird_api-3.4.0}/src/ebird/api/statistics.py +0 -0
  19. {ebird_api-3.3.0 → ebird_api-3.4.0}/src/ebird/api/taxonomy.py +0 -0
  20. {ebird_api-3.3.0 → ebird_api-3.4.0}/src/ebird/api/utils.py +0 -0
  21. {ebird_api-3.3.0 → ebird_api-3.4.0}/src/ebird_api.egg-info/SOURCES.txt +0 -0
  22. {ebird_api-3.3.0 → ebird_api-3.4.0}/src/ebird_api.egg-info/dependency_links.txt +0 -0
  23. {ebird_api-3.3.0 → ebird_api-3.4.0}/src/ebird_api.egg-info/top_level.txt +0 -0
@@ -8,6 +8,9 @@ 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.4.0] - 2025-02-12
12
+ - Tighten definition of regexes to exclude lower case letters for region codes
13
+
11
14
  ## [3.3.0] - 2025-02-01
12
15
  - Added get_location() which works like get_hotspot() but return data for
13
16
  hotspots and private locations.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: ebird-api
3
- Version: 3.3.0
3
+ Version: 3.4.0
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.3.0"
33
+ version = "3.4.0"
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.3.0"
41
+ current_version = "3.4.0"
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.3.0"
5
+ __version__ = "3.4.0"
6
6
 
7
7
  from ebird.api.checklists import get_checklist, get_visits
8
8
  from ebird.api.client import Client
@@ -23,22 +23,22 @@ class Transform(Enum):
23
23
 
24
24
 
25
25
  def is_country(value):
26
- return re.match(r"^\w{2}$", value)
26
+ return re.match(r"^[A-Z]{2}$", value)
27
27
 
28
28
 
29
29
  def is_subnational1(value):
30
- return re.match(r"^\w{2}-\w{1,}$", value)
30
+ return re.match(r"^[A-Z]{2}-[A-Z0-9]{2,3}$", value)
31
31
 
32
32
 
33
33
  def is_subnational2(value):
34
- return re.match(r"^\w{2}-\w{1,}-\w{1,}$", value)
34
+ return re.match(r"^[A-Z]{2}-[A-Z0-9]{2,3}-[A-Z0-9]{2,3}$", value)
35
35
 
36
36
 
37
37
  def is_region(value):
38
38
  return (
39
- re.match(r"^\w{2}$", value)
40
- or re.match(r"^\w{2}-\w{1,}$", value)
41
- or re.match(r"^\w{2}-\w{1,}-\w{1,}$", value)
39
+ re.match(r"^[A-Z]{2}$", value)
40
+ or re.match(r"^[A-Z]{2}-[A-Z0-9]{2,3}$", value)
41
+ or re.match(r"^[A-Z]{2}-[A-Z0-9]{2,3}-[A-Z0-9]{2,3}$", value)
42
42
  )
43
43
 
44
44
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: ebird-api
3
- Version: 3.3.0
3
+ Version: 3.4.0
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