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.
- {beachdayapi-0.1.2 → beachdayapi-0.1.4}/PKG-INFO +8 -2
- {beachdayapi-0.1.2 → beachdayapi-0.1.4}/README.md +7 -1
- {beachdayapi-0.1.2 → beachdayapi-0.1.4}/beachdayapi/__init__.py +1 -1
- {beachdayapi-0.1.2 → beachdayapi-0.1.4}/beachdayapi/client.py +4 -0
- {beachdayapi-0.1.2 → beachdayapi-0.1.4}/beachdayapi.egg-info/PKG-INFO +8 -2
- {beachdayapi-0.1.2 → beachdayapi-0.1.4}/pyproject.toml +1 -1
- {beachdayapi-0.1.2 → beachdayapi-0.1.4}/beachdayapi/exceptions.py +0 -0
- {beachdayapi-0.1.2 → beachdayapi-0.1.4}/beachdayapi.egg-info/SOURCES.txt +0 -0
- {beachdayapi-0.1.2 → beachdayapi-0.1.4}/beachdayapi.egg-info/dependency_links.txt +0 -0
- {beachdayapi-0.1.2 → beachdayapi-0.1.4}/beachdayapi.egg-info/top_level.txt +0 -0
- {beachdayapi-0.1.2 → beachdayapi-0.1.4}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: beachdayapi
|
|
3
|
-
Version: 0.1.
|
|
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
|
[](https://pypi.org/project/beachdayapi/)
|
|
29
29
|
[](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
|
|
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
|
[](https://pypi.org/project/beachdayapi/)
|
|
5
5
|
[](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
|
|
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.
|
|
29
|
+
__version__ = "0.1.4"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: beachdayapi
|
|
3
|
-
Version: 0.1.
|
|
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
|
[](https://pypi.org/project/beachdayapi/)
|
|
29
29
|
[](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
|
|
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
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|