swarmauri_gitfilter_minio 0.3.0.dev48__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_gitfilter_minio
2
+
3
+ Distribution: swarmauri_gitfilter_minio
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,376 @@
1
+ Metadata-Version: 2.4
2
+ Name: swarmauri_gitfilter_minio
3
+ Version: 0.11.0
4
+ Summary: MinIO git filter for Peagen
5
+ License-Expression: Apache-2.0
6
+ License-File: LICENSE
7
+ License-File: NOTICE
8
+ Keywords: swarmauri,sdk,standards,gitfilter,minio
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: minio
22
+ Requires-Dist: swarmauri_base
23
+ Requires-Dist: swarmauri_core
24
+ Requires-Dist: swarmauri_standard
25
+ Description-Content-Type: text/markdown
26
+
27
+ # swarmauri_gitfilter_minio
28
+
29
+ <!-- readme-standards:begin branding -->
30
+ <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>
31
+ <p align="center"><strong>swarmauri_gitfilter_minio</strong></p>
32
+ <p align="center">MinIO git filter for Peagen</p>
33
+ <p align="center">
34
+ <a href="https://pypi.org/project/swarmauri_gitfilter_minio/"><img alt="pypi: swarmauri_gitfilter_minio" src="https://img.shields.io/pypi/v/swarmauri_gitfilter_minio?labelColor=1E293B&amp;color=1D4ED8"></a>
35
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_gitfilter_minio/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>
36
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_gitfilter_minio/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>
37
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_gitfilter_minio/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>
38
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_gitfilter_minio/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>
39
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_gitfilter_minio/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>
40
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_gitfilter_minio/NOTICE"><img alt="Notice: attribution" src="https://img.shields.io/static/v1?label=Notice&amp;message=attribution&amp;labelColor=1E293B&amp;color=86198F"></a>
41
+ </p>
42
+ <p align="center">
43
+ <a href="https://pypi.org/project/swarmauri_gitfilter_minio/"><img alt="Monthly PyPI downloads: swarmauri_gitfilter_minio" src="https://img.shields.io/pypi/dm/swarmauri_gitfilter_minio?labelColor=1E293B&amp;color=0E7490"></a>
44
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_gitfilter_minio/README.md"><img alt="README hits: swarmauri_gitfilter_minio" src="https://hits.sh/github.com/swarmauri/swarmauri-sdk/pkgs/40-standards/swarmauri_gitfilter_minio/README.md.svg?label=README%20hits&amp;labelColor=1E293B&amp;color=0E7490"></a>
45
+ </p>
46
+ <p align="center">
47
+ <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>
48
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_gitfilter_minio/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>
49
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_gitfilter_minio/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>
50
+ <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>
51
+ <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>
52
+ </p>
53
+ <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>
54
+ <!-- readme-standards:end branding -->
55
+
56
+ ---
57
+
58
+ ## Overview
59
+
60
+ ### Summary
61
+
62
+ `swarmauri_gitfilter_minio` packages the `MinioFilter` plugin used by
63
+ [`peagen`](https://pypi.org/project/peagen/) and other Swarmauri tooling to keep
64
+ large Git objects in MinIO (or any S3-compatible) storage instead of the local
65
+ repository. The filter implements both `StorageAdapterBase` and
66
+ `GitFilterBase`, so you can call it directly from Python code or register it as
67
+ a Git clean/smudge filter.
68
+
69
+ ### Why This Package
70
+
71
+ `swarmauri_gitfilter_minio` isolates this responsibility: MinIO git filter for Peagen. Its [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_gitfilter_minio/swarmauri_gitfilter_minio/__init__.py) exposes `MinioFilter`, allowing consumers to select this package without treating adjacent packages as part of its public contract.
72
+
73
+ ### When to Use
74
+
75
+ Choose `swarmauri_gitfilter_minio` when your integration needs minIO git filter for Peagen. Match the imports below to your application boundary and install its declared dependencies before using the example.
76
+
77
+ ### Features
78
+
79
+ - Accepts `minio://` (HTTP) and `minios://` (HTTPS) URIs and automatically
80
+ ensures the referenced bucket exists.
81
+ - Inherits `GitFilterBase`, giving you `clean` and `smudge` helpers that hash
82
+ content, upload it to remote storage, and hydrate it back into your working
83
+ tree on checkout.
84
+ - Provides convenience methods such as `upload_dir`, `iter_prefix`, and
85
+ `download_prefix` for whole directory trees in addition to single-file
86
+ transfers.
87
+ - Surfaces a `root_uri` property that reflects the bucket and optional prefix
88
+ derived from the connection string.
89
+
90
+ ### Non-Goals
91
+
92
+ `swarmauri_gitfilter_minio` owns minIO git filter 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.
93
+
94
+ ---
95
+
96
+ ## Getting Started
97
+
98
+ ### Prerequisites
99
+
100
+ Python `>=3.10,<3.15` is required. The [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_gitfilter_minio/pyproject.toml) declares runtime dependencies including `swarmauri-core`, `swarmauri-base`, `swarmauri-standard`, `minio`. Read the example’s inputs and service requirements before execution.
101
+
102
+ ### Installation
103
+
104
+ Choose the workflow that matches your project:
105
+
106
+ ```bash
107
+ # pip
108
+ pip install swarmauri_gitfilter_minio
109
+
110
+ # Poetry
111
+ poetry add swarmauri_gitfilter_minio
112
+
113
+ # uv
114
+ uv add swarmauri_gitfilter_minio
115
+ ```
116
+
117
+ #### uv
118
+
119
+ <!-- readme-standards:begin installation.uv -->
120
+ ```bash
121
+ uv add swarmauri_gitfilter_minio
122
+ ```
123
+ <!-- readme-standards:end installation.uv -->
124
+
125
+ #### pip
126
+
127
+ <!-- readme-standards:begin installation.pip -->
128
+ ```bash
129
+ python -m pip install swarmauri_gitfilter_minio
130
+ ```
131
+ <!-- readme-standards:end installation.pip -->
132
+
133
+ #### Poetry
134
+
135
+ <!-- readme-standards:begin installation.poetry -->
136
+ ```bash
137
+ poetry add swarmauri_gitfilter_minio
138
+ ```
139
+ <!-- readme-standards:end installation.poetry -->
140
+
141
+ ### Quick Start
142
+
143
+ #### Example
144
+
145
+ <!-- readme-standards:begin example.quick-start -->
146
+ Source: [docs/readme/quick_start.py](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_gitfilter_minio/docs/readme/quick_start.py).
147
+
148
+ ```python
149
+ from swarmauri_gitfilter_minio import MinioFilter
150
+
151
+ # Create a filter from a connection string. The scheme `minios://` will use
152
+ # HTTPS while `minio://` uses plain HTTP.
153
+ filt = MinioFilter.from_uri("minio://localhost:9000/my-bucket/prefix")
154
+
155
+ # Upload a file and retrieve its URI
156
+ with open("README.md", "rb") as fh:
157
+ uri = filt.upload("docs/README.md", fh)
158
+
159
+ # Download the file back into memory
160
+ buffer = filt.download("docs/README.md")
161
+ data = buffer.read()
162
+ ```
163
+ <!-- readme-standards:end example.quick-start -->
164
+
165
+ #### Expected Result
166
+
167
+ The example demonstrates the documented `swarmauri_gitfilter_minio` 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.
168
+
169
+ ---
170
+
171
+ ## Usage
172
+
173
+ ### Common Workflows
174
+
175
+ <!-- readme-standards:begin example.usage -->
176
+ Source: [docs/readme/usage.py](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_gitfilter_minio/docs/readme/usage.py).
177
+
178
+ ```python
179
+ from swarmauri_gitfilter_minio import MinioFilter
180
+
181
+ # Create a filter from a connection string. The scheme `minios://` will use
182
+ # HTTPS while `minio://` uses plain HTTP.
183
+ filt = MinioFilter.from_uri("minio://localhost:9000/my-bucket/prefix")
184
+
185
+ # Upload a file and retrieve its URI
186
+ with open("README.md", "rb") as fh:
187
+ uri = filt.upload("docs/README.md", fh)
188
+
189
+ # Download the file back into memory
190
+ buffer = filt.download("docs/README.md")
191
+ data = buffer.read()
192
+ ```
193
+ <!-- readme-standards:end example.usage -->
194
+
195
+ `MinioFilter` also exposes helpers such as `upload_dir`, `iter_prefix`, and
196
+ `download_prefix` for working with entire directory trees.
197
+
198
+ ### Configuration
199
+
200
+ `MinioFilter.from_uri()` consults `peagen.toml` for credentials under
201
+ `[storage.filters.minio]` and falls back to the `MINIO_ACCESS_KEY` and
202
+ `MINIO_SECRET_KEY` environment variables when the configuration is absent. When
203
+ instantiated, the filter lazily creates the bucket identified by the URI and
204
+ stores objects beneath an optional prefix.
205
+
206
+ ### Error Handling
207
+
208
+ The inspected `swarmauri_gitfilter_minio` source raises `FileNotFoundError`. Handle these at the calling boundary and consult the implementation for the triggering conditions.
209
+
210
+ ### Best Practices
211
+
212
+ Use the explicit `swarmauri_gitfilter_minio` imports documented below and keep collaborator configuration with the caller. Run the package’s relevant tests after changing `MinioFilter`; an import or successful installation alone does not establish its runtime guarantees.
213
+
214
+ ---
215
+
216
+ ## Package Boundary
217
+
218
+ ### What It Owns
219
+
220
+ `swarmauri_gitfilter_minio` is located in `standards` and owns minIO git filter for Peagen. Source-declared APIs include `MinioFilter`. The [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_gitfilter_minio/pyproject.toml) records its direct dependency boundary.
221
+
222
+ ### Public API and Import Surfaces
223
+
224
+ Import namespace: `swarmauri_gitfilter_minio`.
225
+
226
+ Source-declared exports or types: `MinioFilter`.
227
+
228
+ Inspect [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_gitfilter_minio/swarmauri_gitfilter_minio/__init__.py) for exact signatures; this inventory does not designate every internal module as stable.
229
+
230
+ ### Entry Points
231
+
232
+ <!-- readme-standards:begin entry-points -->
233
+ - `peagen.plugins.git_filters` → `minio` → `swarmauri_gitfilter_minio.minio_filter:MinioFilter`
234
+ - `swarmauri.git_filters` → `MinioFilter` → `swarmauri_gitfilter_minio.minio_filter:MinioFilter`
235
+ <!-- readme-standards:end entry-points -->
236
+
237
+ ### Injected Dependencies
238
+
239
+ The direct installation dependencies of `swarmauri_gitfilter_minio` are `swarmauri-core`, `swarmauri-base`, `swarmauri-standard`, `minio`. 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_gitfilter_minio/swarmauri_gitfilter_minio/__init__.py).
240
+
241
+ ### Protocol Consumers
242
+
243
+ No direct package-manifest dependency on `swarmauri_gitfilter_minio` was found in the audited three-repository inventory. External consumers may still use its documented imports or commands.
244
+
245
+ ### Extensions
246
+
247
+ For `swarmauri_gitfilter_minio`, use the source-declared public interfaces (`MinioFilter`) 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.
248
+
249
+ ---
250
+
251
+ ## Operations and Readiness
252
+
253
+ ### Operational Requirements
254
+
255
+ Operate `swarmauri_gitfilter_minio` 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_gitfilter_minio/pyproject.toml) are prerequisites; deployment topology, credentials, and readiness remain the responsibility of the consuming application unless explicitly documented above.
256
+
257
+ ### Health and Observability
258
+
259
+ This README does not establish a standalone health endpoint for `swarmauri_gitfilter_minio`. 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.
260
+
261
+ ### Security and Resource Limits
262
+
263
+ Apply the input, credential, and resource constraints implemented in [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_gitfilter_minio/swarmauri_gitfilter_minio/__init__.py). The `swarmauri_gitfilter_minio` README gate is a documentation check, not a security review or a substitute for the implementation’s limits and caller authorization.
264
+
265
+ ### Compatibility
266
+
267
+ This source version of `swarmauri_gitfilter_minio` 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.
268
+
269
+ ---
270
+
271
+ ## Verification
272
+
273
+ ### Tests
274
+
275
+ Run `python -m pytest tests/unit/test_readme_sources.py` from the `swarmauri_gitfilter_minio` package directory for the maintained example source checks (Python compilation and non-Python file presence). Existing package tests include:
276
+
277
+ - [tests/example/test_readme_example.py](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_gitfilter_minio/tests/example/test_readme_example.py)
278
+ - [tests/i9n/test_i9n__init__.py](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_gitfilter_minio/tests/i9n/test_i9n__init__.py)
279
+ - [tests/unit/test_minio_filter.py](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_gitfilter_minio/tests/unit/test_minio_filter.py)
280
+
281
+ The repository README gate also checks the required heading tree, metadata, managed fragments, and referenced files.
282
+
283
+ ### Certification Status
284
+
285
+ No external certification is asserted for `swarmauri_gitfilter_minio` by this documentation migration. README conformance, example syntax, runtime tests, and protocol or security certification are distinct evidence scopes.
286
+
287
+ ### Evidence
288
+
289
+ 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_gitfilter_minio/swarmauri_gitfilter_minio/__init__.py) and example sources support the package-boundary description; external runtime behavior requires its own test evidence.
290
+
291
+ ---
292
+
293
+ ## FAQ
294
+
295
+ ### Why
296
+
297
+ **Why select this package?** `swarmauri_gitfilter_minio` provides minIO git filter for Peagen; use its own API boundary rather than assuming neighboring packages are bundled or configured automatically.
298
+
299
+ ### How
300
+
301
+ **How do I start?** Install or synchronize the environment under Getting Started, follow the maintained example for `swarmauri_gitfilter_minio`, and consult [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_gitfilter_minio/swarmauri_gitfilter_minio/__init__.py) for the exact types and signatures involved.
302
+
303
+ ### When
304
+
305
+ **When should I validate an upgrade?** Recheck `swarmauri_gitfilter_minio` whenever its source version, declared collaborators, configuration, or caller changes. Run relevant behavioral tests in addition to the README gate before promotion.
306
+
307
+ ---
308
+
309
+ ## Documentation and Related Packages
310
+
311
+ ### More Documentation
312
+
313
+ 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_gitfilter_minio/swarmauri_gitfilter_minio/__init__.py), and [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_gitfilter_minio/pyproject.toml) provide the supporting context for `swarmauri_gitfilter_minio`. The [README policy](https://github.com/groupsum/readme-standards/blob/master/docs/outline.md) defines the common document structure.
314
+
315
+ ### Related Packages
316
+
317
+ - [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.
318
+ - [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.
319
+ - [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.
320
+
321
+ ### Project Links
322
+
323
+ <!-- readme-standards:begin project-links -->
324
+ - [pypi: swarmauri_gitfilter_minio](https://pypi.org/project/swarmauri_gitfilter_minio/)
325
+ <!-- readme-standards:end project-links -->
326
+
327
+ ---
328
+
329
+ ## Contributing
330
+
331
+ ### How to Contribute
332
+
333
+ If you want to contribute to swarmauri-sdk, read up on our
334
+ [guidelines for contributing](https://github.com/swarmauri/swarmauri-sdk/blob/master/CONTRIBUTING.md)
335
+ that will help you get started.
336
+
337
+ ### Development Setup
338
+
339
+ Work from the `pkgs/40-standards/swarmauri_gitfilter_minio` 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.
340
+
341
+ ### Notes for Maintainers
342
+
343
+ Edit authored prose directly in this `swarmauri_gitfilter_minio` 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.
344
+
345
+ ---
346
+
347
+ ## Governance
348
+
349
+ ### Ownership and Decision Making
350
+
351
+ Changes to `swarmauri_gitfilter_minio` 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_gitfilter_minio/pyproject.toml); this README does not assign new publishing or administrative authority.
352
+
353
+ ### Standards and Policies
354
+
355
+ `swarmauri_gitfilter_minio` 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.
356
+
357
+ ### Lifecycle and Migration
358
+
359
+ The `swarmauri_gitfilter_minio` source version is `0.11.0`.
360
+
361
+ ---
362
+
363
+ ## License and Attribution
364
+
365
+ ### License
366
+
367
+ <!-- readme-standards:begin license -->
368
+ Licensed under `Apache-2.0`. See [LICENSE](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_gitfilter_minio/LICENSE).
369
+ <!-- readme-standards:end license -->
370
+
371
+ ### Notices
372
+
373
+ <!-- readme-standards:begin notices -->
374
+ See [NOTICE](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_gitfilter_minio/NOTICE) for attribution.
375
+ <!-- readme-standards:end notices -->
376
+
@@ -0,0 +1,349 @@
1
+ # swarmauri_gitfilter_minio
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_gitfilter_minio</strong></p>
6
+ <p align="center">MinIO git filter for Peagen</p>
7
+ <p align="center">
8
+ <a href="https://pypi.org/project/swarmauri_gitfilter_minio/"><img alt="pypi: swarmauri_gitfilter_minio" src="https://img.shields.io/pypi/v/swarmauri_gitfilter_minio?labelColor=1E293B&amp;color=1D4ED8"></a>
9
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_gitfilter_minio/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_gitfilter_minio/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_gitfilter_minio/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_gitfilter_minio/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_gitfilter_minio/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_gitfilter_minio/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_gitfilter_minio/"><img alt="Monthly PyPI downloads: swarmauri_gitfilter_minio" src="https://img.shields.io/pypi/dm/swarmauri_gitfilter_minio?labelColor=1E293B&amp;color=0E7490"></a>
18
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_gitfilter_minio/README.md"><img alt="README hits: swarmauri_gitfilter_minio" src="https://hits.sh/github.com/swarmauri/swarmauri-sdk/pkgs/40-standards/swarmauri_gitfilter_minio/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_gitfilter_minio/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_gitfilter_minio/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
+ `swarmauri_gitfilter_minio` packages the `MinioFilter` plugin used by
37
+ [`peagen`](https://pypi.org/project/peagen/) and other Swarmauri tooling to keep
38
+ large Git objects in MinIO (or any S3-compatible) storage instead of the local
39
+ repository. The filter implements both `StorageAdapterBase` and
40
+ `GitFilterBase`, so you can call it directly from Python code or register it as
41
+ a Git clean/smudge filter.
42
+
43
+ ### Why This Package
44
+
45
+ `swarmauri_gitfilter_minio` isolates this responsibility: MinIO git filter for Peagen. Its [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_gitfilter_minio/swarmauri_gitfilter_minio/__init__.py) exposes `MinioFilter`, allowing consumers to select this package without treating adjacent packages as part of its public contract.
46
+
47
+ ### When to Use
48
+
49
+ Choose `swarmauri_gitfilter_minio` when your integration needs minIO git filter for Peagen. Match the imports below to your application boundary and install its declared dependencies before using the example.
50
+
51
+ ### Features
52
+
53
+ - Accepts `minio://` (HTTP) and `minios://` (HTTPS) URIs and automatically
54
+ ensures the referenced bucket exists.
55
+ - Inherits `GitFilterBase`, giving you `clean` and `smudge` helpers that hash
56
+ content, upload it to remote storage, and hydrate it back into your working
57
+ tree on checkout.
58
+ - Provides convenience methods such as `upload_dir`, `iter_prefix`, and
59
+ `download_prefix` for whole directory trees in addition to single-file
60
+ transfers.
61
+ - Surfaces a `root_uri` property that reflects the bucket and optional prefix
62
+ derived from the connection string.
63
+
64
+ ### Non-Goals
65
+
66
+ `swarmauri_gitfilter_minio` owns minIO git filter 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.
67
+
68
+ ---
69
+
70
+ ## Getting Started
71
+
72
+ ### Prerequisites
73
+
74
+ Python `>=3.10,<3.15` is required. The [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_gitfilter_minio/pyproject.toml) declares runtime dependencies including `swarmauri-core`, `swarmauri-base`, `swarmauri-standard`, `minio`. Read the example’s inputs and service requirements before execution.
75
+
76
+ ### Installation
77
+
78
+ Choose the workflow that matches your project:
79
+
80
+ ```bash
81
+ # pip
82
+ pip install swarmauri_gitfilter_minio
83
+
84
+ # Poetry
85
+ poetry add swarmauri_gitfilter_minio
86
+
87
+ # uv
88
+ uv add swarmauri_gitfilter_minio
89
+ ```
90
+
91
+ #### uv
92
+
93
+ <!-- readme-standards:begin installation.uv -->
94
+ ```bash
95
+ uv add swarmauri_gitfilter_minio
96
+ ```
97
+ <!-- readme-standards:end installation.uv -->
98
+
99
+ #### pip
100
+
101
+ <!-- readme-standards:begin installation.pip -->
102
+ ```bash
103
+ python -m pip install swarmauri_gitfilter_minio
104
+ ```
105
+ <!-- readme-standards:end installation.pip -->
106
+
107
+ #### Poetry
108
+
109
+ <!-- readme-standards:begin installation.poetry -->
110
+ ```bash
111
+ poetry add swarmauri_gitfilter_minio
112
+ ```
113
+ <!-- readme-standards:end installation.poetry -->
114
+
115
+ ### Quick Start
116
+
117
+ #### Example
118
+
119
+ <!-- readme-standards:begin example.quick-start -->
120
+ Source: [docs/readme/quick_start.py](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_gitfilter_minio/docs/readme/quick_start.py).
121
+
122
+ ```python
123
+ from swarmauri_gitfilter_minio import MinioFilter
124
+
125
+ # Create a filter from a connection string. The scheme `minios://` will use
126
+ # HTTPS while `minio://` uses plain HTTP.
127
+ filt = MinioFilter.from_uri("minio://localhost:9000/my-bucket/prefix")
128
+
129
+ # Upload a file and retrieve its URI
130
+ with open("README.md", "rb") as fh:
131
+ uri = filt.upload("docs/README.md", fh)
132
+
133
+ # Download the file back into memory
134
+ buffer = filt.download("docs/README.md")
135
+ data = buffer.read()
136
+ ```
137
+ <!-- readme-standards:end example.quick-start -->
138
+
139
+ #### Expected Result
140
+
141
+ The example demonstrates the documented `swarmauri_gitfilter_minio` 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.
142
+
143
+ ---
144
+
145
+ ## Usage
146
+
147
+ ### Common Workflows
148
+
149
+ <!-- readme-standards:begin example.usage -->
150
+ Source: [docs/readme/usage.py](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_gitfilter_minio/docs/readme/usage.py).
151
+
152
+ ```python
153
+ from swarmauri_gitfilter_minio import MinioFilter
154
+
155
+ # Create a filter from a connection string. The scheme `minios://` will use
156
+ # HTTPS while `minio://` uses plain HTTP.
157
+ filt = MinioFilter.from_uri("minio://localhost:9000/my-bucket/prefix")
158
+
159
+ # Upload a file and retrieve its URI
160
+ with open("README.md", "rb") as fh:
161
+ uri = filt.upload("docs/README.md", fh)
162
+
163
+ # Download the file back into memory
164
+ buffer = filt.download("docs/README.md")
165
+ data = buffer.read()
166
+ ```
167
+ <!-- readme-standards:end example.usage -->
168
+
169
+ `MinioFilter` also exposes helpers such as `upload_dir`, `iter_prefix`, and
170
+ `download_prefix` for working with entire directory trees.
171
+
172
+ ### Configuration
173
+
174
+ `MinioFilter.from_uri()` consults `peagen.toml` for credentials under
175
+ `[storage.filters.minio]` and falls back to the `MINIO_ACCESS_KEY` and
176
+ `MINIO_SECRET_KEY` environment variables when the configuration is absent. When
177
+ instantiated, the filter lazily creates the bucket identified by the URI and
178
+ stores objects beneath an optional prefix.
179
+
180
+ ### Error Handling
181
+
182
+ The inspected `swarmauri_gitfilter_minio` source raises `FileNotFoundError`. Handle these at the calling boundary and consult the implementation for the triggering conditions.
183
+
184
+ ### Best Practices
185
+
186
+ Use the explicit `swarmauri_gitfilter_minio` imports documented below and keep collaborator configuration with the caller. Run the package’s relevant tests after changing `MinioFilter`; an import or successful installation alone does not establish its runtime guarantees.
187
+
188
+ ---
189
+
190
+ ## Package Boundary
191
+
192
+ ### What It Owns
193
+
194
+ `swarmauri_gitfilter_minio` is located in `standards` and owns minIO git filter for Peagen. Source-declared APIs include `MinioFilter`. The [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_gitfilter_minio/pyproject.toml) records its direct dependency boundary.
195
+
196
+ ### Public API and Import Surfaces
197
+
198
+ Import namespace: `swarmauri_gitfilter_minio`.
199
+
200
+ Source-declared exports or types: `MinioFilter`.
201
+
202
+ Inspect [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_gitfilter_minio/swarmauri_gitfilter_minio/__init__.py) for exact signatures; this inventory does not designate every internal module as stable.
203
+
204
+ ### Entry Points
205
+
206
+ <!-- readme-standards:begin entry-points -->
207
+ - `peagen.plugins.git_filters` → `minio` → `swarmauri_gitfilter_minio.minio_filter:MinioFilter`
208
+ - `swarmauri.git_filters` → `MinioFilter` → `swarmauri_gitfilter_minio.minio_filter:MinioFilter`
209
+ <!-- readme-standards:end entry-points -->
210
+
211
+ ### Injected Dependencies
212
+
213
+ The direct installation dependencies of `swarmauri_gitfilter_minio` are `swarmauri-core`, `swarmauri-base`, `swarmauri-standard`, `minio`. 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_gitfilter_minio/swarmauri_gitfilter_minio/__init__.py).
214
+
215
+ ### Protocol Consumers
216
+
217
+ No direct package-manifest dependency on `swarmauri_gitfilter_minio` was found in the audited three-repository inventory. External consumers may still use its documented imports or commands.
218
+
219
+ ### Extensions
220
+
221
+ For `swarmauri_gitfilter_minio`, use the source-declared public interfaces (`MinioFilter`) 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.
222
+
223
+ ---
224
+
225
+ ## Operations and Readiness
226
+
227
+ ### Operational Requirements
228
+
229
+ Operate `swarmauri_gitfilter_minio` 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_gitfilter_minio/pyproject.toml) are prerequisites; deployment topology, credentials, and readiness remain the responsibility of the consuming application unless explicitly documented above.
230
+
231
+ ### Health and Observability
232
+
233
+ This README does not establish a standalone health endpoint for `swarmauri_gitfilter_minio`. 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.
234
+
235
+ ### Security and Resource Limits
236
+
237
+ Apply the input, credential, and resource constraints implemented in [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_gitfilter_minio/swarmauri_gitfilter_minio/__init__.py). The `swarmauri_gitfilter_minio` README gate is a documentation check, not a security review or a substitute for the implementation’s limits and caller authorization.
238
+
239
+ ### Compatibility
240
+
241
+ This source version of `swarmauri_gitfilter_minio` 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.
242
+
243
+ ---
244
+
245
+ ## Verification
246
+
247
+ ### Tests
248
+
249
+ Run `python -m pytest tests/unit/test_readme_sources.py` from the `swarmauri_gitfilter_minio` package directory for the maintained example source checks (Python compilation and non-Python file presence). Existing package tests include:
250
+
251
+ - [tests/example/test_readme_example.py](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_gitfilter_minio/tests/example/test_readme_example.py)
252
+ - [tests/i9n/test_i9n__init__.py](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_gitfilter_minio/tests/i9n/test_i9n__init__.py)
253
+ - [tests/unit/test_minio_filter.py](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_gitfilter_minio/tests/unit/test_minio_filter.py)
254
+
255
+ The repository README gate also checks the required heading tree, metadata, managed fragments, and referenced files.
256
+
257
+ ### Certification Status
258
+
259
+ No external certification is asserted for `swarmauri_gitfilter_minio` by this documentation migration. README conformance, example syntax, runtime tests, and protocol or security certification are distinct evidence scopes.
260
+
261
+ ### Evidence
262
+
263
+ 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_gitfilter_minio/swarmauri_gitfilter_minio/__init__.py) and example sources support the package-boundary description; external runtime behavior requires its own test evidence.
264
+
265
+ ---
266
+
267
+ ## FAQ
268
+
269
+ ### Why
270
+
271
+ **Why select this package?** `swarmauri_gitfilter_minio` provides minIO git filter for Peagen; use its own API boundary rather than assuming neighboring packages are bundled or configured automatically.
272
+
273
+ ### How
274
+
275
+ **How do I start?** Install or synchronize the environment under Getting Started, follow the maintained example for `swarmauri_gitfilter_minio`, and consult [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_gitfilter_minio/swarmauri_gitfilter_minio/__init__.py) for the exact types and signatures involved.
276
+
277
+ ### When
278
+
279
+ **When should I validate an upgrade?** Recheck `swarmauri_gitfilter_minio` whenever its source version, declared collaborators, configuration, or caller changes. Run relevant behavioral tests in addition to the README gate before promotion.
280
+
281
+ ---
282
+
283
+ ## Documentation and Related Packages
284
+
285
+ ### More Documentation
286
+
287
+ 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_gitfilter_minio/swarmauri_gitfilter_minio/__init__.py), and [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_gitfilter_minio/pyproject.toml) provide the supporting context for `swarmauri_gitfilter_minio`. The [README policy](https://github.com/groupsum/readme-standards/blob/master/docs/outline.md) defines the common document structure.
288
+
289
+ ### Related Packages
290
+
291
+ - [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.
292
+ - [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.
293
+ - [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.
294
+
295
+ ### Project Links
296
+
297
+ <!-- readme-standards:begin project-links -->
298
+ - [pypi: swarmauri_gitfilter_minio](https://pypi.org/project/swarmauri_gitfilter_minio/)
299
+ <!-- readme-standards:end project-links -->
300
+
301
+ ---
302
+
303
+ ## Contributing
304
+
305
+ ### How to Contribute
306
+
307
+ If you want to contribute to swarmauri-sdk, read up on our
308
+ [guidelines for contributing](https://github.com/swarmauri/swarmauri-sdk/blob/master/CONTRIBUTING.md)
309
+ that will help you get started.
310
+
311
+ ### Development Setup
312
+
313
+ Work from the `pkgs/40-standards/swarmauri_gitfilter_minio` 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.
314
+
315
+ ### Notes for Maintainers
316
+
317
+ Edit authored prose directly in this `swarmauri_gitfilter_minio` 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.
318
+
319
+ ---
320
+
321
+ ## Governance
322
+
323
+ ### Ownership and Decision Making
324
+
325
+ Changes to `swarmauri_gitfilter_minio` 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_gitfilter_minio/pyproject.toml); this README does not assign new publishing or administrative authority.
326
+
327
+ ### Standards and Policies
328
+
329
+ `swarmauri_gitfilter_minio` 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.
330
+
331
+ ### Lifecycle and Migration
332
+
333
+ The `swarmauri_gitfilter_minio` source version is `0.11.0`.
334
+
335
+ ---
336
+
337
+ ## License and Attribution
338
+
339
+ ### License
340
+
341
+ <!-- readme-standards:begin license -->
342
+ Licensed under `Apache-2.0`. See [LICENSE](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_gitfilter_minio/LICENSE).
343
+ <!-- readme-standards:end license -->
344
+
345
+ ### Notices
346
+
347
+ <!-- readme-standards:begin notices -->
348
+ See [NOTICE](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_gitfilter_minio/NOTICE) for attribution.
349
+ <!-- readme-standards:end notices -->
@@ -1,26 +1,24 @@
1
1
  [project]
2
2
  name = "swarmauri_gitfilter_minio"
3
- version = "0.3.0.dev48"
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 = "MinIO git filter 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
- "peagen",
24
22
  "swarmauri_core",
25
23
  "swarmauri_base",
26
24
  "swarmauri_standard",
@@ -33,13 +31,61 @@ keywords = [
33
31
  'gitfilter',
34
32
  'minio',
35
33
  ]
34
+ license-files = ["LICENSE", "NOTICE"]
36
35
 
37
36
  [tool.uv.sources]
38
- peagen = { workspace = true }
39
37
  swarmauri_core = { workspace = true }
40
38
  swarmauri_base = { workspace = true }
41
39
  swarmauri_standard = { workspace = true }
42
40
 
41
+ [tool.readme_standards]
42
+ policy = "package-guide-v1"
43
+ readme = "README.md"
44
+ brand = "swarmauri"
45
+ brand_catalog = "../../../tools/readme/brands.toml"
46
+ repository = "https://github.com/swarmauri/swarmauri-sdk"
47
+ ref = "master"
48
+ package_path = "pkgs/40-standards/swarmauri_gitfilter_minio"
49
+ layer = "standards"
50
+ lifecycle = "active"
51
+ license_file = "LICENSE"
52
+ notice_file = "NOTICE"
53
+
54
+ [tool.readme_standards.distributions.pypi]
55
+ name = "swarmauri_gitfilter_minio"
56
+ published = true
57
+
58
+ [tool.readme_standards.examples.quick_start]
59
+ source = "docs/readme/quick_start.py"
60
+ test = "tests/unit/test_readme_sources.py"
61
+ language = "python"
62
+ expected_exit_code = 0
63
+
64
+ [tool.readme_standards.examples.usage]
65
+ source = "docs/readme/usage.py"
66
+ test = "tests/unit/test_readme_sources.py"
67
+ language = "python"
68
+ expected_exit_code = 0
69
+
70
+ [tool.readme_standards.statuses.readme]
71
+ label = "CI gate"
72
+ url = "https://github.com/swarmauri/swarmauri-sdk/actions/workflows/readme-standards.yml"
73
+
74
+ [tool.readme_standards.statuses.tests]
75
+ label = "example source"
76
+ url = "https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_gitfilter_minio/tests/unit/test_readme_sources.py"
77
+
78
+ [tool.readme_standards.statuses.certification]
79
+ label = "not certified"
80
+ url = "https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/40-standards/swarmauri_gitfilter_minio/README.md#certification-status"
81
+
82
+ [tool.readme_standards.statuses.governance]
83
+ label = "repository policy"
84
+ url = "https://github.com/swarmauri/swarmauri-sdk/blob/master/tools/readme/POLICY.md"
85
+
86
+ [tool.readme_standards.statuses.evidence]
87
+ label = "source and CI"
88
+ url = "https://github.com/swarmauri/swarmauri-sdk/actions/workflows/readme-standards.yml"
43
89
  [project.entry-points.'swarmauri.git_filters']
44
90
  MinioFilter = "swarmauri_gitfilter_minio.minio_filter:MinioFilter"
45
91
 
@@ -78,9 +124,10 @@ dev = [
78
124
  "pytest-xdist>=3.6.1",
79
125
  "pytest-json-report>=1.5.0",
80
126
  "python-dotenv",
81
- "requests>=2.32.3",
127
+ "httpx>=0.27",
82
128
  "flake8>=7.0",
83
129
  "pytest-timeout>=2.3.1",
84
130
  "ruff>=0.9.9",
85
131
  "pytest-benchmark>=4.0.0",
132
+ "readme-standards==0.1.3; python_version >= \"3.11\"",
86
133
  ]
@@ -1,4 +1,5 @@
1
- """Expose the :class:`~swarmauri_gitfilter_minio.minio_filter.MinioFilter` plugin."""
1
+ """Expose the :class:`~swarmauri_gitfilter_minio.minio_filter.MinioFilter`
2
+ plugin."""
2
3
 
3
4
  from .minio_filter import MinioFilter
4
5
 
@@ -1,4 +1,6 @@
1
- """Storage adapter and Git filter backed by a MinIO or S3-compatible service."""
1
+ """
2
+ Storage adapter and Git filter backed by a MinIO or S3-compatible service.
3
+ """
2
4
 
3
5
  from __future__ import annotations
4
6
 
@@ -12,7 +14,9 @@ from minio import Minio
12
14
  from minio.error import S3Error
13
15
  from pydantic import SecretStr
14
16
 
15
- from peagen._utils.config_loader import load_peagen_toml
17
+ from swarmauri_base.git_filters.config import (
18
+ load_filter_config as load_peagen_toml,
19
+ )
16
20
  from swarmauri_base.ComponentBase import ComponentBase
17
21
  from swarmauri_base.storage import StorageAdapterBase
18
22
  from swarmauri_base.git_filters import GitFilterBase
@@ -59,16 +63,13 @@ class MinioFilter(StorageAdapterBase, GitFilterBase):
59
63
  self._endpoint = endpoint
60
64
  self._secure = secure
61
65
  self._bucket = bucket
62
- self._prefix = prefix.lstrip("/")
66
+ self._prefix = self.normalize_prefix(prefix)
63
67
 
64
68
  if not self._client.bucket_exists(bucket):
65
69
  self._client.make_bucket(bucket)
66
70
 
67
71
  def _full_key(self, key: str) -> str:
68
- key = key.lstrip("/")
69
- if self._prefix:
70
- return f"{self._prefix.rstrip('/')}/{key}"
71
- return key
72
+ return self.compose_key(self._prefix, key, allow_empty=True)
72
73
 
73
74
  @property
74
75
  def root_uri(self) -> str:
@@ -98,6 +99,7 @@ class MinioFilter(StorageAdapterBase, GitFilterBase):
98
99
  data = io.BytesIO(data.read()) # type: ignore[arg-type]
99
100
  size = len(data.getbuffer()) # type: ignore[attr-defined]
100
101
  data.seek(0)
102
+ normalized_key = self.normalize_key(key)
101
103
  self._client.put_object(
102
104
  self._bucket,
103
105
  self._full_key(key),
@@ -106,7 +108,7 @@ class MinioFilter(StorageAdapterBase, GitFilterBase):
106
108
  part_size=10 * 1024 * 1024,
107
109
  )
108
110
 
109
- return f"{self.root_uri}{key.lstrip('/')}"
111
+ return f"{self.root_uri}{normalized_key}"
110
112
 
111
113
  def download(self, key: str) -> BinaryIO:
112
114
  """Retrieve an object from the bucket.
@@ -138,7 +140,7 @@ class MinioFilter(StorageAdapterBase, GitFilterBase):
138
140
  for path in base.rglob("*"):
139
141
  if path.is_file():
140
142
  rel = path.relative_to(base).as_posix()
141
- key = f"{prefix.rstrip('/')}/{rel}" if prefix else rel
143
+ key = self.compose_key(prefix, rel)
142
144
  with path.open("rb") as fh:
143
145
  self.upload(key, fh)
144
146
 
@@ -157,7 +159,9 @@ class MinioFilter(StorageAdapterBase, GitFilterBase):
157
159
  key = key[len(self._prefix.rstrip("/")) + 1 :]
158
160
  yield key
159
161
 
160
- def download_prefix(self, prefix: str, dest_dir: str | os.PathLike) -> None:
162
+ def download_prefix(
163
+ self, prefix: str, dest_dir: str | os.PathLike
164
+ ) -> None:
161
165
  """Download all objects beneath a prefix into a directory.
162
166
 
163
167
  prefix (str): Key prefix to copy from the bucket.
@@ -167,7 +171,7 @@ class MinioFilter(StorageAdapterBase, GitFilterBase):
167
171
  """
168
172
  dest = Path(dest_dir)
169
173
  for rel_key in self.iter_prefix(prefix):
170
- target = dest / rel_key
174
+ target = self.download_target_for_key(dest, rel_key)
171
175
  target.parent.mkdir(parents=True, exist_ok=True)
172
176
  data = self.download(rel_key)
173
177
  with target.open("wb") as fh:
@@ -192,8 +196,12 @@ class MinioFilter(StorageAdapterBase, GitFilterBase):
192
196
  cfg = load_peagen_toml()
193
197
  minio_cfg = cfg.get("storage", {}).get("filters", {}).get("minio", {})
194
198
 
195
- access_key = minio_cfg.get("access_key") or os.getenv("MINIO_ACCESS_KEY", "")
196
- secret_key = minio_cfg.get("secret_key") or os.getenv("MINIO_SECRET_KEY", "")
199
+ access_key = minio_cfg.get("access_key") or os.getenv(
200
+ "MINIO_ACCESS_KEY", ""
201
+ )
202
+ secret_key = minio_cfg.get("secret_key") or os.getenv(
203
+ "MINIO_SECRET_KEY", ""
204
+ )
197
205
 
198
206
  return cls(
199
207
  endpoint=endpoint,
@@ -1,119 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: swarmauri_gitfilter_minio
3
- Version: 0.3.0.dev48
4
- Summary: MinIO git filter for Peagen
5
- License-Expression: Apache-2.0
6
- License-File: LICENSE
7
- Keywords: swarmauri,sdk,standards,gitfilter,minio
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: minio
20
- Requires-Dist: peagen
21
- Requires-Dist: swarmauri_base
22
- Requires-Dist: swarmauri_core
23
- Requires-Dist: swarmauri_standard
24
- Description-Content-Type: text/markdown
25
-
26
- ![Swarmauri Logo](https://github.com/swarmauri/swarmauri-sdk/blob/3d4d1cfa949399d7019ae9d8f296afba773dfb7f/assets/swarmauri.brand.theme.svg)
27
-
28
- <p align="center">
29
- <a href="https://pypi.org/project/swarmauri_gitfilter_minio/">
30
- <img src="https://img.shields.io/pypi/dm/swarmauri_gitfilter_minio" alt="PyPI - Downloads"/>
31
- </a>
32
- <a href="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/standards/swarmauri_gitfilter_minio/">
33
- <img alt="Hits" src="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/standards/swarmauri_gitfilter_minio.svg"/>
34
- </a>
35
- <a href="https://pypi.org/project/swarmauri_gitfilter_minio/">
36
- <img src="https://img.shields.io/pypi/pyversions/swarmauri_gitfilter_minio" alt="PyPI - Python Version"/>
37
- </a>
38
- <a href="https://pypi.org/project/swarmauri_gitfilter_minio/">
39
- <img src="https://img.shields.io/pypi/l/swarmauri_gitfilter_minio" alt="PyPI - License"/>
40
- </a>
41
- <a href="https://pypi.org/project/swarmauri_gitfilter_minio/">
42
- <img src="https://img.shields.io/pypi/v/swarmauri_gitfilter_minio?label=swarmauri_gitfilter_minio&color=green" alt="PyPI - swarmauri_gitfilter_minio"/>
43
- </a>
44
- </p>
45
-
46
- ---
47
-
48
- # Swarmauri Git Filter Minio
49
-
50
- `swarmauri_gitfilter_minio` packages the `MinioFilter` plugin used by
51
- [`peagen`](https://pypi.org/project/peagen/) and other Swarmauri tooling to keep
52
- large Git objects in MinIO (or any S3-compatible) storage instead of the local
53
- repository. The filter implements both `StorageAdapterBase` and
54
- `GitFilterBase`, so you can call it directly from Python code or register it as
55
- a Git clean/smudge filter.
56
-
57
- ### Highlights
58
-
59
- - Accepts `minio://` (HTTP) and `minios://` (HTTPS) URIs and automatically
60
- ensures the referenced bucket exists.
61
- - Inherits `GitFilterBase`, giving you `clean` and `smudge` helpers that hash
62
- content, upload it to remote storage, and hydrate it back into your working
63
- tree on checkout.
64
- - Provides convenience methods such as `upload_dir`, `iter_prefix`, and
65
- `download_prefix` for whole directory trees in addition to single-file
66
- transfers.
67
- - Surfaces a `root_uri` property that reflects the bucket and optional prefix
68
- derived from the connection string.
69
-
70
- ## Installation
71
-
72
- Choose the workflow that matches your project:
73
-
74
- ```bash
75
- # pip
76
- pip install swarmauri_gitfilter_minio
77
-
78
- # Poetry
79
- poetry add swarmauri_gitfilter_minio
80
-
81
- # uv
82
- uv add swarmauri_gitfilter_minio
83
- ```
84
-
85
- ## Configuration
86
-
87
- `MinioFilter.from_uri()` consults `peagen.toml` for credentials under
88
- `[storage.filters.minio]` and falls back to the `MINIO_ACCESS_KEY` and
89
- `MINIO_SECRET_KEY` environment variables when the configuration is absent. When
90
- instantiated, the filter lazily creates the bucket identified by the URI and
91
- stores objects beneath an optional prefix.
92
-
93
- ## Usage
94
-
95
- ```python
96
- from swarmauri_gitfilter_minio import MinioFilter
97
-
98
- # Create a filter from a connection string. The scheme `minios://` will use
99
- # HTTPS while `minio://` uses plain HTTP.
100
- filt = MinioFilter.from_uri("minio://localhost:9000/my-bucket/prefix")
101
-
102
- # Upload a file and retrieve its URI
103
- with open("README.md", "rb") as fh:
104
- uri = filt.upload("docs/README.md", fh)
105
-
106
- # Download the file back into memory
107
- buffer = filt.download("docs/README.md")
108
- data = buffer.read()
109
- ```
110
-
111
- `MinioFilter` also exposes helpers such as `upload_dir`, `iter_prefix`, and
112
- `download_prefix` for working with entire directory trees.
113
-
114
- ## Want to help?
115
-
116
- If you want to contribute to swarmauri-sdk, read up on our
117
- [guidelines for contributing](https://github.com/swarmauri/swarmauri-sdk/blob/master/CONTRIBUTING.md)
118
- that will help you get started.
119
-
@@ -1,93 +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_gitfilter_minio/">
5
- <img src="https://img.shields.io/pypi/dm/swarmauri_gitfilter_minio" alt="PyPI - Downloads"/>
6
- </a>
7
- <a href="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/standards/swarmauri_gitfilter_minio/">
8
- <img alt="Hits" src="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/standards/swarmauri_gitfilter_minio.svg"/>
9
- </a>
10
- <a href="https://pypi.org/project/swarmauri_gitfilter_minio/">
11
- <img src="https://img.shields.io/pypi/pyversions/swarmauri_gitfilter_minio" alt="PyPI - Python Version"/>
12
- </a>
13
- <a href="https://pypi.org/project/swarmauri_gitfilter_minio/">
14
- <img src="https://img.shields.io/pypi/l/swarmauri_gitfilter_minio" alt="PyPI - License"/>
15
- </a>
16
- <a href="https://pypi.org/project/swarmauri_gitfilter_minio/">
17
- <img src="https://img.shields.io/pypi/v/swarmauri_gitfilter_minio?label=swarmauri_gitfilter_minio&color=green" alt="PyPI - swarmauri_gitfilter_minio"/>
18
- </a>
19
- </p>
20
-
21
- ---
22
-
23
- # Swarmauri Git Filter Minio
24
-
25
- `swarmauri_gitfilter_minio` packages the `MinioFilter` plugin used by
26
- [`peagen`](https://pypi.org/project/peagen/) and other Swarmauri tooling to keep
27
- large Git objects in MinIO (or any S3-compatible) storage instead of the local
28
- repository. The filter implements both `StorageAdapterBase` and
29
- `GitFilterBase`, so you can call it directly from Python code or register it as
30
- a Git clean/smudge filter.
31
-
32
- ### Highlights
33
-
34
- - Accepts `minio://` (HTTP) and `minios://` (HTTPS) URIs and automatically
35
- ensures the referenced bucket exists.
36
- - Inherits `GitFilterBase`, giving you `clean` and `smudge` helpers that hash
37
- content, upload it to remote storage, and hydrate it back into your working
38
- tree on checkout.
39
- - Provides convenience methods such as `upload_dir`, `iter_prefix`, and
40
- `download_prefix` for whole directory trees in addition to single-file
41
- transfers.
42
- - Surfaces a `root_uri` property that reflects the bucket and optional prefix
43
- derived from the connection string.
44
-
45
- ## Installation
46
-
47
- Choose the workflow that matches your project:
48
-
49
- ```bash
50
- # pip
51
- pip install swarmauri_gitfilter_minio
52
-
53
- # Poetry
54
- poetry add swarmauri_gitfilter_minio
55
-
56
- # uv
57
- uv add swarmauri_gitfilter_minio
58
- ```
59
-
60
- ## Configuration
61
-
62
- `MinioFilter.from_uri()` consults `peagen.toml` for credentials under
63
- `[storage.filters.minio]` and falls back to the `MINIO_ACCESS_KEY` and
64
- `MINIO_SECRET_KEY` environment variables when the configuration is absent. When
65
- instantiated, the filter lazily creates the bucket identified by the URI and
66
- stores objects beneath an optional prefix.
67
-
68
- ## Usage
69
-
70
- ```python
71
- from swarmauri_gitfilter_minio import MinioFilter
72
-
73
- # Create a filter from a connection string. The scheme `minios://` will use
74
- # HTTPS while `minio://` uses plain HTTP.
75
- filt = MinioFilter.from_uri("minio://localhost:9000/my-bucket/prefix")
76
-
77
- # Upload a file and retrieve its URI
78
- with open("README.md", "rb") as fh:
79
- uri = filt.upload("docs/README.md", fh)
80
-
81
- # Download the file back into memory
82
- buffer = filt.download("docs/README.md")
83
- data = buffer.read()
84
- ```
85
-
86
- `MinioFilter` also exposes helpers such as `upload_dir`, `iter_prefix`, and
87
- `download_prefix` for working with entire directory trees.
88
-
89
- ## Want to help?
90
-
91
- If you want to contribute to swarmauri-sdk, read up on our
92
- [guidelines for contributing](https://github.com/swarmauri/swarmauri-sdk/blob/master/CONTRIBUTING.md)
93
- that will help you get started.