fancy-google-analytics 0.2.0__tar.gz → 0.3.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.
- {fancy_google_analytics-0.2.0 → fancy_google_analytics-0.3.1}/CHANGELOG.md +61 -0
- fancy_google_analytics-0.3.1/PKG-INFO +125 -0
- fancy_google_analytics-0.3.1/README.md +103 -0
- {fancy_google_analytics-0.2.0 → fancy_google_analytics-0.3.1}/pyproject.toml +1 -1
- {fancy_google_analytics-0.2.0 → fancy_google_analytics-0.3.1}/src/fancy_google_analytics/__init__.py +1 -1
- fancy_google_analytics-0.2.0/PKG-INFO +0 -73
- fancy_google_analytics-0.2.0/README.md +0 -51
- {fancy_google_analytics-0.2.0 → fancy_google_analytics-0.3.1}/.gitignore +0 -0
- {fancy_google_analytics-0.2.0 → fancy_google_analytics-0.3.1}/LICENSE +0 -0
- {fancy_google_analytics-0.2.0 → fancy_google_analytics-0.3.1}/src/fancy_google_analytics/_fake.py +0 -0
- {fancy_google_analytics-0.2.0 → fancy_google_analytics-0.3.1}/src/fancy_google_analytics/_runtime.py +0 -0
- {fancy_google_analytics-0.2.0 → fancy_google_analytics-0.3.1}/src/fancy_google_analytics/actions/__init__.py +0 -0
- {fancy_google_analytics-0.2.0 → fancy_google_analytics-0.3.1}/src/fancy_google_analytics/actions/report_run.py +0 -0
- {fancy_google_analytics-0.2.0 → fancy_google_analytics-0.3.1}/src/fancy_google_analytics/faker.py +0 -0
- {fancy_google_analytics-0.2.0 → fancy_google_analytics-0.3.1}/src/fancy_google_analytics/py.typed +0 -0
- {fancy_google_analytics-0.2.0 → fancy_google_analytics-0.3.1}/src/fancy_google_analytics/service.py +0 -0
- {fancy_google_analytics-0.2.0 → fancy_google_analytics-0.3.1}/tests/test_faker.py +0 -0
|
@@ -8,6 +8,65 @@ The four packages share one version, because they are generated from one
|
|
|
8
8
|
`provider/` definition and a version that meant something different in each
|
|
9
9
|
would be a version nobody could reason about.
|
|
10
10
|
|
|
11
|
+
## [0.3.1] — 2026-08-24
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
|
|
15
|
+
- **`@particle-academy/google-analytics-js` now accepts a RANGE of `@particle-academy/google-analytics-ui`, not one exact version.**
|
|
16
|
+
|
|
17
|
+
It peer-depended on `@particle-academy/google-analytics-ui` at exactly the release it shipped with. That is the
|
|
18
|
+
strict form of the thing the kit's own rule forbids — a first-party sibling gets
|
|
19
|
+
a range — and the same block applied the rule correctly to its other two
|
|
20
|
+
dependencies. It was this one pair that slipped.
|
|
21
|
+
|
|
22
|
+
What it cost: ship `@particle-academy/google-analytics-ui` with a fixed help string and every consumer on the
|
|
23
|
+
previous `@particle-academy/google-analytics-js` had an **unmet peer**, which npm 7+ errors on. A documentation
|
|
24
|
+
patch could not be delivered without a matching runtime release, and a routine
|
|
25
|
+
`npm update` that moved the ui package alone broke the install.
|
|
26
|
+
|
|
27
|
+
The coupling is real and is not being loosened away. The ui package emits the
|
|
28
|
+
config schema and the js package implements against it, so a ui that adds a
|
|
29
|
+
field to a js that ignores it is silently wrong. But a PATCH is non-additive by
|
|
30
|
+
definition and a MINOR is where a field can appear — so `>=0.3.1 <0.4.0` is the
|
|
31
|
+
coupling that actually exists rather than the strictest one expressible.
|
|
32
|
+
|
|
33
|
+
Nothing else changed. `particle-academy/google-analytics-php` and `fancy-google-analytics` are unaffected; neither has an
|
|
34
|
+
equivalent edge.
|
|
35
|
+
|
|
36
|
+
## [0.3.0] — 2026-08-24
|
|
37
|
+
|
|
38
|
+
### Added
|
|
39
|
+
|
|
40
|
+
- **The README now says how to SET THIS CONNECTOR UP**, in the package itself.
|
|
41
|
+
|
|
42
|
+
Until now it explained what the four packages are, what they cost and why the
|
|
43
|
+
repo is generated — and said nothing about credentials, scopes, sandboxes or
|
|
44
|
+
operations. Somebody who installed it could not learn from it which credentials
|
|
45
|
+
a connection needs, where a human GETS them, which scopes to request, or what
|
|
46
|
+
the connector can actually do. All of that was already in the definition; the
|
|
47
|
+
one document a consumer reads was the one that omitted everything actionable.
|
|
48
|
+
|
|
49
|
+
The new **Setting it up** section carries:
|
|
50
|
+
|
|
51
|
+
- every credential, with the text saying where the value comes from, whether it
|
|
52
|
+
is **per installation** or **per connected account**, and whether it is secret;
|
|
53
|
+
- the OAuth authorize and token URLs and the exact scopes, verbatim;
|
|
54
|
+
- the access-token lifetime, and where refresh tokens ROTATE, the two things a
|
|
55
|
+
host must not do — retry a failed refresh, or refresh concurrently — because a
|
|
56
|
+
replay revokes the entire grant and nothing in the failure says why;
|
|
57
|
+
- the estate in this provider's own terms, including the cases where a
|
|
58
|
+
successful-looking run reaches nobody, or reaches the real one;
|
|
59
|
+
- every action and trigger with its method, path, inputs, and whether it is safe
|
|
60
|
+
to replay;
|
|
61
|
+
- a trigger's provider-side setup, which nobody can derive from anything else.
|
|
62
|
+
|
|
63
|
+
It is **generated from `provider/manifest.json`**, so it cannot drift from what
|
|
64
|
+
the packages do — which is the point at a few hundred providers, where a
|
|
65
|
+
hand-written setup section is a few hundred documents going quietly stale.
|
|
66
|
+
|
|
67
|
+
No code changed. This release exists because a registry and an installing agent
|
|
68
|
+
read the PUBLISHED artifact, and the artifact carried the old README.
|
|
69
|
+
|
|
11
70
|
## [0.2.0] — 2026-08-24
|
|
12
71
|
|
|
13
72
|
### Changed
|
|
@@ -82,3 +141,5 @@ that works against the fake and concatenates against the real thing.
|
|
|
82
141
|
|
|
83
142
|
[0.1.0]: https://github.com/Fancy-Friends/google-analytics/releases/tag/v0.1.0
|
|
84
143
|
[0.2.0]: https://github.com/Fancy-Friends/google-analytics/releases/tag/v0.2.0
|
|
144
|
+
[0.3.0]: https://github.com/Fancy-Friends/google-analytics/releases/tag/v0.3.0
|
|
145
|
+
[0.3.1]: https://github.com/Fancy-Friends/google-analytics/releases/tag/v0.3.1
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: fancy-google-analytics
|
|
3
|
+
Version: 0.3.1
|
|
4
|
+
Summary: Google Analytics for Python — the service descriptor, its faker, its webhook verification, and one function per operation. Plain HTTP; no vendor SDK.
|
|
5
|
+
Project-URL: Homepage, https://github.com/Fancy-Friends/google-analytics
|
|
6
|
+
Project-URL: Issues, https://github.com/Fancy-Friends/google-analytics/issues
|
|
7
|
+
Project-URL: Source, https://github.com/Fancy-Friends/google-analytics
|
|
8
|
+
Author: Particle Academy
|
|
9
|
+
License-Expression: MIT
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Keywords: analytics,api,connector,fancy-flow,google_analytics,particle-academy
|
|
12
|
+
Classifier: Development Status :: 3 - Alpha
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
18
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
19
|
+
Classifier: Typing :: Typed
|
|
20
|
+
Requires-Python: >=3.11
|
|
21
|
+
Description-Content-Type: text/markdown
|
|
22
|
+
|
|
23
|
+
# Google Analytics
|
|
24
|
+
|
|
25
|
+
Google Analytics for [fancy-flow][flow] — as **four imported, versioned packages**, one
|
|
26
|
+
per runtime. Not vendored source: a copy cannot be upgraded, and third-party APIs
|
|
27
|
+
change.
|
|
28
|
+
|
|
29
|
+
[flow]: https://github.com/Particle-Academy/fancy-flow
|
|
30
|
+
|
|
31
|
+
| Runtime | Package | Install |
|
|
32
|
+
|---|---|---|
|
|
33
|
+
| Authoring surface (every host) | `@particle-academy/google-analytics-ui` | `npm install @particle-academy/google-analytics-ui` |
|
|
34
|
+
| Node | `@particle-academy/google-analytics-js` | `npm install @particle-academy/google-analytics-js` |
|
|
35
|
+
| PHP 8.4+ | `particle-academy/google-analytics-php` | `composer require particle-academy/google-analytics-php` |
|
|
36
|
+
| Python 3.11+ | `fancy-google-analytics` | `pip install fancy-google-analytics` |
|
|
37
|
+
|
|
38
|
+
The `ui` package is the editor surface and is React on every host — a PHP or
|
|
39
|
+
Python project installs it *and* its own runtime package, and never the `js` one.
|
|
40
|
+
|
|
41
|
+
## What it costs you
|
|
42
|
+
|
|
43
|
+
One dependency: `@particle-academy/fancy-connector-core` (or
|
|
44
|
+
`particle-academy/fancy-connector-core` on Composer), which the `js` and `php`
|
|
45
|
+
packages pull in themselves. The Python package has **zero** runtime
|
|
46
|
+
dependencies.
|
|
47
|
+
|
|
48
|
+
**No Google Analytics SDK.** Plain HTTP, deliberately: a vendor SDK is third-party code
|
|
49
|
+
subject to the kit's full approval bar, and one per provider is hundreds of
|
|
50
|
+
dependencies nobody is tracking.
|
|
51
|
+
|
|
52
|
+
## Setting it up
|
|
53
|
+
|
|
54
|
+
Everything below is generated from `provider/manifest.json`, so it cannot disagree with what the packages do.
|
|
55
|
+
|
|
56
|
+
### Credentials
|
|
57
|
+
|
|
58
|
+
A Google Analytics connection holds 4 values.
|
|
59
|
+
|
|
60
|
+
**Two kinds of value, and mixing them up matters.** A `provider` credential is ONE value for the whole installation — an OAuth app's client secret serves every connected account. An `account` credential is one per connected account. A host that stores the second where it stores the first lets one account's credentials reach another's.
|
|
61
|
+
|
|
62
|
+
| Field | Scope | Secret | Where it comes from |
|
|
63
|
+
|---|---|---|---|
|
|
64
|
+
| **OAuth client ID** | per installation | not secret | From Google Cloud Console -> APIs & Services -> Credentials. ONE value for the whole installation, not per connected account. |
|
|
65
|
+
| **OAuth client secret** | per installation | **secret** | The client secret for the same OAuth app. One value for the whole installation. |
|
|
66
|
+
| **Access token** | per connected account | **secret** | Per connected Google account, and it expires after ONE HOUR. The host refreshes it with the refresh token. |
|
|
67
|
+
| **Refresh token** | per connected account | **secret** | Per connected Google account. Google issues one only when the consent request asks for offline access. |
|
|
68
|
+
|
|
69
|
+
### Authorising
|
|
70
|
+
|
|
71
|
+
Google Analytics uses OAuth2 (authorization_code). The package DECLARES the exchange; the HOST performs it — a consent screen needs a browser, a redirect URI and somewhere to persist the result, and all three belong to the host.
|
|
72
|
+
|
|
73
|
+
- **Authorize URL** — https://accounts.google.com/o/oauth2/v2/auth
|
|
74
|
+
- **Token URL** — https://oauth2.googleapis.com/token
|
|
75
|
+
- **Scopes** — `https://www.googleapis.com/auth/analytics.readonly`
|
|
76
|
+
- **Access token lifetime** — 3600 seconds (1 hours). A host that never refreshes works all afternoon and is broken by morning.
|
|
77
|
+
|
|
78
|
+
The refresh tokens do **not** rotate: the same one is reusable, so a refresh may safely be retried and may run concurrently. Stated rather than assumed, because the opposite — a provider that spends the token and revokes the grant on a replay — looks identical until it happens.
|
|
79
|
+
|
|
80
|
+
### The estate
|
|
81
|
+
|
|
82
|
+
**Google Analytics has no test estate, and somebody checked.** Everything this connector does is real. Use the faker to build against it.
|
|
83
|
+
|
|
84
|
+
> Google Analytics has no sandbox. A report reads a real property's real data and spends real quota. The faker returns a plausibly-shaped report so a flow can be built without a Google account.
|
|
85
|
+
|
|
86
|
+
## What it can do
|
|
87
|
+
|
|
88
|
+
### Actions
|
|
89
|
+
|
|
90
|
+
#### `report_run` — Google Analytics report
|
|
91
|
+
|
|
92
|
+
Run a report against a Google Analytics 4 property.
|
|
93
|
+
|
|
94
|
+
`POST /v1beta/{+property}:runReport` · reads only — safe to replay
|
|
95
|
+
|
|
96
|
+
| Input | Required | What it is |
|
|
97
|
+
|---|---|---|
|
|
98
|
+
| `property` | yes | The GA4 property, written as `properties/1234567890`. The numeric id alone is not accepted. |
|
|
99
|
+
| `startDate` | yes | YYYY-MM-DD, or a relative form Google accepts such as `28daysAgo`, `yesterday` or `today`. |
|
|
100
|
+
| `endDate` | yes | YYYY-MM-DD, or a relative form such as `today`. |
|
|
101
|
+
| `metrics` | yes | Metric names, comma separated. For example activeUsers, sessions, screenPageViews. |
|
|
102
|
+
| `dimensions` | no | Dimension names, comma separated. For example date, country, pagePath. Leave empty for a single total row. |
|
|
103
|
+
|
|
104
|
+
## Run it before you have credentials
|
|
105
|
+
|
|
106
|
+
Every operation ships a **faker**, whether or not Google Analytics has a sandbox. Set a
|
|
107
|
+
node's mode to `fake` and it returns the shape Google Analytics actually publishes — the
|
|
108
|
+
same field names, deterministically — so you can wire the downstream nodes before
|
|
109
|
+
touching an account, a key, or a network.
|
|
110
|
+
|
|
111
|
+
## This repository is generated
|
|
112
|
+
|
|
113
|
+
`provider/` is the source. Everything under `packages/` is emitted from it and
|
|
114
|
+
**must not be hand-edited** — CI regenerates and diffs on every push, and the
|
|
115
|
+
next protocol sync destroys anything it finds. See [`AGENTS.md`](AGENTS.md).
|
|
116
|
+
|
|
117
|
+
## Two namespaces, which do not match on purpose
|
|
118
|
+
|
|
119
|
+
The repo is `github.com/Fancy-Friends/google-analytics`; the packages publish under
|
|
120
|
+
`particle-academy`. Nothing derives one from the other — the names come from
|
|
121
|
+
weaver's `friends.json` and nowhere else.
|
|
122
|
+
|
|
123
|
+
## Licence
|
|
124
|
+
|
|
125
|
+
MIT.
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
# Google Analytics
|
|
2
|
+
|
|
3
|
+
Google Analytics for [fancy-flow][flow] — as **four imported, versioned packages**, one
|
|
4
|
+
per runtime. Not vendored source: a copy cannot be upgraded, and third-party APIs
|
|
5
|
+
change.
|
|
6
|
+
|
|
7
|
+
[flow]: https://github.com/Particle-Academy/fancy-flow
|
|
8
|
+
|
|
9
|
+
| Runtime | Package | Install |
|
|
10
|
+
|---|---|---|
|
|
11
|
+
| Authoring surface (every host) | `@particle-academy/google-analytics-ui` | `npm install @particle-academy/google-analytics-ui` |
|
|
12
|
+
| Node | `@particle-academy/google-analytics-js` | `npm install @particle-academy/google-analytics-js` |
|
|
13
|
+
| PHP 8.4+ | `particle-academy/google-analytics-php` | `composer require particle-academy/google-analytics-php` |
|
|
14
|
+
| Python 3.11+ | `fancy-google-analytics` | `pip install fancy-google-analytics` |
|
|
15
|
+
|
|
16
|
+
The `ui` package is the editor surface and is React on every host — a PHP or
|
|
17
|
+
Python project installs it *and* its own runtime package, and never the `js` one.
|
|
18
|
+
|
|
19
|
+
## What it costs you
|
|
20
|
+
|
|
21
|
+
One dependency: `@particle-academy/fancy-connector-core` (or
|
|
22
|
+
`particle-academy/fancy-connector-core` on Composer), which the `js` and `php`
|
|
23
|
+
packages pull in themselves. The Python package has **zero** runtime
|
|
24
|
+
dependencies.
|
|
25
|
+
|
|
26
|
+
**No Google Analytics SDK.** Plain HTTP, deliberately: a vendor SDK is third-party code
|
|
27
|
+
subject to the kit's full approval bar, and one per provider is hundreds of
|
|
28
|
+
dependencies nobody is tracking.
|
|
29
|
+
|
|
30
|
+
## Setting it up
|
|
31
|
+
|
|
32
|
+
Everything below is generated from `provider/manifest.json`, so it cannot disagree with what the packages do.
|
|
33
|
+
|
|
34
|
+
### Credentials
|
|
35
|
+
|
|
36
|
+
A Google Analytics connection holds 4 values.
|
|
37
|
+
|
|
38
|
+
**Two kinds of value, and mixing them up matters.** A `provider` credential is ONE value for the whole installation — an OAuth app's client secret serves every connected account. An `account` credential is one per connected account. A host that stores the second where it stores the first lets one account's credentials reach another's.
|
|
39
|
+
|
|
40
|
+
| Field | Scope | Secret | Where it comes from |
|
|
41
|
+
|---|---|---|---|
|
|
42
|
+
| **OAuth client ID** | per installation | not secret | From Google Cloud Console -> APIs & Services -> Credentials. ONE value for the whole installation, not per connected account. |
|
|
43
|
+
| **OAuth client secret** | per installation | **secret** | The client secret for the same OAuth app. One value for the whole installation. |
|
|
44
|
+
| **Access token** | per connected account | **secret** | Per connected Google account, and it expires after ONE HOUR. The host refreshes it with the refresh token. |
|
|
45
|
+
| **Refresh token** | per connected account | **secret** | Per connected Google account. Google issues one only when the consent request asks for offline access. |
|
|
46
|
+
|
|
47
|
+
### Authorising
|
|
48
|
+
|
|
49
|
+
Google Analytics uses OAuth2 (authorization_code). The package DECLARES the exchange; the HOST performs it — a consent screen needs a browser, a redirect URI and somewhere to persist the result, and all three belong to the host.
|
|
50
|
+
|
|
51
|
+
- **Authorize URL** — https://accounts.google.com/o/oauth2/v2/auth
|
|
52
|
+
- **Token URL** — https://oauth2.googleapis.com/token
|
|
53
|
+
- **Scopes** — `https://www.googleapis.com/auth/analytics.readonly`
|
|
54
|
+
- **Access token lifetime** — 3600 seconds (1 hours). A host that never refreshes works all afternoon and is broken by morning.
|
|
55
|
+
|
|
56
|
+
The refresh tokens do **not** rotate: the same one is reusable, so a refresh may safely be retried and may run concurrently. Stated rather than assumed, because the opposite — a provider that spends the token and revokes the grant on a replay — looks identical until it happens.
|
|
57
|
+
|
|
58
|
+
### The estate
|
|
59
|
+
|
|
60
|
+
**Google Analytics has no test estate, and somebody checked.** Everything this connector does is real. Use the faker to build against it.
|
|
61
|
+
|
|
62
|
+
> Google Analytics has no sandbox. A report reads a real property's real data and spends real quota. The faker returns a plausibly-shaped report so a flow can be built without a Google account.
|
|
63
|
+
|
|
64
|
+
## What it can do
|
|
65
|
+
|
|
66
|
+
### Actions
|
|
67
|
+
|
|
68
|
+
#### `report_run` — Google Analytics report
|
|
69
|
+
|
|
70
|
+
Run a report against a Google Analytics 4 property.
|
|
71
|
+
|
|
72
|
+
`POST /v1beta/{+property}:runReport` · reads only — safe to replay
|
|
73
|
+
|
|
74
|
+
| Input | Required | What it is |
|
|
75
|
+
|---|---|---|
|
|
76
|
+
| `property` | yes | The GA4 property, written as `properties/1234567890`. The numeric id alone is not accepted. |
|
|
77
|
+
| `startDate` | yes | YYYY-MM-DD, or a relative form Google accepts such as `28daysAgo`, `yesterday` or `today`. |
|
|
78
|
+
| `endDate` | yes | YYYY-MM-DD, or a relative form such as `today`. |
|
|
79
|
+
| `metrics` | yes | Metric names, comma separated. For example activeUsers, sessions, screenPageViews. |
|
|
80
|
+
| `dimensions` | no | Dimension names, comma separated. For example date, country, pagePath. Leave empty for a single total row. |
|
|
81
|
+
|
|
82
|
+
## Run it before you have credentials
|
|
83
|
+
|
|
84
|
+
Every operation ships a **faker**, whether or not Google Analytics has a sandbox. Set a
|
|
85
|
+
node's mode to `fake` and it returns the shape Google Analytics actually publishes — the
|
|
86
|
+
same field names, deterministically — so you can wire the downstream nodes before
|
|
87
|
+
touching an account, a key, or a network.
|
|
88
|
+
|
|
89
|
+
## This repository is generated
|
|
90
|
+
|
|
91
|
+
`provider/` is the source. Everything under `packages/` is emitted from it and
|
|
92
|
+
**must not be hand-edited** — CI regenerates and diffs on every push, and the
|
|
93
|
+
next protocol sync destroys anything it finds. See [`AGENTS.md`](AGENTS.md).
|
|
94
|
+
|
|
95
|
+
## Two namespaces, which do not match on purpose
|
|
96
|
+
|
|
97
|
+
The repo is `github.com/Fancy-Friends/google-analytics`; the packages publish under
|
|
98
|
+
`particle-academy`. Nothing derives one from the other — the names come from
|
|
99
|
+
weaver's `friends.json` and nowhere else.
|
|
100
|
+
|
|
101
|
+
## Licence
|
|
102
|
+
|
|
103
|
+
MIT.
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "fancy-google-analytics"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "0.3.1"
|
|
8
8
|
description = "Google Analytics for Python — the service descriptor, its faker, its webhook verification, and one function per operation. Plain HTTP; no vendor SDK."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
# 3.11 matches fancy-flow-py's floor: 3.10 reaches end of life on 2026-10-31,
|
{fancy_google_analytics-0.2.0 → fancy_google_analytics-0.3.1}/src/fancy_google_analytics/__init__.py
RENAMED
|
@@ -21,7 +21,7 @@ from .actions.report_run import report_run
|
|
|
21
21
|
from .faker import respond
|
|
22
22
|
from .service import BASE_URLS, CONNECTOR_API_VERSION, REQUIRES, SANDBOX, SERVICE, TITLE, descriptor
|
|
23
23
|
|
|
24
|
-
__version__ = "0.
|
|
24
|
+
__version__ = "0.3.1"
|
|
25
25
|
|
|
26
26
|
__all__ = [
|
|
27
27
|
"BASE_URLS",
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.5
|
|
2
|
-
Name: fancy-google-analytics
|
|
3
|
-
Version: 0.2.0
|
|
4
|
-
Summary: Google Analytics for Python — the service descriptor, its faker, its webhook verification, and one function per operation. Plain HTTP; no vendor SDK.
|
|
5
|
-
Project-URL: Homepage, https://github.com/Fancy-Friends/google-analytics
|
|
6
|
-
Project-URL: Issues, https://github.com/Fancy-Friends/google-analytics/issues
|
|
7
|
-
Project-URL: Source, https://github.com/Fancy-Friends/google-analytics
|
|
8
|
-
Author: Particle Academy
|
|
9
|
-
License-Expression: MIT
|
|
10
|
-
License-File: LICENSE
|
|
11
|
-
Keywords: analytics,api,connector,fancy-flow,google_analytics,particle-academy
|
|
12
|
-
Classifier: Development Status :: 3 - Alpha
|
|
13
|
-
Classifier: Intended Audience :: Developers
|
|
14
|
-
Classifier: Programming Language :: Python :: 3
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
-
Classifier: Programming Language :: Python :: 3.13
|
|
18
|
-
Classifier: Topic :: Software Development :: Libraries
|
|
19
|
-
Classifier: Typing :: Typed
|
|
20
|
-
Requires-Python: >=3.11
|
|
21
|
-
Description-Content-Type: text/markdown
|
|
22
|
-
|
|
23
|
-
# Google Analytics
|
|
24
|
-
|
|
25
|
-
Google Analytics for [fancy-flow][flow] — as **four imported, versioned packages**, one
|
|
26
|
-
per runtime. Not vendored source: a copy cannot be upgraded, and third-party APIs
|
|
27
|
-
change.
|
|
28
|
-
|
|
29
|
-
[flow]: https://github.com/Particle-Academy/fancy-flow
|
|
30
|
-
|
|
31
|
-
| Runtime | Package | Install |
|
|
32
|
-
|---|---|---|
|
|
33
|
-
| Authoring surface (every host) | `@particle-academy/google-analytics-ui` | `npm install @particle-academy/google-analytics-ui` |
|
|
34
|
-
| Node | `@particle-academy/google-analytics-js` | `npm install @particle-academy/google-analytics-js` |
|
|
35
|
-
| PHP 8.4+ | `particle-academy/google-analytics-php` | `composer require particle-academy/google-analytics-php` |
|
|
36
|
-
| Python 3.11+ | `fancy-google-analytics` | `pip install fancy-google-analytics` |
|
|
37
|
-
|
|
38
|
-
The `ui` package is the editor surface and is React on every host — a PHP or
|
|
39
|
-
Python project installs it *and* its own runtime package, and never the `js` one.
|
|
40
|
-
|
|
41
|
-
## What it costs you
|
|
42
|
-
|
|
43
|
-
One dependency: `@particle-academy/fancy-connector-core` (or
|
|
44
|
-
`particle-academy/fancy-connector-core` on Composer), which the `js` and `php`
|
|
45
|
-
packages pull in themselves. The Python package has **zero** runtime
|
|
46
|
-
dependencies.
|
|
47
|
-
|
|
48
|
-
**No Google Analytics SDK.** Plain HTTP, deliberately: a vendor SDK is third-party code
|
|
49
|
-
subject to the kit's full approval bar, and one per provider is hundreds of
|
|
50
|
-
dependencies nobody is tracking.
|
|
51
|
-
|
|
52
|
-
## Run it before you have credentials
|
|
53
|
-
|
|
54
|
-
Every operation ships a **faker**, whether or not Google Analytics has a sandbox. Set a
|
|
55
|
-
node's mode to `fake` and it returns the shape Google Analytics actually publishes — the
|
|
56
|
-
same field names, deterministically — so you can wire the downstream nodes before
|
|
57
|
-
touching an account, a key, or a network.
|
|
58
|
-
|
|
59
|
-
## This repository is generated
|
|
60
|
-
|
|
61
|
-
`provider/` is the source. Everything under `packages/` is emitted from it and
|
|
62
|
-
**must not be hand-edited** — CI regenerates and diffs on every push, and the
|
|
63
|
-
next protocol sync destroys anything it finds. See [`AGENTS.md`](AGENTS.md).
|
|
64
|
-
|
|
65
|
-
## Two namespaces, which do not match on purpose
|
|
66
|
-
|
|
67
|
-
The repo is `github.com/Fancy-Friends/google-analytics`; the packages publish under
|
|
68
|
-
`particle-academy`. Nothing derives one from the other — the names come from
|
|
69
|
-
weaver's `friends.json` and nowhere else.
|
|
70
|
-
|
|
71
|
-
## Licence
|
|
72
|
-
|
|
73
|
-
MIT.
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
# Google Analytics
|
|
2
|
-
|
|
3
|
-
Google Analytics for [fancy-flow][flow] — as **four imported, versioned packages**, one
|
|
4
|
-
per runtime. Not vendored source: a copy cannot be upgraded, and third-party APIs
|
|
5
|
-
change.
|
|
6
|
-
|
|
7
|
-
[flow]: https://github.com/Particle-Academy/fancy-flow
|
|
8
|
-
|
|
9
|
-
| Runtime | Package | Install |
|
|
10
|
-
|---|---|---|
|
|
11
|
-
| Authoring surface (every host) | `@particle-academy/google-analytics-ui` | `npm install @particle-academy/google-analytics-ui` |
|
|
12
|
-
| Node | `@particle-academy/google-analytics-js` | `npm install @particle-academy/google-analytics-js` |
|
|
13
|
-
| PHP 8.4+ | `particle-academy/google-analytics-php` | `composer require particle-academy/google-analytics-php` |
|
|
14
|
-
| Python 3.11+ | `fancy-google-analytics` | `pip install fancy-google-analytics` |
|
|
15
|
-
|
|
16
|
-
The `ui` package is the editor surface and is React on every host — a PHP or
|
|
17
|
-
Python project installs it *and* its own runtime package, and never the `js` one.
|
|
18
|
-
|
|
19
|
-
## What it costs you
|
|
20
|
-
|
|
21
|
-
One dependency: `@particle-academy/fancy-connector-core` (or
|
|
22
|
-
`particle-academy/fancy-connector-core` on Composer), which the `js` and `php`
|
|
23
|
-
packages pull in themselves. The Python package has **zero** runtime
|
|
24
|
-
dependencies.
|
|
25
|
-
|
|
26
|
-
**No Google Analytics SDK.** Plain HTTP, deliberately: a vendor SDK is third-party code
|
|
27
|
-
subject to the kit's full approval bar, and one per provider is hundreds of
|
|
28
|
-
dependencies nobody is tracking.
|
|
29
|
-
|
|
30
|
-
## Run it before you have credentials
|
|
31
|
-
|
|
32
|
-
Every operation ships a **faker**, whether or not Google Analytics has a sandbox. Set a
|
|
33
|
-
node's mode to `fake` and it returns the shape Google Analytics actually publishes — the
|
|
34
|
-
same field names, deterministically — so you can wire the downstream nodes before
|
|
35
|
-
touching an account, a key, or a network.
|
|
36
|
-
|
|
37
|
-
## This repository is generated
|
|
38
|
-
|
|
39
|
-
`provider/` is the source. Everything under `packages/` is emitted from it and
|
|
40
|
-
**must not be hand-edited** — CI regenerates and diffs on every push, and the
|
|
41
|
-
next protocol sync destroys anything it finds. See [`AGENTS.md`](AGENTS.md).
|
|
42
|
-
|
|
43
|
-
## Two namespaces, which do not match on purpose
|
|
44
|
-
|
|
45
|
-
The repo is `github.com/Fancy-Friends/google-analytics`; the packages publish under
|
|
46
|
-
`particle-academy`. Nothing derives one from the other — the names come from
|
|
47
|
-
weaver's `friends.json` and nowhere else.
|
|
48
|
-
|
|
49
|
-
## Licence
|
|
50
|
-
|
|
51
|
-
MIT.
|
|
File without changes
|
|
File without changes
|
{fancy_google_analytics-0.2.0 → fancy_google_analytics-0.3.1}/src/fancy_google_analytics/_fake.py
RENAMED
|
File without changes
|
{fancy_google_analytics-0.2.0 → fancy_google_analytics-0.3.1}/src/fancy_google_analytics/_runtime.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fancy_google_analytics-0.2.0 → fancy_google_analytics-0.3.1}/src/fancy_google_analytics/faker.py
RENAMED
|
File without changes
|
{fancy_google_analytics-0.2.0 → fancy_google_analytics-0.3.1}/src/fancy_google_analytics/py.typed
RENAMED
|
File without changes
|
{fancy_google_analytics-0.2.0 → fancy_google_analytics-0.3.1}/src/fancy_google_analytics/service.py
RENAMED
|
File without changes
|
|
File without changes
|