swarmauri_storage_github 0.2.0.dev52__tar.gz → 0.11.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.
@@ -0,0 +1,7 @@
1
+ swarmauri_storage_github
2
+
3
+ Distribution: swarmauri_storage_github
4
+ Repository: https://github.com/swarmauri/swarmauri-sdk
5
+
6
+ Author attribution: Jacob Stewart.
7
+ Licensed under Apache-2.0; see LICENSE.
@@ -0,0 +1,373 @@
1
+ Metadata-Version: 2.4
2
+ Name: swarmauri_storage_github
3
+ Version: 0.11.0
4
+ Summary: GitHub storage adapter stub for Peagen
5
+ License-Expression: Apache-2.0
6
+ License-File: LICENSE
7
+ License-File: NOTICE
8
+ Keywords: swarmauri,sdk,standards,storage,github
9
+ Author: Jacob Stewart
10
+ Author-email: jacob@swarmauri.com
11
+ Requires-Python: >=3.10,<3.15
12
+ Classifier: Operating System :: OS Independent
13
+ Classifier: Programming Language :: Python
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3 :: Only
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Programming Language :: Python :: 3.13
20
+ Classifier: Programming Language :: Python :: 3.14
21
+ Requires-Dist: swarmauri_base
22
+ Requires-Dist: swarmauri_core
23
+ Requires-Dist: swarmauri_standard
24
+ Description-Content-Type: text/markdown
25
+
26
+ # swarmauri_storage_github
27
+
28
+ <!-- readme-standards:begin branding -->
29
+ <p align="center"><a href="https://github.com/swarmauri/swarmauri-sdk"><img src="https://raw.githubusercontent.com/swarmauri/swarmauri-sdk/master/assets/swarmauri.brand.theme.svg" alt="Swarmauri SDK" width="300"></a></p>
30
+ <p align="center"><strong>swarmauri_storage_github</strong></p>
31
+ <p align="center">GitHub storage adapter stub for Peagen</p>
32
+ <p align="center">
33
+ <a href="https://pypi.org/project/swarmauri_storage_github/"><img alt="pypi: swarmauri_storage_github" src="https://img.shields.io/pypi/v/swarmauri_storage_github?labelColor=1E293B&amp;color=1D4ED8"></a>
34
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/pyproject.toml"><img alt="Source version: 0.11.0" src="https://img.shields.io/static/v1?label=Source%20version&amp;message=0.11.0&amp;labelColor=1E293B&amp;color=4338CA"></a>
35
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/pyproject.toml"><img alt="Python: &gt;=3.10,&lt;3.15" src="https://img.shields.io/static/v1?label=Python&amp;message=%3E%3D3.10%2C%3C3.15&amp;labelColor=1E293B&amp;color=0F766E"></a>
36
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/pyproject.toml"><img alt="Layer: standards" src="https://img.shields.io/static/v1?label=Layer&amp;message=standards&amp;labelColor=1E293B&amp;color=6D28D9"></a>
37
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/README.md#lifecycle-and-migration"><img alt="Lifecycle: active" src="https://img.shields.io/static/v1?label=Lifecycle&amp;message=active&amp;labelColor=1E293B&amp;color=166534"></a>
38
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/LICENSE"><img alt="License: Apache-2.0" src="https://img.shields.io/static/v1?label=License&amp;message=Apache-2.0&amp;labelColor=1E293B&amp;color=86198F"></a>
39
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/NOTICE"><img alt="Notice: attribution" src="https://img.shields.io/static/v1?label=Notice&amp;message=attribution&amp;labelColor=1E293B&amp;color=86198F"></a>
40
+ </p>
41
+ <p align="center">
42
+ <a href="https://pypi.org/project/swarmauri_storage_github/"><img alt="Monthly PyPI downloads: swarmauri_storage_github" src="https://img.shields.io/pypi/dm/swarmauri_storage_github?labelColor=1E293B&amp;color=0E7490"></a>
43
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/README.md"><img alt="README hits: swarmauri_storage_github" src="https://hits.sh/github.com/swarmauri/swarmauri-sdk/pkgs/40-standards/swarmauri_storage_github/README.md.svg?label=README%20hits&amp;labelColor=1E293B&amp;color=0E7490"></a>
44
+ </p>
45
+ <p align="center">
46
+ <a href="https://github.com/swarmauri/swarmauri-sdk/actions/workflows/readme-standards.yml"><img alt="README standards: CI gate" src="https://img.shields.io/static/v1?label=README%20standards&amp;message=CI%20gate&amp;labelColor=1E293B&amp;color=1D4ED8"></a>
47
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/tests/unit/test_readme_sources.py"><img alt="Tests: example source" src="https://img.shields.io/static/v1?label=Tests&amp;message=example%20source&amp;labelColor=1E293B&amp;color=0F766E"></a>
48
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/README.md#certification-status"><img alt="Certification: not certified" src="https://img.shields.io/static/v1?label=Certification&amp;message=not%20certified&amp;labelColor=1E293B&amp;color=92400E"></a>
49
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/tools/readme/POLICY.md"><img alt="Governance: repository policy" src="https://img.shields.io/static/v1?label=Governance&amp;message=repository%20policy&amp;labelColor=1E293B&amp;color=4338CA"></a>
50
+ <a href="https://github.com/swarmauri/swarmauri-sdk/actions/workflows/readme-standards.yml"><img alt="Evidence: source and CI" src="https://img.shields.io/static/v1?label=Evidence&amp;message=source%20and%20CI&amp;labelColor=1E293B&amp;color=6D28D9"></a>
51
+ </p>
52
+ <p align="center"><a href="#overview">Overview</a> · <a href="#installation">Installation</a> · <a href="#quick-start">Quick Start</a> · <a href="#usage">Usage</a> · <a href="#public-api-and-import-surfaces">API</a> · <a href="#contributing">Contributing</a> · <a href="#governance">Governance</a> · <a href="#license">License</a></p>
53
+ <!-- readme-standards:end branding -->
54
+
55
+ ---
56
+
57
+ ## Overview
58
+
59
+ ### Summary
60
+
61
+ `GithubStorageAdapter` is a lightweight placeholder storage adapter for Peagen.
62
+ It returns deterministic `github://` URIs for uploaded objects without making
63
+ any network calls to GitHub. The class is useful for demos, tests, and for
64
+ validating code paths that rely on the storage adapter interface.
65
+
66
+ ### Why This Package
67
+
68
+ `swarmauri_storage_github` isolates this responsibility: GitHub storage adapter stub for Peagen. Its [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/swarmauri_storage_github/__init__.py) exposes `GithubStorageAdapter`, allowing consumers to select this package without treating adjacent packages as part of its public contract.
69
+
70
+ ### When to Use
71
+
72
+ Choose `swarmauri_storage_github` when your integration needs gitHub storage adapter stub for Peagen. Match the imports below to your application boundary and install its declared dependencies before using the example.
73
+
74
+ ### Features
75
+
76
+ - `GithubStorageAdapter`: declared in swarmauri_storage_github/github_storage_adapter.py
77
+
78
+ ### Non-Goals
79
+
80
+ `swarmauri_storage_github` owns gitHub storage adapter stub for Peagen. Its imports do not by themselves configure credentials, deploy a service, or certify the behavior of its consumers. Dependencies and neighboring packages retain their own documented responsibilities.
81
+
82
+ ---
83
+
84
+ ## Getting Started
85
+
86
+ ### Prerequisites
87
+
88
+ Python `>=3.10,<3.15` is required. The [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/pyproject.toml) declares runtime dependencies including `swarmauri-core`, `swarmauri-base`, `swarmauri-standard`. Read the example’s inputs and service requirements before execution.
89
+
90
+ ### Installation
91
+
92
+ Choose the tool that matches your workflow:
93
+
94
+ ```bash
95
+ # pip
96
+ pip install swarmauri_storage_github
97
+
98
+ # Poetry
99
+ poetry add swarmauri_storage_github
100
+
101
+ # uv
102
+ uv add swarmauri_storage_github
103
+ ```
104
+
105
+ #### uv
106
+
107
+ <!-- readme-standards:begin installation.uv -->
108
+ ```bash
109
+ uv add swarmauri_storage_github
110
+ ```
111
+ <!-- readme-standards:end installation.uv -->
112
+
113
+ #### pip
114
+
115
+ <!-- readme-standards:begin installation.pip -->
116
+ ```bash
117
+ python -m pip install swarmauri_storage_github
118
+ ```
119
+ <!-- readme-standards:end installation.pip -->
120
+
121
+ #### Poetry
122
+
123
+ <!-- readme-standards:begin installation.poetry -->
124
+ ```bash
125
+ poetry add swarmauri_storage_github
126
+ ```
127
+ <!-- readme-standards:end installation.poetry -->
128
+
129
+ ### Quick Start
130
+
131
+ `GithubStorageAdapter.upload()` accepts a key and a binary file-like object. It
132
+ returns the key formatted as a `github://` URI so callers can wire the adapter
133
+ into pipelines that expect GitHub-backed storage without performing any remote
134
+ I/O.
135
+
136
+
137
+ **Behavior and limitations**
138
+
139
+ - `upload()` does not persist data?it simply echoes the key back as a
140
+ `github://` URI.
141
+ - `download()`, `upload_dir()`, and `download_dir()` raise
142
+ `NotImplementedError` to signal that full GitHub support is intentionally out
143
+ of scope for this stub.
144
+
145
+ #### Example
146
+
147
+ <!-- readme-standards:begin example.quick-start -->
148
+ Source: [docs/readme/quick_start.py](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/docs/readme/quick_start.py).
149
+
150
+ ```python
151
+ from io import BytesIO
152
+
153
+ from swarmauri_storage_github import GithubStorageAdapter
154
+
155
+
156
+ adapter = GithubStorageAdapter()
157
+
158
+ # The adapter only inspects the key, so any binary stream is acceptable.
159
+ payload = BytesIO(
160
+ b"# Example README\nThis payload would be uploaded to GitHub."
161
+ )
162
+ uri = adapter.upload("my-org/my-repo/README.md", payload)
163
+
164
+ print(uri) # github://my-org/my-repo/README.md
165
+ ```
166
+ <!-- readme-standards:end example.quick-start -->
167
+
168
+ #### Expected Result
169
+
170
+ The example demonstrates the documented `swarmauri_storage_github` source boundary or workflow. Complete its required configuration first. README CI checks the maintained source’s syntax and declarations; it does not claim that external services or the application workflow were exercised.
171
+
172
+ ---
173
+
174
+ ## Usage
175
+
176
+ ### Common Workflows
177
+
178
+ <!-- readme-standards:begin example.usage -->
179
+ Source: [docs/readme/usage.py](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/docs/readme/usage.py).
180
+
181
+ ```python
182
+ from io import BytesIO
183
+
184
+ from swarmauri_storage_github import GithubStorageAdapter
185
+
186
+
187
+ adapter = GithubStorageAdapter()
188
+
189
+ # The adapter only inspects the key, so any binary stream is acceptable.
190
+ payload = BytesIO(
191
+ b"# Example README\nThis payload would be uploaded to GitHub."
192
+ )
193
+ uri = adapter.upload("my-org/my-repo/README.md", payload)
194
+
195
+ print(uri) # github://my-org/my-repo/README.md
196
+ ```
197
+ <!-- readme-standards:end example.usage -->
198
+
199
+ ### Configuration
200
+
201
+ Configure `swarmauri_storage_github` through the APIs in [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/swarmauri_storage_github/__init__.py); its [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/pyproject.toml) describes installation requirements, not an implicit service configuration. No additional package-global configuration contract is inferred from dependencies.
202
+
203
+ ### Error Handling
204
+
205
+ The inspected `swarmauri_storage_github` source raises `NotImplementedError`. Handle these at the calling boundary and consult the implementation for the triggering conditions.
206
+
207
+ ### Best Practices
208
+
209
+ Use the explicit `swarmauri_storage_github` imports documented below and keep collaborator configuration with the caller. Run the package’s relevant tests after changing `GithubStorageAdapter`; an import or successful installation alone does not establish its runtime guarantees.
210
+
211
+ ---
212
+
213
+ ## Package Boundary
214
+
215
+ ### What It Owns
216
+
217
+ `swarmauri_storage_github` is located in `standards` and owns gitHub storage adapter stub for Peagen. Source-declared APIs include `GithubStorageAdapter`. The [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/pyproject.toml) records its direct dependency boundary.
218
+
219
+ ### Public API and Import Surfaces
220
+
221
+ Import namespace: `swarmauri_storage_github`.
222
+
223
+ Source-declared exports or types: `GithubStorageAdapter`.
224
+
225
+ Inspect [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/swarmauri_storage_github/__init__.py) for exact signatures; this inventory does not designate every internal module as stable.
226
+
227
+ ### Entry Points
228
+
229
+ <!-- readme-standards:begin entry-points -->
230
+ - `peagen.plugins.storage_adapters` → `github` → `swarmauri_storage_github.github_storage_adapter:GithubStorageAdapter`
231
+ - `swarmauri.storage_adapters` → `GithubStorageAdapter` → `swarmauri_storage_github.github_storage_adapter:GithubStorageAdapter`
232
+ <!-- readme-standards:end entry-points -->
233
+
234
+ ### Injected Dependencies
235
+
236
+ The direct installation dependencies of `swarmauri_storage_github` are `swarmauri-core`, `swarmauri-base`, `swarmauri-standard`. These declarations do not imply automatic provider selection. Pass collaborators through the explicit constructors or call signatures in [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/swarmauri_storage_github/__init__.py).
237
+
238
+ ### Protocol Consumers
239
+
240
+ No direct package-manifest dependency on `swarmauri_storage_github` was found in the audited three-repository inventory. External consumers may still use its documented imports or commands.
241
+
242
+ ### Extensions
243
+
244
+ For `swarmauri_storage_github`, use the source-declared public interfaces (`GithubStorageAdapter`) when composing or extending behavior. Its entry-point section below is authoritative for registered plugins; no additional extension loader is inferred from the package name.
245
+
246
+ ---
247
+
248
+ ## Operations and Readiness
249
+
250
+ ### Operational Requirements
251
+
252
+ Operate `swarmauri_storage_github` according to its actual entry points and collaborators. The dependency and Python requirements in the [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/pyproject.toml) are prerequisites; deployment topology, credentials, and readiness remain the responsibility of the consuming application unless explicitly documented above.
253
+
254
+ ### Health and Observability
255
+
256
+ This README does not establish a standalone health endpoint for `swarmauri_storage_github`. Observe the concrete caller’s results, exceptions, and existing test reports. An application that embeds this package must define its own health and telemetry contract.
257
+
258
+ ### Security and Resource Limits
259
+
260
+ Apply the input, credential, and resource constraints implemented in [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/swarmauri_storage_github/__init__.py). The `swarmauri_storage_github` README gate is a documentation check, not a security review or a substitute for the implementation’s limits and caller authorization.
261
+
262
+ ### Compatibility
263
+
264
+ This source version of `swarmauri_storage_github` declares Python `>=3.10,<3.15`. Consult its dependency constraints before upgrading. Source-version and registry-version badges have separate meanings; this migration makes no additional platform or interoperability certification claim.
265
+
266
+ ---
267
+
268
+ ## Verification
269
+
270
+ ### Tests
271
+
272
+ Run `python -m pytest tests/unit/test_readme_sources.py` from the `swarmauri_storage_github` package directory for the maintained example source checks (Python compilation and non-Python file presence). Existing package tests include:
273
+
274
+ - [tests/example/test_readme_example.py](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/tests/example/test_readme_example.py)
275
+ - [tests/i9n/test_i9n__init__.py](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/tests/i9n/test_i9n__init__.py)
276
+ - [tests/unit/test_github_storage_adapter.py](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/tests/unit/test_github_storage_adapter.py)
277
+
278
+ The repository README gate also checks the required heading tree, metadata, managed fragments, and referenced files.
279
+
280
+ ### Certification Status
281
+
282
+ No external certification is asserted for `swarmauri_storage_github` by this documentation migration. README conformance, example syntax, runtime tests, and protocol or security certification are distinct evidence scopes.
283
+
284
+ ### Evidence
285
+
286
+ The [README standards CI](https://github.com/swarmauri/swarmauri-sdk/actions/workflows/readme-standards.yml) records mechanical documentation results for its tested commit. The [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/swarmauri_storage_github/__init__.py) and example sources support the package-boundary description; external runtime behavior requires its own test evidence.
287
+
288
+ ---
289
+
290
+ ## FAQ
291
+
292
+ ### Why
293
+
294
+ **Why select this package?** `swarmauri_storage_github` provides gitHub storage adapter stub for Peagen; use its own API boundary rather than assuming neighboring packages are bundled or configured automatically.
295
+
296
+ ### How
297
+
298
+ **How do I start?** Install or synchronize the environment under Getting Started, follow the maintained example for `swarmauri_storage_github`, and consult [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/swarmauri_storage_github/__init__.py) for the exact types and signatures involved.
299
+
300
+ ### When
301
+
302
+ **When should I validate an upgrade?** Recheck `swarmauri_storage_github` whenever its source version, declared collaborators, configuration, or caller changes. Run relevant behavioral tests in addition to the README gate before promotion.
303
+
304
+ ---
305
+
306
+ ## Documentation and Related Packages
307
+
308
+ ### More Documentation
309
+
310
+ The [repository contribution guide](https://github.com/swarmauri/swarmauri-sdk/blob/master/CONTRIBUTING.md), [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/swarmauri_storage_github/__init__.py), and [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/pyproject.toml) provide the supporting context for `swarmauri_storage_github`. The [README policy](https://github.com/groupsum/readme-standards/blob/master/docs/outline.md) defines the common document structure.
311
+
312
+ ### Related Packages
313
+
314
+ - [swarmauri_base](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/20-bases/swarmauri_base/README.md): Reusable Swarmauri base classes, mixins, and dynamic Pydantic component models for composable intelligence infrastructure.
315
+ - [swarmauri_core](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/10-interfaces/swarmauri_core/README.md): Core interface contracts and shared types for Swarmauri composable intelligence infrastructure components.
316
+ - [swarmauri_standard](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/30-standard-kernel/swarmauri_standard/README.md): First-party Swarmauri standard components for agents, tools, parsers, vectors, model adapters, and composable intelligence workflows.
317
+
318
+ ### Project Links
319
+
320
+ <!-- readme-standards:begin project-links -->
321
+ - [pypi: swarmauri_storage_github](https://pypi.org/project/swarmauri_storage_github/)
322
+ <!-- readme-standards:end project-links -->
323
+
324
+ ---
325
+
326
+ ## Contributing
327
+
328
+ ### How to Contribute
329
+
330
+ If you want to contribute to swarmauri-sdk, read up on our
331
+ [guidelines for contributing](https://github.com/swarmauri/swarmauri-sdk/blob/master/CONTRIBUTING.md)
332
+ that will help you get started.
333
+
334
+ ### Development Setup
335
+
336
+ Work from the `pkgs/40-standards/swarmauri_storage_github` checkout. Synchronize its declared development environment with uv, then run the relevant package tests and `python -m pytest tests/unit/test_readme_sources.py`. The repository’s dedicated README job installs `readme-standards==0.1.3` without resolving unrelated runtime packages.
337
+
338
+ ### Notes for Maintainers
339
+
340
+ Edit authored prose directly in this `swarmauri_storage_github` README. Update source examples in `docs/readme/`, then run `readme-standards render --root . --write` from the package directory and review the diff. Required headings and generated blocks come from package-guide-v1.
341
+
342
+ ---
343
+
344
+ ## Governance
345
+
346
+ ### Ownership and Decision Making
347
+
348
+ Changes to `swarmauri_storage_github` follow the maintainer review process of [swarmauri/swarmauri-sdk](https://github.com/swarmauri/swarmauri-sdk) and its contribution guide. Author attribution remains in the [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/pyproject.toml); this README does not assign new publishing or administrative authority.
349
+
350
+ ### Standards and Policies
351
+
352
+ `swarmauri_storage_github` follows the versioned [package-guide-v1 outline](https://github.com/groupsum/readme-standards/blob/master/docs/outline.md). All fixed headings, hierarchy, order, separators, and package-specific branding are checked by CI; reviewers assess the accuracy and usefulness of authored claims.
353
+
354
+ ### Lifecycle and Migration
355
+
356
+ The `swarmauri_storage_github` source version is `0.11.0`.
357
+
358
+ ---
359
+
360
+ ## License and Attribution
361
+
362
+ ### License
363
+
364
+ <!-- readme-standards:begin license -->
365
+ Licensed under `Apache-2.0`. See [LICENSE](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/LICENSE).
366
+ <!-- readme-standards:end license -->
367
+
368
+ ### Notices
369
+
370
+ <!-- readme-standards:begin notices -->
371
+ See [NOTICE](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/NOTICE) for attribution.
372
+ <!-- readme-standards:end notices -->
373
+
@@ -0,0 +1,347 @@
1
+ # swarmauri_storage_github
2
+
3
+ <!-- readme-standards:begin branding -->
4
+ <p align="center"><a href="https://github.com/swarmauri/swarmauri-sdk"><img src="https://raw.githubusercontent.com/swarmauri/swarmauri-sdk/master/assets/swarmauri.brand.theme.svg" alt="Swarmauri SDK" width="300"></a></p>
5
+ <p align="center"><strong>swarmauri_storage_github</strong></p>
6
+ <p align="center">GitHub storage adapter stub for Peagen</p>
7
+ <p align="center">
8
+ <a href="https://pypi.org/project/swarmauri_storage_github/"><img alt="pypi: swarmauri_storage_github" src="https://img.shields.io/pypi/v/swarmauri_storage_github?labelColor=1E293B&amp;color=1D4ED8"></a>
9
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/pyproject.toml"><img alt="Source version: 0.11.0" src="https://img.shields.io/static/v1?label=Source%20version&amp;message=0.11.0&amp;labelColor=1E293B&amp;color=4338CA"></a>
10
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/pyproject.toml"><img alt="Python: &gt;=3.10,&lt;3.15" src="https://img.shields.io/static/v1?label=Python&amp;message=%3E%3D3.10%2C%3C3.15&amp;labelColor=1E293B&amp;color=0F766E"></a>
11
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/pyproject.toml"><img alt="Layer: standards" src="https://img.shields.io/static/v1?label=Layer&amp;message=standards&amp;labelColor=1E293B&amp;color=6D28D9"></a>
12
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/README.md#lifecycle-and-migration"><img alt="Lifecycle: active" src="https://img.shields.io/static/v1?label=Lifecycle&amp;message=active&amp;labelColor=1E293B&amp;color=166534"></a>
13
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/LICENSE"><img alt="License: Apache-2.0" src="https://img.shields.io/static/v1?label=License&amp;message=Apache-2.0&amp;labelColor=1E293B&amp;color=86198F"></a>
14
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/NOTICE"><img alt="Notice: attribution" src="https://img.shields.io/static/v1?label=Notice&amp;message=attribution&amp;labelColor=1E293B&amp;color=86198F"></a>
15
+ </p>
16
+ <p align="center">
17
+ <a href="https://pypi.org/project/swarmauri_storage_github/"><img alt="Monthly PyPI downloads: swarmauri_storage_github" src="https://img.shields.io/pypi/dm/swarmauri_storage_github?labelColor=1E293B&amp;color=0E7490"></a>
18
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/README.md"><img alt="README hits: swarmauri_storage_github" src="https://hits.sh/github.com/swarmauri/swarmauri-sdk/pkgs/40-standards/swarmauri_storage_github/README.md.svg?label=README%20hits&amp;labelColor=1E293B&amp;color=0E7490"></a>
19
+ </p>
20
+ <p align="center">
21
+ <a href="https://github.com/swarmauri/swarmauri-sdk/actions/workflows/readme-standards.yml"><img alt="README standards: CI gate" src="https://img.shields.io/static/v1?label=README%20standards&amp;message=CI%20gate&amp;labelColor=1E293B&amp;color=1D4ED8"></a>
22
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/tests/unit/test_readme_sources.py"><img alt="Tests: example source" src="https://img.shields.io/static/v1?label=Tests&amp;message=example%20source&amp;labelColor=1E293B&amp;color=0F766E"></a>
23
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/README.md#certification-status"><img alt="Certification: not certified" src="https://img.shields.io/static/v1?label=Certification&amp;message=not%20certified&amp;labelColor=1E293B&amp;color=92400E"></a>
24
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/tools/readme/POLICY.md"><img alt="Governance: repository policy" src="https://img.shields.io/static/v1?label=Governance&amp;message=repository%20policy&amp;labelColor=1E293B&amp;color=4338CA"></a>
25
+ <a href="https://github.com/swarmauri/swarmauri-sdk/actions/workflows/readme-standards.yml"><img alt="Evidence: source and CI" src="https://img.shields.io/static/v1?label=Evidence&amp;message=source%20and%20CI&amp;labelColor=1E293B&amp;color=6D28D9"></a>
26
+ </p>
27
+ <p align="center"><a href="#overview">Overview</a> · <a href="#installation">Installation</a> · <a href="#quick-start">Quick Start</a> · <a href="#usage">Usage</a> · <a href="#public-api-and-import-surfaces">API</a> · <a href="#contributing">Contributing</a> · <a href="#governance">Governance</a> · <a href="#license">License</a></p>
28
+ <!-- readme-standards:end branding -->
29
+
30
+ ---
31
+
32
+ ## Overview
33
+
34
+ ### Summary
35
+
36
+ `GithubStorageAdapter` is a lightweight placeholder storage adapter for Peagen.
37
+ It returns deterministic `github://` URIs for uploaded objects without making
38
+ any network calls to GitHub. The class is useful for demos, tests, and for
39
+ validating code paths that rely on the storage adapter interface.
40
+
41
+ ### Why This Package
42
+
43
+ `swarmauri_storage_github` isolates this responsibility: GitHub storage adapter stub for Peagen. Its [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/swarmauri_storage_github/__init__.py) exposes `GithubStorageAdapter`, allowing consumers to select this package without treating adjacent packages as part of its public contract.
44
+
45
+ ### When to Use
46
+
47
+ Choose `swarmauri_storage_github` when your integration needs gitHub storage adapter stub for Peagen. Match the imports below to your application boundary and install its declared dependencies before using the example.
48
+
49
+ ### Features
50
+
51
+ - `GithubStorageAdapter`: declared in swarmauri_storage_github/github_storage_adapter.py
52
+
53
+ ### Non-Goals
54
+
55
+ `swarmauri_storage_github` owns gitHub storage adapter stub for Peagen. Its imports do not by themselves configure credentials, deploy a service, or certify the behavior of its consumers. Dependencies and neighboring packages retain their own documented responsibilities.
56
+
57
+ ---
58
+
59
+ ## Getting Started
60
+
61
+ ### Prerequisites
62
+
63
+ Python `>=3.10,<3.15` is required. The [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/pyproject.toml) declares runtime dependencies including `swarmauri-core`, `swarmauri-base`, `swarmauri-standard`. Read the example’s inputs and service requirements before execution.
64
+
65
+ ### Installation
66
+
67
+ Choose the tool that matches your workflow:
68
+
69
+ ```bash
70
+ # pip
71
+ pip install swarmauri_storage_github
72
+
73
+ # Poetry
74
+ poetry add swarmauri_storage_github
75
+
76
+ # uv
77
+ uv add swarmauri_storage_github
78
+ ```
79
+
80
+ #### uv
81
+
82
+ <!-- readme-standards:begin installation.uv -->
83
+ ```bash
84
+ uv add swarmauri_storage_github
85
+ ```
86
+ <!-- readme-standards:end installation.uv -->
87
+
88
+ #### pip
89
+
90
+ <!-- readme-standards:begin installation.pip -->
91
+ ```bash
92
+ python -m pip install swarmauri_storage_github
93
+ ```
94
+ <!-- readme-standards:end installation.pip -->
95
+
96
+ #### Poetry
97
+
98
+ <!-- readme-standards:begin installation.poetry -->
99
+ ```bash
100
+ poetry add swarmauri_storage_github
101
+ ```
102
+ <!-- readme-standards:end installation.poetry -->
103
+
104
+ ### Quick Start
105
+
106
+ `GithubStorageAdapter.upload()` accepts a key and a binary file-like object. It
107
+ returns the key formatted as a `github://` URI so callers can wire the adapter
108
+ into pipelines that expect GitHub-backed storage without performing any remote
109
+ I/O.
110
+
111
+
112
+ **Behavior and limitations**
113
+
114
+ - `upload()` does not persist data?it simply echoes the key back as a
115
+ `github://` URI.
116
+ - `download()`, `upload_dir()`, and `download_dir()` raise
117
+ `NotImplementedError` to signal that full GitHub support is intentionally out
118
+ of scope for this stub.
119
+
120
+ #### Example
121
+
122
+ <!-- readme-standards:begin example.quick-start -->
123
+ Source: [docs/readme/quick_start.py](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/docs/readme/quick_start.py).
124
+
125
+ ```python
126
+ from io import BytesIO
127
+
128
+ from swarmauri_storage_github import GithubStorageAdapter
129
+
130
+
131
+ adapter = GithubStorageAdapter()
132
+
133
+ # The adapter only inspects the key, so any binary stream is acceptable.
134
+ payload = BytesIO(
135
+ b"# Example README\nThis payload would be uploaded to GitHub."
136
+ )
137
+ uri = adapter.upload("my-org/my-repo/README.md", payload)
138
+
139
+ print(uri) # github://my-org/my-repo/README.md
140
+ ```
141
+ <!-- readme-standards:end example.quick-start -->
142
+
143
+ #### Expected Result
144
+
145
+ The example demonstrates the documented `swarmauri_storage_github` source boundary or workflow. Complete its required configuration first. README CI checks the maintained source’s syntax and declarations; it does not claim that external services or the application workflow were exercised.
146
+
147
+ ---
148
+
149
+ ## Usage
150
+
151
+ ### Common Workflows
152
+
153
+ <!-- readme-standards:begin example.usage -->
154
+ Source: [docs/readme/usage.py](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/docs/readme/usage.py).
155
+
156
+ ```python
157
+ from io import BytesIO
158
+
159
+ from swarmauri_storage_github import GithubStorageAdapter
160
+
161
+
162
+ adapter = GithubStorageAdapter()
163
+
164
+ # The adapter only inspects the key, so any binary stream is acceptable.
165
+ payload = BytesIO(
166
+ b"# Example README\nThis payload would be uploaded to GitHub."
167
+ )
168
+ uri = adapter.upload("my-org/my-repo/README.md", payload)
169
+
170
+ print(uri) # github://my-org/my-repo/README.md
171
+ ```
172
+ <!-- readme-standards:end example.usage -->
173
+
174
+ ### Configuration
175
+
176
+ Configure `swarmauri_storage_github` through the APIs in [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/swarmauri_storage_github/__init__.py); its [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/pyproject.toml) describes installation requirements, not an implicit service configuration. No additional package-global configuration contract is inferred from dependencies.
177
+
178
+ ### Error Handling
179
+
180
+ The inspected `swarmauri_storage_github` source raises `NotImplementedError`. Handle these at the calling boundary and consult the implementation for the triggering conditions.
181
+
182
+ ### Best Practices
183
+
184
+ Use the explicit `swarmauri_storage_github` imports documented below and keep collaborator configuration with the caller. Run the package’s relevant tests after changing `GithubStorageAdapter`; an import or successful installation alone does not establish its runtime guarantees.
185
+
186
+ ---
187
+
188
+ ## Package Boundary
189
+
190
+ ### What It Owns
191
+
192
+ `swarmauri_storage_github` is located in `standards` and owns gitHub storage adapter stub for Peagen. Source-declared APIs include `GithubStorageAdapter`. The [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/pyproject.toml) records its direct dependency boundary.
193
+
194
+ ### Public API and Import Surfaces
195
+
196
+ Import namespace: `swarmauri_storage_github`.
197
+
198
+ Source-declared exports or types: `GithubStorageAdapter`.
199
+
200
+ Inspect [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/swarmauri_storage_github/__init__.py) for exact signatures; this inventory does not designate every internal module as stable.
201
+
202
+ ### Entry Points
203
+
204
+ <!-- readme-standards:begin entry-points -->
205
+ - `peagen.plugins.storage_adapters` → `github` → `swarmauri_storage_github.github_storage_adapter:GithubStorageAdapter`
206
+ - `swarmauri.storage_adapters` → `GithubStorageAdapter` → `swarmauri_storage_github.github_storage_adapter:GithubStorageAdapter`
207
+ <!-- readme-standards:end entry-points -->
208
+
209
+ ### Injected Dependencies
210
+
211
+ The direct installation dependencies of `swarmauri_storage_github` are `swarmauri-core`, `swarmauri-base`, `swarmauri-standard`. These declarations do not imply automatic provider selection. Pass collaborators through the explicit constructors or call signatures in [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/swarmauri_storage_github/__init__.py).
212
+
213
+ ### Protocol Consumers
214
+
215
+ No direct package-manifest dependency on `swarmauri_storage_github` was found in the audited three-repository inventory. External consumers may still use its documented imports or commands.
216
+
217
+ ### Extensions
218
+
219
+ For `swarmauri_storage_github`, use the source-declared public interfaces (`GithubStorageAdapter`) when composing or extending behavior. Its entry-point section below is authoritative for registered plugins; no additional extension loader is inferred from the package name.
220
+
221
+ ---
222
+
223
+ ## Operations and Readiness
224
+
225
+ ### Operational Requirements
226
+
227
+ Operate `swarmauri_storage_github` according to its actual entry points and collaborators. The dependency and Python requirements in the [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/pyproject.toml) are prerequisites; deployment topology, credentials, and readiness remain the responsibility of the consuming application unless explicitly documented above.
228
+
229
+ ### Health and Observability
230
+
231
+ This README does not establish a standalone health endpoint for `swarmauri_storage_github`. Observe the concrete caller’s results, exceptions, and existing test reports. An application that embeds this package must define its own health and telemetry contract.
232
+
233
+ ### Security and Resource Limits
234
+
235
+ Apply the input, credential, and resource constraints implemented in [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/swarmauri_storage_github/__init__.py). The `swarmauri_storage_github` README gate is a documentation check, not a security review or a substitute for the implementation’s limits and caller authorization.
236
+
237
+ ### Compatibility
238
+
239
+ This source version of `swarmauri_storage_github` declares Python `>=3.10,<3.15`. Consult its dependency constraints before upgrading. Source-version and registry-version badges have separate meanings; this migration makes no additional platform or interoperability certification claim.
240
+
241
+ ---
242
+
243
+ ## Verification
244
+
245
+ ### Tests
246
+
247
+ Run `python -m pytest tests/unit/test_readme_sources.py` from the `swarmauri_storage_github` package directory for the maintained example source checks (Python compilation and non-Python file presence). Existing package tests include:
248
+
249
+ - [tests/example/test_readme_example.py](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/tests/example/test_readme_example.py)
250
+ - [tests/i9n/test_i9n__init__.py](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/tests/i9n/test_i9n__init__.py)
251
+ - [tests/unit/test_github_storage_adapter.py](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/tests/unit/test_github_storage_adapter.py)
252
+
253
+ The repository README gate also checks the required heading tree, metadata, managed fragments, and referenced files.
254
+
255
+ ### Certification Status
256
+
257
+ No external certification is asserted for `swarmauri_storage_github` by this documentation migration. README conformance, example syntax, runtime tests, and protocol or security certification are distinct evidence scopes.
258
+
259
+ ### Evidence
260
+
261
+ The [README standards CI](https://github.com/swarmauri/swarmauri-sdk/actions/workflows/readme-standards.yml) records mechanical documentation results for its tested commit. The [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/swarmauri_storage_github/__init__.py) and example sources support the package-boundary description; external runtime behavior requires its own test evidence.
262
+
263
+ ---
264
+
265
+ ## FAQ
266
+
267
+ ### Why
268
+
269
+ **Why select this package?** `swarmauri_storage_github` provides gitHub storage adapter stub for Peagen; use its own API boundary rather than assuming neighboring packages are bundled or configured automatically.
270
+
271
+ ### How
272
+
273
+ **How do I start?** Install or synchronize the environment under Getting Started, follow the maintained example for `swarmauri_storage_github`, and consult [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/swarmauri_storage_github/__init__.py) for the exact types and signatures involved.
274
+
275
+ ### When
276
+
277
+ **When should I validate an upgrade?** Recheck `swarmauri_storage_github` whenever its source version, declared collaborators, configuration, or caller changes. Run relevant behavioral tests in addition to the README gate before promotion.
278
+
279
+ ---
280
+
281
+ ## Documentation and Related Packages
282
+
283
+ ### More Documentation
284
+
285
+ The [repository contribution guide](https://github.com/swarmauri/swarmauri-sdk/blob/master/CONTRIBUTING.md), [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/swarmauri_storage_github/__init__.py), and [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/pyproject.toml) provide the supporting context for `swarmauri_storage_github`. The [README policy](https://github.com/groupsum/readme-standards/blob/master/docs/outline.md) defines the common document structure.
286
+
287
+ ### Related Packages
288
+
289
+ - [swarmauri_base](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/20-bases/swarmauri_base/README.md): Reusable Swarmauri base classes, mixins, and dynamic Pydantic component models for composable intelligence infrastructure.
290
+ - [swarmauri_core](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/10-interfaces/swarmauri_core/README.md): Core interface contracts and shared types for Swarmauri composable intelligence infrastructure components.
291
+ - [swarmauri_standard](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/30-standard-kernel/swarmauri_standard/README.md): First-party Swarmauri standard components for agents, tools, parsers, vectors, model adapters, and composable intelligence workflows.
292
+
293
+ ### Project Links
294
+
295
+ <!-- readme-standards:begin project-links -->
296
+ - [pypi: swarmauri_storage_github](https://pypi.org/project/swarmauri_storage_github/)
297
+ <!-- readme-standards:end project-links -->
298
+
299
+ ---
300
+
301
+ ## Contributing
302
+
303
+ ### How to Contribute
304
+
305
+ If you want to contribute to swarmauri-sdk, read up on our
306
+ [guidelines for contributing](https://github.com/swarmauri/swarmauri-sdk/blob/master/CONTRIBUTING.md)
307
+ that will help you get started.
308
+
309
+ ### Development Setup
310
+
311
+ Work from the `pkgs/40-standards/swarmauri_storage_github` checkout. Synchronize its declared development environment with uv, then run the relevant package tests and `python -m pytest tests/unit/test_readme_sources.py`. The repository’s dedicated README job installs `readme-standards==0.1.3` without resolving unrelated runtime packages.
312
+
313
+ ### Notes for Maintainers
314
+
315
+ Edit authored prose directly in this `swarmauri_storage_github` README. Update source examples in `docs/readme/`, then run `readme-standards render --root . --write` from the package directory and review the diff. Required headings and generated blocks come from package-guide-v1.
316
+
317
+ ---
318
+
319
+ ## Governance
320
+
321
+ ### Ownership and Decision Making
322
+
323
+ Changes to `swarmauri_storage_github` follow the maintainer review process of [swarmauri/swarmauri-sdk](https://github.com/swarmauri/swarmauri-sdk) and its contribution guide. Author attribution remains in the [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/pyproject.toml); this README does not assign new publishing or administrative authority.
324
+
325
+ ### Standards and Policies
326
+
327
+ `swarmauri_storage_github` follows the versioned [package-guide-v1 outline](https://github.com/groupsum/readme-standards/blob/master/docs/outline.md). All fixed headings, hierarchy, order, separators, and package-specific branding are checked by CI; reviewers assess the accuracy and usefulness of authored claims.
328
+
329
+ ### Lifecycle and Migration
330
+
331
+ The `swarmauri_storage_github` source version is `0.11.0`.
332
+
333
+ ---
334
+
335
+ ## License and Attribution
336
+
337
+ ### License
338
+
339
+ <!-- readme-standards:begin license -->
340
+ Licensed under `Apache-2.0`. See [LICENSE](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/LICENSE).
341
+ <!-- readme-standards:end license -->
342
+
343
+ ### Notices
344
+
345
+ <!-- readme-standards:begin notices -->
346
+ See [NOTICE](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/NOTICE) for attribution.
347
+ <!-- readme-standards:end notices -->
@@ -1,23 +1,22 @@
1
1
  [project]
2
2
  name = "swarmauri_storage_github"
3
- version = "0.2.0.dev52"
4
- authors = [
5
- { name = "Jacob Stewart", email = "jacob@swarmauri.com" }
6
- ]
3
+ version = "0.11.0"
4
+ authors = [{ name = "Jacob Stewart", email = "jacob@swarmauri.com" }]
7
5
  description = "GitHub storage adapter stub for Peagen"
8
6
  readme = "README.md"
9
7
  license = "Apache-2.0"
10
8
  repository = "http://github.com/swarmauri/swarmauri-sdk"
11
- requires-python = ">=3.10,<3.13"
9
+ requires-python = ">=3.10,<3.15"
12
10
  classifiers = [
13
- "License :: OSI Approved :: Apache Software License",
11
+ "Operating System :: OS Independent",
12
+ "Programming Language :: Python",
14
13
  "Programming Language :: Python :: 3",
14
+ "Programming Language :: Python :: 3 :: Only",
15
15
  "Programming Language :: Python :: 3.10",
16
16
  "Programming Language :: Python :: 3.11",
17
17
  "Programming Language :: Python :: 3.12",
18
- "Operating System :: OS Independent",
19
- "Programming Language :: Python",
20
- "Programming Language :: Python :: 3 :: Only",
18
+ "Programming Language :: Python :: 3.13",
19
+ "Programming Language :: Python :: 3.14",
21
20
  ]
22
21
  dependencies = [
23
22
  "swarmauri_core",
@@ -31,12 +30,61 @@ keywords = [
31
30
  'storage',
32
31
  'github',
33
32
  ]
33
+ license-files = ["LICENSE", "NOTICE"]
34
34
 
35
35
  [tool.uv.sources]
36
36
  swarmauri_core = { workspace = true }
37
37
  swarmauri_base = { workspace = true }
38
38
  swarmauri_standard = { workspace = true }
39
39
 
40
+ [tool.readme_standards]
41
+ policy = "package-guide-v1"
42
+ readme = "README.md"
43
+ brand = "swarmauri"
44
+ brand_catalog = "../../../tools/readme/brands.toml"
45
+ repository = "https://github.com/swarmauri/swarmauri-sdk"
46
+ ref = "master"
47
+ package_path = "pkgs/40-standards/swarmauri_storage_github"
48
+ layer = "standards"
49
+ lifecycle = "active"
50
+ license_file = "LICENSE"
51
+ notice_file = "NOTICE"
52
+
53
+ [tool.readme_standards.distributions.pypi]
54
+ name = "swarmauri_storage_github"
55
+ published = true
56
+
57
+ [tool.readme_standards.examples.quick_start]
58
+ source = "docs/readme/quick_start.py"
59
+ test = "tests/unit/test_readme_sources.py"
60
+ language = "python"
61
+ expected_exit_code = 0
62
+
63
+ [tool.readme_standards.examples.usage]
64
+ source = "docs/readme/usage.py"
65
+ test = "tests/unit/test_readme_sources.py"
66
+ language = "python"
67
+ expected_exit_code = 0
68
+
69
+ [tool.readme_standards.statuses.readme]
70
+ label = "CI gate"
71
+ url = "https://github.com/swarmauri/swarmauri-sdk/actions/workflows/readme-standards.yml"
72
+
73
+ [tool.readme_standards.statuses.tests]
74
+ label = "example source"
75
+ url = "https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/tests/unit/test_readme_sources.py"
76
+
77
+ [tool.readme_standards.statuses.certification]
78
+ label = "not certified"
79
+ url = "https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_storage_github/README.md#certification-status"
80
+
81
+ [tool.readme_standards.statuses.governance]
82
+ label = "repository policy"
83
+ url = "https://github.com/swarmauri/swarmauri-sdk/blob/master/tools/readme/POLICY.md"
84
+
85
+ [tool.readme_standards.statuses.evidence]
86
+ label = "source and CI"
87
+ url = "https://github.com/swarmauri/swarmauri-sdk/actions/workflows/readme-standards.yml"
40
88
  [project.entry-points.'swarmauri.storage_adapters']
41
89
  GithubStorageAdapter = "swarmauri_storage_github.github_storage_adapter:GithubStorageAdapter"
42
90
 
@@ -75,9 +123,10 @@ dev = [
75
123
  "pytest-xdist>=3.6.1",
76
124
  "pytest-json-report>=1.5.0",
77
125
  "python-dotenv",
78
- "requests>=2.32.3",
126
+ "httpx>=0.27",
79
127
  "flake8>=7.0",
80
128
  "pytest-timeout>=2.3.1",
81
129
  "ruff>=0.9.9",
82
130
  "pytest-benchmark>=4.0.0",
131
+ "readme-standards==0.1.3; python_version >= \"3.11\"",
83
132
  ]
@@ -3,9 +3,9 @@ from .github_storage_adapter import GithubStorageAdapter
3
3
  __all__ = ["GithubStorageAdapter"]
4
4
 
5
5
  try: # pragma: no cover
6
- from importlib.metadata import version, PackageNotFoundError
6
+ from importlib.metadata import PackageNotFoundError, version
7
7
  except ImportError: # pragma: no cover
8
- from importlib_metadata import version, PackageNotFoundError
8
+ from importlib_metadata import PackageNotFoundError, version
9
9
 
10
10
  try: # pragma: no cover
11
11
  __version__ = version("swarmauri_storage_github")
@@ -13,7 +13,9 @@ class GithubStorageAdapter(StorageAdapterBase):
13
13
  super().__init__(**kwargs)
14
14
  self.kwargs = kwargs
15
15
 
16
- def upload(self, key: str, data: BinaryIO) -> str: # pragma: no cover - stub
16
+ def upload(
17
+ self, key: str, data: BinaryIO
18
+ ) -> str: # pragma: no cover - stub
17
19
  return f"github://{key}"
18
20
 
19
21
  def download(self, key: str) -> BinaryIO: # pragma: no cover - stub
@@ -29,10 +31,13 @@ class GithubStorageAdapter(StorageAdapterBase):
29
31
  ) -> None: # pragma: no cover - stub
30
32
  raise NotImplementedError("download_dir() not implemented")
31
33
 
32
- async def remove_object(self, object_key: str) -> None: # pragma: no cover - stub
34
+ async def remove_object(
35
+ self, object_key: str
36
+ ) -> None: # pragma: no cover - stub
33
37
  del object_key
34
- return
35
38
 
36
39
  @classmethod
37
- def from_uri(cls, uri: str) -> "GithubStorageAdapter": # pragma: no cover - stub
40
+ def from_uri(
41
+ cls, uri: str
42
+ ) -> GithubStorageAdapter: # pragma: no cover - stub
38
43
  return cls()
@@ -1,98 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: swarmauri_storage_github
3
- Version: 0.2.0.dev52
4
- Summary: GitHub storage adapter stub for Peagen
5
- License-Expression: Apache-2.0
6
- License-File: LICENSE
7
- Keywords: swarmauri,sdk,standards,storage,github
8
- Author: Jacob Stewart
9
- Author-email: jacob@swarmauri.com
10
- Requires-Python: >=3.10,<3.13
11
- Classifier: License :: OSI Approved :: Apache Software License
12
- Classifier: Programming Language :: Python :: 3
13
- Classifier: Programming Language :: Python :: 3.10
14
- Classifier: Programming Language :: Python :: 3.11
15
- Classifier: Programming Language :: Python :: 3.12
16
- Classifier: Operating System :: OS Independent
17
- Classifier: Programming Language :: Python
18
- Classifier: Programming Language :: Python :: 3 :: Only
19
- Requires-Dist: swarmauri_base
20
- Requires-Dist: swarmauri_core
21
- Requires-Dist: swarmauri_standard
22
- Description-Content-Type: text/markdown
23
-
24
- ![Swarmauri Logo](https://github.com/swarmauri/swarmauri-sdk/blob/3d4d1cfa949399d7019ae9d8f296afba773dfb7f/assets/swarmauri.brand.theme.svg)
25
-
26
- <p align="center">
27
- <a href="https://pypi.org/project/swarmauri_storage_github/">
28
- <img src="https://img.shields.io/pypi/dm/swarmauri_storage_github" alt="PyPI - Downloads"/></a>
29
- <a href="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/standards/swarmauri_storage_github/">
30
- <img alt="Hits" src="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/standards/swarmauri_storage_github.svg"/></a>
31
- <a href="https://pypi.org/project/swarmauri_storage_github/">
32
- <img src="https://img.shields.io/pypi/pyversions/swarmauri_storage_github" alt="PyPI - Python Version"/></a>
33
- <a href="https://pypi.org/project/swarmauri_storage_github/">
34
- <img src="https://img.shields.io/pypi/l/swarmauri_storage_github" alt="PyPI - License"/></a>
35
- <a href="https://pypi.org/project/swarmauri_storage_github/">
36
- <img src="https://img.shields.io/pypi/v/swarmauri_storage_github?label=swarmauri_storage_github&color=green" alt="PyPI - swarmauri_storage_github"/></a>
37
-
38
- </p>
39
-
40
- ---
41
-
42
- # Swarmauri GitHub Storage Adapter
43
-
44
- `GithubStorageAdapter` is a lightweight placeholder storage adapter for Peagen.
45
- It returns deterministic `github://` URIs for uploaded objects without making
46
- any network calls to GitHub. The class is useful for demos, tests, and for
47
- validating code paths that rely on the storage adapter interface.
48
-
49
- ## Installation
50
-
51
- Choose the tool that matches your workflow:
52
-
53
- ```bash
54
- # pip
55
- pip install swarmauri_storage_github
56
-
57
- # Poetry
58
- poetry add swarmauri_storage_github
59
-
60
- # uv
61
- uv add swarmauri_storage_github
62
- ```
63
-
64
- ## Quickstart
65
-
66
- `GithubStorageAdapter.upload()` accepts a key and a binary file-like object. It
67
- returns the key formatted as a `github://` URI so callers can wire the adapter
68
- into pipelines that expect GitHub-backed storage without performing any remote
69
- I/O.
70
-
71
- ```python
72
- from io import BytesIO
73
-
74
- from swarmauri_storage_github import GithubStorageAdapter
75
-
76
-
77
- adapter = GithubStorageAdapter()
78
-
79
- # The adapter only inspects the key, so any binary stream is acceptable.
80
- payload = BytesIO(b"# Example README\nThis payload would be uploaded to GitHub.")
81
- uri = adapter.upload("my-org/my-repo/README.md", payload)
82
-
83
- print(uri) # github://my-org/my-repo/README.md
84
- ```
85
-
86
- ### Behavior and limitations
87
-
88
- - `upload()` does not persist data—it simply echoes the key back as a
89
- `github://` URI.
90
- - `download()`, `upload_dir()`, and `download_dir()` raise
91
- `NotImplementedError` to signal that full GitHub support is intentionally out
92
- of scope for this stub.
93
-
94
- ## Want to help?
95
-
96
- If you want to contribute to swarmauri-sdk, read up on our
97
- [guidelines for contributing](https://github.com/swarmauri/swarmauri-sdk/blob/master/CONTRIBUTING.md)
98
- that will help you get started.
@@ -1,75 +0,0 @@
1
- ![Swarmauri Logo](https://github.com/swarmauri/swarmauri-sdk/blob/3d4d1cfa949399d7019ae9d8f296afba773dfb7f/assets/swarmauri.brand.theme.svg)
2
-
3
- <p align="center">
4
- <a href="https://pypi.org/project/swarmauri_storage_github/">
5
- <img src="https://img.shields.io/pypi/dm/swarmauri_storage_github" alt="PyPI - Downloads"/></a>
6
- <a href="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/standards/swarmauri_storage_github/">
7
- <img alt="Hits" src="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/standards/swarmauri_storage_github.svg"/></a>
8
- <a href="https://pypi.org/project/swarmauri_storage_github/">
9
- <img src="https://img.shields.io/pypi/pyversions/swarmauri_storage_github" alt="PyPI - Python Version"/></a>
10
- <a href="https://pypi.org/project/swarmauri_storage_github/">
11
- <img src="https://img.shields.io/pypi/l/swarmauri_storage_github" alt="PyPI - License"/></a>
12
- <a href="https://pypi.org/project/swarmauri_storage_github/">
13
- <img src="https://img.shields.io/pypi/v/swarmauri_storage_github?label=swarmauri_storage_github&color=green" alt="PyPI - swarmauri_storage_github"/></a>
14
-
15
- </p>
16
-
17
- ---
18
-
19
- # Swarmauri GitHub Storage Adapter
20
-
21
- `GithubStorageAdapter` is a lightweight placeholder storage adapter for Peagen.
22
- It returns deterministic `github://` URIs for uploaded objects without making
23
- any network calls to GitHub. The class is useful for demos, tests, and for
24
- validating code paths that rely on the storage adapter interface.
25
-
26
- ## Installation
27
-
28
- Choose the tool that matches your workflow:
29
-
30
- ```bash
31
- # pip
32
- pip install swarmauri_storage_github
33
-
34
- # Poetry
35
- poetry add swarmauri_storage_github
36
-
37
- # uv
38
- uv add swarmauri_storage_github
39
- ```
40
-
41
- ## Quickstart
42
-
43
- `GithubStorageAdapter.upload()` accepts a key and a binary file-like object. It
44
- returns the key formatted as a `github://` URI so callers can wire the adapter
45
- into pipelines that expect GitHub-backed storage without performing any remote
46
- I/O.
47
-
48
- ```python
49
- from io import BytesIO
50
-
51
- from swarmauri_storage_github import GithubStorageAdapter
52
-
53
-
54
- adapter = GithubStorageAdapter()
55
-
56
- # The adapter only inspects the key, so any binary stream is acceptable.
57
- payload = BytesIO(b"# Example README\nThis payload would be uploaded to GitHub.")
58
- uri = adapter.upload("my-org/my-repo/README.md", payload)
59
-
60
- print(uri) # github://my-org/my-repo/README.md
61
- ```
62
-
63
- ### Behavior and limitations
64
-
65
- - `upload()` does not persist data—it simply echoes the key back as a
66
- `github://` URI.
67
- - `download()`, `upload_dir()`, and `download_dir()` raise
68
- `NotImplementedError` to signal that full GitHub support is intentionally out
69
- of scope for this stub.
70
-
71
- ## Want to help?
72
-
73
- If you want to contribute to swarmauri-sdk, read up on our
74
- [guidelines for contributing](https://github.com/swarmauri/swarmauri-sdk/blob/master/CONTRIBUTING.md)
75
- that will help you get started.