swarmauri_storage_github 0.2.0.dev4__tar.gz → 0.2.0.dev33__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,98 @@
1
+ Metadata-Version: 2.4
2
+ Name: swarmauri_storage_github
3
+ Version: 0.2.0.dev33
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.
@@ -0,0 +1,75 @@
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.
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "swarmauri_storage_github"
3
- version = "0.2.0.dev4"
3
+ version = "0.2.0.dev33"
4
4
  authors = [
5
5
  { name = "Jacob Stewart", email = "jacob@swarmauri.com" }
6
6
  ]
@@ -16,16 +16,23 @@ classifiers = [
16
16
  "Programming Language :: Python :: 3.11",
17
17
  "Programming Language :: Python :: 3.12",
18
18
  "Operating System :: OS Independent",
19
+ "Programming Language :: Python",
20
+ "Programming Language :: Python :: 3 :: Only",
19
21
  ]
20
22
  dependencies = [
21
- "peagen",
22
23
  "swarmauri_core",
23
24
  "swarmauri_base",
24
25
  "swarmauri_standard",
25
26
  ]
27
+ keywords = [
28
+ 'swarmauri',
29
+ 'sdk',
30
+ 'standards',
31
+ 'storage',
32
+ 'github',
33
+ ]
26
34
 
27
35
  [tool.uv.sources]
28
- peagen = { workspace = true }
29
36
  swarmauri_core = { workspace = true }
30
37
  swarmauri_base = { workspace = true }
31
38
  swarmauri_standard = { workspace = true }
@@ -41,6 +48,7 @@ norecursedirs = ["combined", "scripts"]
41
48
  markers = [
42
49
  "test: standard test",
43
50
  "unit: Unit tests",
51
+ "example: Example usage tests",
44
52
  "i9n: Integration tests",
45
53
  "r8n: Regression tests",
46
54
  "timeout: mark test to timeout after X seconds",
@@ -29,6 +29,10 @@ class GithubStorageAdapter(StorageAdapterBase):
29
29
  ) -> None: # pragma: no cover - stub
30
30
  raise NotImplementedError("download_dir() not implemented")
31
31
 
32
+ async def remove_object(self, object_key: str) -> None: # pragma: no cover - stub
33
+ del object_key
34
+ return
35
+
32
36
  @classmethod
33
37
  def from_uri(cls, uri: str) -> "GithubStorageAdapter": # pragma: no cover - stub
34
38
  return cls()
@@ -1,40 +0,0 @@
1
- Metadata-Version: 2.3
2
- Name: swarmauri_storage_github
3
- Version: 0.2.0.dev4
4
- Summary: GitHub storage adapter stub for Peagen
5
- License: Apache-2.0
6
- Author: Jacob Stewart
7
- Author-email: jacob@swarmauri.com
8
- Requires-Python: >=3.10,<3.13
9
- Classifier: License :: OSI Approved :: Apache Software License
10
- Classifier: Programming Language :: Python :: 3
11
- Classifier: Programming Language :: Python :: 3.10
12
- Classifier: Programming Language :: Python :: 3.11
13
- Classifier: Programming Language :: Python :: 3.12
14
- Classifier: Operating System :: OS Independent
15
- Requires-Dist: peagen
16
- Requires-Dist: swarmauri_base
17
- Requires-Dist: swarmauri_core
18
- Requires-Dist: swarmauri_standard
19
- Description-Content-Type: text/markdown
20
-
21
- # Swarmauri GitHub Storage Adapter
22
-
23
- Simplified storage adapter for Peagen that records uploads as `github://` URIs.
24
-
25
- ## Installation
26
-
27
- ```bash
28
- # pip install swarmauri_storage_github (when published)
29
- ```
30
-
31
- ## Usage
32
-
33
- ```python
34
- from swarmauri_storage_github import GithubStorageAdapter
35
-
36
- adapter = GithubStorageAdapter()
37
- uri = adapter.upload("README.md", "my-org/my-repo/README.md")
38
- print(uri)
39
- ```
40
-
@@ -1,19 +0,0 @@
1
- # Swarmauri GitHub Storage Adapter
2
-
3
- Simplified storage adapter for Peagen that records uploads as `github://` URIs.
4
-
5
- ## Installation
6
-
7
- ```bash
8
- # pip install swarmauri_storage_github (when published)
9
- ```
10
-
11
- ## Usage
12
-
13
- ```python
14
- from swarmauri_storage_github import GithubStorageAdapter
15
-
16
- adapter = GithubStorageAdapter()
17
- uri = adapter.upload("README.md", "my-org/my-repo/README.md")
18
- print(uri)
19
- ```