Skip to main content

GitHub Release storage adapter for Peagen

Project description

Swarmauri GitHub Release Storage Adapter

Stores artifacts as assets on a GitHub release for use with Peagen.

Installation

# pip install swarmauri_storage_github_release (when published)

Usage

from swarmauri_storage_github_release import GithubReleaseStorageAdapter
from pydantic import SecretStr
import io

adapter = GithubReleaseStorageAdapter(
    token=SecretStr("ghp_..."),
    org="my-org",
    repo="my-repo",
    tag="v1.0.0",
)
uri = adapter.upload("artifact.txt", io.BytesIO(b"data"))
print(uri)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file swarmauri_storage_github_release-0.3.0.dev3.tar.gz.

File metadata

File hashes

Hashes for swarmauri_storage_github_release-0.3.0.dev3.tar.gz
Algorithm Hash digest
SHA256 9731a8a20a3f10de8c2a9dcc00254859b26ec51c0cbc72c4d5bd9ba30272baec
MD5 2278327877f34c04564fae348b5a4ca5
BLAKE2b-256 f928c673446f9cf5e6ca7be106a2c9df489204925dc10678c9cae8018b4608ea

See more details on using hashes here.

File details

Details for the file swarmauri_storage_github_release-0.3.0.dev3-py3-none-any.whl.

File metadata

File hashes

Hashes for swarmauri_storage_github_release-0.3.0.dev3-py3-none-any.whl
Algorithm Hash digest
SHA256 68d15e8ba364ed993af66b19e2c16588394bfd9a35aed0b973593916019279eb
MD5 77d100b30903d98e77cbeb28e9fecfa1
BLAKE2b-256 2f52b3c3d2b9a6fce601c6f0c437a1c358bbae3bca8298fa90e7a701dce938c6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page