cloudflare-analytics 0.2.0__tar.gz → 0.2.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.
- {cloudflare_analytics-0.2.0 → cloudflare_analytics-0.2.1}/PKG-INFO +12 -8
- {cloudflare_analytics-0.2.0 → cloudflare_analytics-0.2.1}/README.md +11 -7
- {cloudflare_analytics-0.2.0 → cloudflare_analytics-0.2.1}/cloudflare_analytics/__init__.py +1 -1
- {cloudflare_analytics-0.2.0 → cloudflare_analytics-0.2.1}/pyproject.toml +2 -2
- {cloudflare_analytics-0.2.0 → cloudflare_analytics-0.2.1}/cloudflare_analytics/client.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: cloudflare-analytics
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.1
|
|
4
4
|
Summary: Cloudflare Analytics GraphQL API client
|
|
5
5
|
Keywords: cloudflare,analytics,graphql
|
|
6
6
|
Author: Michael Bianco
|
|
@@ -19,7 +19,7 @@ Description-Content-Type: text/markdown
|
|
|
19
19
|

|
|
20
20
|
[](https://opensource.org/licenses/MIT)
|
|
21
21
|
|
|
22
|
-
A Python client for interacting with the [Cloudflare GraphQL Analytics API](https://developers.cloudflare.com/analytics/graphql-api/).
|
|
22
|
+
A Python client for interacting with the [Cloudflare GraphQL Analytics API](https://developers.cloudflare.com/analytics/graphql-api/). Simple, AI generated, hand polished.
|
|
23
23
|
|
|
24
24
|
> **Note:** The official Cloudflare Python library does not support the GraphQL Analytics API endpoints. This library provides dedicated support for querying Cloudflare analytics data.
|
|
25
25
|
|
|
@@ -29,6 +29,13 @@ A Python client for interacting with the [Cloudflare GraphQL Analytics API](http
|
|
|
29
29
|
uv add cloudflare-analytics
|
|
30
30
|
```
|
|
31
31
|
|
|
32
|
+
## Features
|
|
33
|
+
|
|
34
|
+
- Simple, clean API for Cloudflare GraphQL Analytics
|
|
35
|
+
- Built-in retry logic with exponential backoff
|
|
36
|
+
- Type-safe responses using Pydantic models
|
|
37
|
+
- Comprehensive error handling
|
|
38
|
+
|
|
32
39
|
## Usage
|
|
33
40
|
|
|
34
41
|
There are two ways to initialize the client:
|
|
@@ -98,13 +105,10 @@ elif response.data:
|
|
|
98
105
|
print(f"Date: {date}, Minutes: {minutes}")
|
|
99
106
|
```
|
|
100
107
|
|
|
101
|
-
##
|
|
102
|
-
|
|
103
|
-
- Simple, clean API for Cloudflare GraphQL Analytics
|
|
104
|
-
- Built-in retry logic with exponential backoff
|
|
105
|
-
- Type-safe responses using Pydantic models
|
|
106
|
-
- Comprehensive error handling
|
|
108
|
+
## Cloudflare API Key Setup
|
|
107
109
|
|
|
110
|
+
* Manage Account > Account API tokens
|
|
111
|
+
* The easiest way to get the account ID is to log into your dashboard and look at the first UID after the domain in the URL.
|
|
108
112
|
|
|
109
113
|
## [MIT License](LICENSE.md)
|
|
110
114
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
[](https://opensource.org/licenses/MIT)
|
|
7
7
|
|
|
8
|
-
A Python client for interacting with the [Cloudflare GraphQL Analytics API](https://developers.cloudflare.com/analytics/graphql-api/).
|
|
8
|
+
A Python client for interacting with the [Cloudflare GraphQL Analytics API](https://developers.cloudflare.com/analytics/graphql-api/). Simple, AI generated, hand polished.
|
|
9
9
|
|
|
10
10
|
> **Note:** The official Cloudflare Python library does not support the GraphQL Analytics API endpoints. This library provides dedicated support for querying Cloudflare analytics data.
|
|
11
11
|
|
|
@@ -15,6 +15,13 @@ A Python client for interacting with the [Cloudflare GraphQL Analytics API](http
|
|
|
15
15
|
uv add cloudflare-analytics
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
+
## Features
|
|
19
|
+
|
|
20
|
+
- Simple, clean API for Cloudflare GraphQL Analytics
|
|
21
|
+
- Built-in retry logic with exponential backoff
|
|
22
|
+
- Type-safe responses using Pydantic models
|
|
23
|
+
- Comprehensive error handling
|
|
24
|
+
|
|
18
25
|
## Usage
|
|
19
26
|
|
|
20
27
|
There are two ways to initialize the client:
|
|
@@ -84,13 +91,10 @@ elif response.data:
|
|
|
84
91
|
print(f"Date: {date}, Minutes: {minutes}")
|
|
85
92
|
```
|
|
86
93
|
|
|
87
|
-
##
|
|
88
|
-
|
|
89
|
-
- Simple, clean API for Cloudflare GraphQL Analytics
|
|
90
|
-
- Built-in retry logic with exponential backoff
|
|
91
|
-
- Type-safe responses using Pydantic models
|
|
92
|
-
- Comprehensive error handling
|
|
94
|
+
## Cloudflare API Key Setup
|
|
93
95
|
|
|
96
|
+
* Manage Account > Account API tokens
|
|
97
|
+
* The easiest way to get the account ID is to log into your dashboard and look at the first UID after the domain in the URL.
|
|
94
98
|
|
|
95
99
|
## [MIT License](LICENSE.md)
|
|
96
100
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "cloudflare-analytics"
|
|
3
|
-
version = "0.2.
|
|
3
|
+
version = "0.2.1"
|
|
4
4
|
description = "Cloudflare Analytics GraphQL API client"
|
|
5
5
|
keywords = ["cloudflare", "analytics", "graphql"]
|
|
6
6
|
readme = "README.md"
|
|
@@ -16,7 +16,7 @@ urls = { "Repository" = "https://github.com/iloveitaly/cloudflare-analytics" }
|
|
|
16
16
|
# additional packaging information: https://packaging.python.org/en/latest/specifications/core-metadata/#license
|
|
17
17
|
|
|
18
18
|
[build-system]
|
|
19
|
-
requires = ["uv_build>=0.
|
|
19
|
+
requires = ["uv_build>=0.11.0,<0.12"]
|
|
20
20
|
build-backend = "uv_build"
|
|
21
21
|
|
|
22
22
|
[tool.uv.build-backend]
|
|
File without changes
|