fancy-google-docs 0.2.0__tar.gz → 0.3.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.
@@ -8,6 +8,40 @@ 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.0] — 2026-08-24
12
+
13
+ ### Added
14
+
15
+ - **The README now says how to SET THIS CONNECTOR UP**, in the package itself.
16
+
17
+ Until now it explained what the four packages are, what they cost and why the
18
+ repo is generated — and said nothing about credentials, scopes, sandboxes or
19
+ operations. Somebody who installed it could not learn from it which credentials
20
+ a connection needs, where a human GETS them, which scopes to request, or what
21
+ the connector can actually do. All of that was already in the definition; the
22
+ one document a consumer reads was the one that omitted everything actionable.
23
+
24
+ The new **Setting it up** section carries:
25
+
26
+ - every credential, with the text saying where the value comes from, whether it
27
+ is **per installation** or **per connected account**, and whether it is secret;
28
+ - the OAuth authorize and token URLs and the exact scopes, verbatim;
29
+ - the access-token lifetime, and where refresh tokens ROTATE, the two things a
30
+ host must not do — retry a failed refresh, or refresh concurrently — because a
31
+ replay revokes the entire grant and nothing in the failure says why;
32
+ - the estate in this provider's own terms, including the cases where a
33
+ successful-looking run reaches nobody, or reaches the real one;
34
+ - every action and trigger with its method, path, inputs, and whether it is safe
35
+ to replay;
36
+ - a trigger's provider-side setup, which nobody can derive from anything else.
37
+
38
+ It is **generated from `provider/manifest.json`**, so it cannot drift from what
39
+ the packages do — which is the point at a few hundred providers, where a
40
+ hand-written setup section is a few hundred documents going quietly stale.
41
+
42
+ No code changed. This release exists because a registry and an installing agent
43
+ read the PUBLISHED artifact, and the artifact carried the old README.
44
+
11
45
  ## [0.2.0] — 2026-08-24
12
46
 
13
47
  ### Changed
@@ -58,3 +92,4 @@ create a second document and the action is honestly `unsafe-to-replay`.
58
92
 
59
93
  [0.1.0]: https://github.com/Fancy-Friends/google-docs/releases/tag/v0.1.0
60
94
  [0.2.0]: https://github.com/Fancy-Friends/google-docs/releases/tag/v0.2.0
95
+ [0.3.0]: https://github.com/Fancy-Friends/google-docs/releases/tag/v0.3.0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: fancy-google-docs
3
- Version: 0.2.0
3
+ Version: 0.3.0
4
4
  Summary: Google Docs for Python — the service descriptor, its faker, its webhook verification, and one function per operation. Plain HTTP; no vendor SDK.
5
5
  Project-URL: Homepage, https://github.com/Fancy-Friends/google-docs
6
6
  Project-URL: Issues, https://github.com/Fancy-Friends/google-docs/issues
@@ -49,6 +49,54 @@ dependencies.
49
49
  subject to the kit's full approval bar, and one per provider is hundreds of
50
50
  dependencies nobody is tracking.
51
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 Docs 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; without it the connection dies within the hour. |
68
+
69
+ ### Authorising
70
+
71
+ Google Docs 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/documents`
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 Docs has no test estate, and somebody checked.** Everything this connector does is real. Use the faker to build against it.
83
+
84
+ > Google has no sandbox for Docs. A test document is a real one in a real Drive, so every create is real -- use the faker while developing and clean up any live test documents.
85
+
86
+ ## What it can do
87
+
88
+ ### Actions
89
+
90
+ #### `document_create` — Google Docs document
91
+
92
+ Create a blank Google Docs document.
93
+
94
+ `POST /v1/documents` · **unsafe to replay** — a retried durable run does it TWICE
95
+
96
+ | Input | Required | What it is |
97
+ |---|---|---|
98
+ | `title` | yes | The title of the new blank document. |
99
+
52
100
  ## Run it before you have credentials
53
101
 
54
102
  Every operation ships a **faker**, whether or not Google Docs has a sandbox. Set a
@@ -0,0 +1,99 @@
1
+ # Google Docs
2
+
3
+ Google Docs 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-docs-ui` | `npm install @particle-academy/google-docs-ui` |
12
+ | Node | `@particle-academy/google-docs-js` | `npm install @particle-academy/google-docs-js` |
13
+ | PHP 8.4+ | `particle-academy/google-docs-php` | `composer require particle-academy/google-docs-php` |
14
+ | Python 3.11+ | `fancy-google-docs` | `pip install fancy-google-docs` |
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 Docs 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 Docs 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; without it the connection dies within the hour. |
46
+
47
+ ### Authorising
48
+
49
+ Google Docs 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/documents`
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 Docs has no test estate, and somebody checked.** Everything this connector does is real. Use the faker to build against it.
61
+
62
+ > Google has no sandbox for Docs. A test document is a real one in a real Drive, so every create is real -- use the faker while developing and clean up any live test documents.
63
+
64
+ ## What it can do
65
+
66
+ ### Actions
67
+
68
+ #### `document_create` — Google Docs document
69
+
70
+ Create a blank Google Docs document.
71
+
72
+ `POST /v1/documents` · **unsafe to replay** — a retried durable run does it TWICE
73
+
74
+ | Input | Required | What it is |
75
+ |---|---|---|
76
+ | `title` | yes | The title of the new blank document. |
77
+
78
+ ## Run it before you have credentials
79
+
80
+ Every operation ships a **faker**, whether or not Google Docs has a sandbox. Set a
81
+ node's mode to `fake` and it returns the shape Google Docs actually publishes — the
82
+ same field names, deterministically — so you can wire the downstream nodes before
83
+ touching an account, a key, or a network.
84
+
85
+ ## This repository is generated
86
+
87
+ `provider/` is the source. Everything under `packages/` is emitted from it and
88
+ **must not be hand-edited** — CI regenerates and diffs on every push, and the
89
+ next protocol sync destroys anything it finds. See [`AGENTS.md`](AGENTS.md).
90
+
91
+ ## Two namespaces, which do not match on purpose
92
+
93
+ The repo is `github.com/Fancy-Friends/google-docs`; the packages publish under
94
+ `particle-academy`. Nothing derives one from the other — the names come from
95
+ weaver's `friends.json` and nowhere else.
96
+
97
+ ## Licence
98
+
99
+ MIT.
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "fancy-google-docs"
7
- version = "0.2.0"
7
+ version = "0.3.0"
8
8
  description = "Google Docs 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,
@@ -21,7 +21,7 @@ from .actions.document_create import document_create
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.2.0"
24
+ __version__ = "0.3.0"
25
25
 
26
26
  __all__ = [
27
27
  "BASE_URLS",
@@ -1,51 +0,0 @@
1
- # Google Docs
2
-
3
- Google Docs 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-docs-ui` | `npm install @particle-academy/google-docs-ui` |
12
- | Node | `@particle-academy/google-docs-js` | `npm install @particle-academy/google-docs-js` |
13
- | PHP 8.4+ | `particle-academy/google-docs-php` | `composer require particle-academy/google-docs-php` |
14
- | Python 3.11+ | `fancy-google-docs` | `pip install fancy-google-docs` |
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 Docs 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 Docs has a sandbox. Set a
33
- node's mode to `fake` and it returns the shape Google Docs 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-docs`; 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.