Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Swarmauri Logo

PyPI - Downloads Hits PyPI - Python Version PyPI - License PyPI - swarmauri_tool_githubloader Discord

Swarmauri Tool GithubLoader

Load YAML-defined components directly from GitHub repositories.

Installation

pip install swarmauri_tool_githubloader

Usage

from swarmauri_tool_githubloader import GithubLoadedTool

# Load a tool from GitHub
tool = GithubLoadedTool(
    owner="myorg",
    repo="myrepo",
    path="tools/addition.yaml",
)

# Use like any other tool
result = tool(x=1, y=2)

Options

Customize how the loader fetches your component:

  • branch ? Branch to read from (defaults to "master").
  • commit_ref ? Specific commit SHA; overrides branch when provided.
  • token ? GitHub token for private repositories.
  • use_cache ? Set to False to reload the component on every call.

Advanced examples

Fetch from a branch and pin a commit:

tool = GithubLoadedTool(
    owner="myorg",
    repo="myrepo",
    path="tools/addition.yaml",
    branch="develop",
    commit_ref="0123456789abcdef",
)

Load from a private repository with caching disabled:

import os

tool = GithubLoadedTool(
    owner="myorg",
    repo="private-repo",
    path="tools/addition.yaml",
    token=os.environ["GITHUB_TOKEN"],
    use_cache=False,
)

Want to help?

If you want to contribute to swarmauri-sdk, read up on our guidelines for contributing that will help you get started.

Metadata

Release files for swarmauri_tool_githubloader 0.11.0.dev1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for swarmauri_tool_githubloader 0.11.0.dev1
File Size Uploaded
swarmauri_tool_githubloader-0.11.0.dev1.tar.gz 7.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for swarmauri_tool_githubloader 0.11.0.dev1
File Interpreter ABI Platform
swarmauri_tool_githubloader-0.11.0.dev1-py3-none-any.whl Python 3 none any Details

Total release size: 15.6 kB

Release files / swarmauri_tool_githubloader-0.11.0.dev1.tar.gz

Download URL swarmauri_tool_githubloader-0.11.0.dev1.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
1c32671715a5b03d47ade6b38d69f92090b12a075c06767edcc5c05cee2348c0
BLAKE2b-256 checksum
How to use checksums
912b33b178997dcca9f52a514720175e86cca5b01ae92f4a4012be74073c4029
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / swarmauri_tool_githubloader-0.11.0.dev1-py3-none-any.whl

Download URL swarmauri_tool_githubloader-0.11.0.dev1-py3-none-any.whl
Size 8.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3dbdc27ca37457b7da2c2adf6914a5a274ef264e79f30302ca1370996fc6354f
BLAKE2b-256 checksum
How to use checksums
b4edb3d865f9846795dd6a2c3097dcca509a5f2f144724e842a9f3bc8da62bc7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page