beachdayapi 0.1.2__tar.gz → 0.1.4__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: beachdayapi
3
- Version: 0.1.2
3
+ Version: 0.1.4
4
4
  Summary: Python client for the Beach Day API — real-time beach and surf conditions
5
5
  Author-email: Beach Day API <hello@beachdayapi.com>
6
6
  License-Expression: MIT
@@ -28,7 +28,7 @@ Description-Content-Type: text/markdown
28
28
  [![Python](https://img.shields.io/pypi/pyversions/beachdayapi.svg)](https://pypi.org/project/beachdayapi/)
29
29
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
30
30
 
31
- Python client for the [Beach Day API](https://beachdayapi.com) — water quality, weather, tides, ocean conditions, beach rules, amenities, and composite scoring in a single call. Covers 4,500+ beaches across the US, Australia, South Africa, and Spain.
31
+ Python client for the [Beach Day API](https://beachdayapi.com) — water quality, weather, tides, ocean conditions, beach rules, amenities, and composite scoring in a single call. Covers 5,300+ beaches across the US, Australia, South Africa, Spain, Cambodia, Thailand, Vietnam, and China.
32
32
 
33
33
  ```bash
34
34
  pip install beachdayapi
@@ -67,6 +67,11 @@ scored = client.beaches.scored(min_score=70, limit=10)
67
67
  for b in scored["data"]:
68
68
  print(f"{b['name']}: {b['beach_day_score']}")
69
69
 
70
+ # Discover available countries
71
+ countries = client.beaches.countries()
72
+ for c in countries["results"]:
73
+ print(f"{c['country']}: {c['beach_count']} beaches")
74
+
70
75
  # Health check (no API key needed)
71
76
  health = client.health()
72
77
  print(health)
@@ -94,6 +99,7 @@ client = BeachDayAPI(os.environ["BEACHDAY_API_KEY"])
94
99
  | `client.beaches.get(id)` | `GET /v1/beaches/{id}` | 5 credits | Beach detail |
95
100
  | `client.beaches.conditions(id)` | `GET /v1/beaches/{id}/conditions` | 3 credits | Current conditions |
96
101
  | `client.beaches.scored()` | `GET /v1/beaches/scored` | 10 credits | Scored beaches |
102
+ | `client.beaches.countries()` | `GET /v1/countries` | 1 credit | List countries with counts |
97
103
 
98
104
  ## Error Handling
99
105
 
@@ -4,7 +4,7 @@
4
4
  [![Python](https://img.shields.io/pypi/pyversions/beachdayapi.svg)](https://pypi.org/project/beachdayapi/)
5
5
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
6
6
 
7
- Python client for the [Beach Day API](https://beachdayapi.com) — water quality, weather, tides, ocean conditions, beach rules, amenities, and composite scoring in a single call. Covers 4,500+ beaches across the US, Australia, South Africa, and Spain.
7
+ Python client for the [Beach Day API](https://beachdayapi.com) — water quality, weather, tides, ocean conditions, beach rules, amenities, and composite scoring in a single call. Covers 5,300+ beaches across the US, Australia, South Africa, Spain, Cambodia, Thailand, Vietnam, and China.
8
8
 
9
9
  ```bash
10
10
  pip install beachdayapi
@@ -43,6 +43,11 @@ scored = client.beaches.scored(min_score=70, limit=10)
43
43
  for b in scored["data"]:
44
44
  print(f"{b['name']}: {b['beach_day_score']}")
45
45
 
46
+ # Discover available countries
47
+ countries = client.beaches.countries()
48
+ for c in countries["results"]:
49
+ print(f"{c['country']}: {c['beach_count']} beaches")
50
+
46
51
  # Health check (no API key needed)
47
52
  health = client.health()
48
53
  print(health)
@@ -70,6 +75,7 @@ client = BeachDayAPI(os.environ["BEACHDAY_API_KEY"])
70
75
  | `client.beaches.get(id)` | `GET /v1/beaches/{id}` | 5 credits | Beach detail |
71
76
  | `client.beaches.conditions(id)` | `GET /v1/beaches/{id}/conditions` | 3 credits | Current conditions |
72
77
  | `client.beaches.scored()` | `GET /v1/beaches/scored` | 10 credits | Scored beaches |
78
+ | `client.beaches.countries()` | `GET /v1/countries` | 1 credit | List countries with counts |
73
79
 
74
80
  ## Error Handling
75
81
 
@@ -26,4 +26,4 @@ from .client import BeachDayAPI
26
26
  from .exceptions import BeachDayAPIError, AuthenticationError, InsufficientCreditsError
27
27
 
28
28
  __all__ = ["BeachDayAPI", "BeachDayAPIError", "AuthenticationError", "InsufficientCreditsError"]
29
- __version__ = "0.1.0"
29
+ __version__ = "0.1.4"
@@ -159,3 +159,7 @@ class BeachEndpoints:
159
159
  "min_score": min_score,
160
160
  "limit": limit,
161
161
  })
162
+
163
+ def countries(self) -> Dict[str, Any]:
164
+ """List all available countries with beach counts."""
165
+ return self._client._get("/countries")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: beachdayapi
3
- Version: 0.1.2
3
+ Version: 0.1.4
4
4
  Summary: Python client for the Beach Day API — real-time beach and surf conditions
5
5
  Author-email: Beach Day API <hello@beachdayapi.com>
6
6
  License-Expression: MIT
@@ -28,7 +28,7 @@ Description-Content-Type: text/markdown
28
28
  [![Python](https://img.shields.io/pypi/pyversions/beachdayapi.svg)](https://pypi.org/project/beachdayapi/)
29
29
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
30
30
 
31
- Python client for the [Beach Day API](https://beachdayapi.com) — water quality, weather, tides, ocean conditions, beach rules, amenities, and composite scoring in a single call. Covers 4,500+ beaches across the US, Australia, South Africa, and Spain.
31
+ Python client for the [Beach Day API](https://beachdayapi.com) — water quality, weather, tides, ocean conditions, beach rules, amenities, and composite scoring in a single call. Covers 5,300+ beaches across the US, Australia, South Africa, Spain, Cambodia, Thailand, Vietnam, and China.
32
32
 
33
33
  ```bash
34
34
  pip install beachdayapi
@@ -67,6 +67,11 @@ scored = client.beaches.scored(min_score=70, limit=10)
67
67
  for b in scored["data"]:
68
68
  print(f"{b['name']}: {b['beach_day_score']}")
69
69
 
70
+ # Discover available countries
71
+ countries = client.beaches.countries()
72
+ for c in countries["results"]:
73
+ print(f"{c['country']}: {c['beach_count']} beaches")
74
+
70
75
  # Health check (no API key needed)
71
76
  health = client.health()
72
77
  print(health)
@@ -94,6 +99,7 @@ client = BeachDayAPI(os.environ["BEACHDAY_API_KEY"])
94
99
  | `client.beaches.get(id)` | `GET /v1/beaches/{id}` | 5 credits | Beach detail |
95
100
  | `client.beaches.conditions(id)` | `GET /v1/beaches/{id}/conditions` | 3 credits | Current conditions |
96
101
  | `client.beaches.scored()` | `GET /v1/beaches/scored` | 10 credits | Scored beaches |
102
+ | `client.beaches.countries()` | `GET /v1/countries` | 1 credit | List countries with counts |
97
103
 
98
104
  ## Error Handling
99
105
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "beachdayapi"
7
- version = "0.1.2"
7
+ version = "0.1.4"
8
8
  description = "Python client for the Beach Day API — real-time beach and surf conditions"
9
9
  readme = "README.md"
10
10
  license = "MIT"
File without changes