swarmauri
swarmauri
Swarmauri namespace microkernel for registry-backed imports, plugin discovery, and composable intelligence infrastructure components.
Overview · Installation · Quick Start · Usage · API · Contributing · Governance · License
Overview
Summary
Swarmauri is the namespace package for the Swarmauri SDK. It installs the lightweight import microkernel that lets applications use stable swarmauri.<component_kind>.<ClassName> import paths while concrete implementations live in separate first-party, community, plugin, or experimental distributions.
Why This Package
Swarmauri gives applications one stable Python namespace for a large and growing set of independently packaged SDK components. Instead of hard-coding every implementation package into application imports, the namespace importer resolves registered component paths through interface and citizenship registries.
When to Use
Use swarmauri when you want the stable SDK namespace and plugin discovery behavior. Use the implementation package directly when you want to depend on only one specific component and do not need namespace routing.
Features
- Stable
swarmauri.*namespace imports for installed SDK components. - Registry-backed component discovery through first-class, second-class, and third-class citizenship mappings.
- Entry-point scanning for installed plugins and community packages.
- Interface-aware resource kinds for agents, chains, chunkers, conversations, embeddings, LLMs, parsers, tools, vector stores, signing, crypto, key providers, transports, middleware, and more.
- Optional dependency groups for curated component families, including
default,full, andllms. - Pydantic-based typed component workflows through
swarmauri_baseand concrete packages. - Python 3.10, 3.11, 3.12, 3.13, and 3.14 support.
Non-Goals
swarmauri owns swarmauri namespace microkernel for registry-backed imports, plugin discovery, and composable intelligence infrastructure components. 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.
Getting Started
Prerequisites
Python >=3.10,<3.15 is required. The manifest declares runtime dependencies including toml, httpx, pydantic, typing-extensions, swarmauri-core, swarmauri-base, swarmauri-standard. Read the example’s inputs and service requirements before execution.
Installation
Install the namespace package with uv:
uv add swarmauri
Or install it with pip:
pip install swarmauri
Install optional LLM integrations when you want the curated LLM package set:
uv add "swarmauri[llms]"
For the broader curated component bundle:
uv add "swarmauri[full]"
uv
uv add swarmauri
pip
python -m pip install swarmauri
Poetry
poetry add swarmauri
Quick Start
Example
Source: docs/readme/quick_start.py.
from swarmauri.interface_registry import InterfaceRegistry
from swarmauri.plugin_citizenship_registry import PluginCitizenshipRegistry
namespaces = InterfaceRegistry.list_registered_namespaces()
registered = PluginCitizenshipRegistry.total_registry()
print("known namespaces", len(namespaces))
print("known component mappings", len(registered))
Expected Result
The example demonstrates the documented swarmauri 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.
Usage
Common Workflows
Source: docs/readme/usage.py.
from swarmauri.interface_registry import InterfaceRegistry
from swarmauri.plugin_citizenship_registry import PluginCitizenshipRegistry
namespaces = InterfaceRegistry.list_registered_namespaces()
registered = PluginCitizenshipRegistry.total_registry()
print("known namespaces", len(namespaces))
print("known component mappings", len(registered))
Importing swarmauri activates the namespace importer and plugin discovery:
Resolve a component through a stable namespace path after the implementation package is installed:
import swarmauri
from swarmauri.signings.Ed25519EnvelopeSigner import Ed25519EnvelopeSigner
signer = Ed25519EnvelopeSigner()
print(signer.type)
The implementation still comes from the signer package, but application code can use the Swarmauri public namespace.
List known public namespaces:
from swarmauri.interface_registry import InterfaceRegistry
for namespace in InterfaceRegistry.list_registered_namespaces():
print(namespace)
Inspect registered first-party and discovered component paths:
from swarmauri.plugin_citizenship_registry import PluginCitizenshipRegistry
for (
public_path,
module_path,
) in PluginCitizenshipRegistry.total_registry().items():
print(public_path, "->", module_path)
Invalidate plugin entry-point cache after changing the Python environment at runtime:
from swarmauri.plugin_manager import invalidate_entry_point_cache
invalidate_entry_point_cache()
Configuration
Configure swarmauri through the APIs in package source; its manifest describes installation requirements, not an implicit service configuration. No additional package-global configuration contract is inferred from dependencies.
Error Handling
The inspected swarmauri source raises ImportError, KeyError, PluginLoadError, PluginValidationError, ValueError. Handle these at the calling boundary and consult the implementation for the triggering conditions.
Best Practices
Use the explicit swarmauri imports documented below and keep collaborator configuration with the caller. Run the package’s relevant tests after changing SwarmauriImporter, discover_and_register_plugins; an import or successful installation alone does not establish its runtime guarantees.
Package Boundary
What It Owns
swarmauri is located in swarmauri and owns swarmauri namespace microkernel for registry-backed imports, plugin discovery, and composable intelligence infrastructure components. Source-declared APIs include SwarmauriImporter, discover_and_register_plugins. The manifest records its direct dependency boundary.
Public API and Import Surfaces
Import namespace: swarmauri.
Source-declared exports or types: SwarmauriImporter, discover_and_register_plugins.
Inspect package source for exact signatures; this inventory does not designate every internal module as stable.
Entry Points
This package declares no command-line, GUI, or plugin entry points in its manifest.
Injected Dependencies
The direct installation dependencies of swarmauri are toml, httpx, pydantic, typing-extensions, 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.
Protocol Consumers
No direct package-manifest dependency on swarmauri was found in the audited three-repository inventory. External consumers may still use its documented imports or commands.
Extensions
For swarmauri, use the source-declared public interfaces (SwarmauriImporter, discover_and_register_plugins) 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.
Operations and Readiness
Operational Requirements
Operate swarmauri according to its actual entry points and collaborators. The dependency and Python requirements in the manifest are prerequisites; deployment topology, credentials, and readiness remain the responsibility of the consuming application unless explicitly documented above.
Health and Observability
This README does not establish a standalone health endpoint for swarmauri. 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.
Security and Resource Limits
Apply the input, credential, and resource constraints implemented in package source. The swarmauri README gate is a documentation check, not a security review or a substitute for the implementation’s limits and caller authorization.
Compatibility
This source version of swarmauri 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.
Verification
Tests
Run python -m pytest tests/unit/test_readme_sources.py from the swarmauri package directory for the maintained example source checks (Python compilation and non-Python file presence). Existing package tests include:
- tests/test_assert_truth.py
- tests/test_performance.py
- tests/test_random_registration_performance.py
- tests/performance/test_namespace_performance.py
- tests/performance/test_plugin_discovery_benchmark.py
The repository README gate also checks the required heading tree, metadata, managed fragments, and referenced files.
Certification Status
No external certification is asserted for swarmauri by this documentation migration. README conformance, example syntax, runtime tests, and protocol or security certification are distinct evidence scopes.
Evidence
The README standards CI records mechanical documentation results for its tested commit. The package source and example sources support the package-boundary description; external runtime behavior requires its own test evidence.
FAQ
Why
Q: What does the swarmauri package install?
A: It installs the public Swarmauri namespace, the namespace importer, interface registry access, plugin citizenship registry access, and entry-point discovery hooks.
Q: Does swarmauri contain every component implementation?
A: No. It routes to installed implementation packages. Foundational packages such as swarmauri_core, swarmauri_base, and swarmauri_standard provide contracts, base behavior, and standard components.
How
How do I start? Install or synchronize the environment under Getting Started, follow the maintained example for swarmauri, and consult package source for the exact types and signatures involved.
When
Q: When should I import from swarmauri instead of a concrete package?
A: Use swarmauri imports when you want stable public namespace paths. Import a concrete package directly when you want the narrowest dependency surface for one implementation.
This package is best for:
- AI application developers who want stable imports for agents, tools, models, parsers, vector stores, signing components, key providers, middleware, transports, and related SDK components.
- Platform engineers who need registry-driven plugin discovery without hard-coding every implementation package into application code.
- Component authors who want their packages to participate in the Swarmauri namespace through entry points and citizenship mappings.
- Operators who need a small runtime package that can load installed Swarmauri components on demand.
Documentation and Related Packages
More Documentation
Related Packages
Core Swarmauri packages:
- swarmauri_core provides interface contracts used by component packages.
- swarmauri_base provides reusable base classes, serialization helpers, and component registration behavior.
- swarmauri_standard provides first-party standard components across agents, tools, parsers, prompts, metrics, similarities, deprecated distance compatibility shims, and other common resource kinds.
Related component kinds:
- swarmauri_signing_ed25519 for Ed25519 envelope signing.
- swarmauri_signing_jws for JWS signing and verification.
- swarmauri_keyprovider_inmemory for in-memory key management.
- swarmauri_storage_memory for memory-backed storage adapters.
- swarmauri_middleware_jsonrpc for JSON-RPC middleware.
- swarmauri_transport_stdio for stdio transport integrations.
Project Links
Contributing
How to Contribute
Contributions are welcome. Before adding a new public namespace path, update the interface and citizenship registries, add package-level tests for import resolution, and follow the Swarmauri SDK contribution guide.
Development Setup
Work from the pkgs/80-facades/swarmauri 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.
Notes for Maintainers
What Is Swarmauri?
Swarmauri is a composable intelligence infrastructure SDK for building typed, pluggable Python systems. The swarmauri distribution is the package users install when they want the public namespace, plugin discovery, registry-backed component resolution, and curated optional dependency groups for common component families.
How The Namespace Works
When import swarmauri runs, the package registers SwarmauriImporter on sys.meta_path and discovers installed plugins. The importer consults two registries:
InterfaceRegistrymaps resource namespaces such asswarmauri.llms,swarmauri.tools, andswarmauri.signingsto their validation interfaces.PluginCitizenshipRegistrymaps public namespace paths to implementation modules and classifies components as first-class, second-class, or third-class citizens.
The result is a stable public namespace over independently versioned packages. For example, swarmauri.signings.Ed25519EnvelopeSigner can resolve to the implementation package that provides the signer, while application code keeps the Swarmauri namespace import.
Component Author Workflow
To make a component available through the Swarmauri namespace:
- Implement the concrete class in its own package.
- Ensure the class satisfies the relevant interface from
swarmauri_coreand base behavior fromswarmauri_base. - Expose the component through a
swarmauri.<kind>entry point or a citizenship registry mapping. - Import
swarmauriin the consuming environment so the namespace importer and plugin discovery run. - Validate the public namespace path in tests.
Alpha TTS providers
The tts extra installs separate OpenAI, DeepInfra, Together, Cartesia,
ElevenLabs, Deepgram, Gemini, Amazon Polly and Azure Speech TTS packages, plus native DeepInfra Kokoro/Qwen3/
voice-design, ElevenLabs dialogue and Gemini dialogue packages.
Install with uv add --prerelease allow "swarmauri[tts]" or
pip install --pre "swarmauri[tts]" after the candidate releases are published.
Install swarmauri_tts_openai for OpenAI speech, then use
from swarmauri.tts.OpenaiTTS import OpenaiTTS. Use the corresponding
DeepInfraTTS, TogetherTTS, CartesiaTTS, ElevenLabsTTS, DeepgramTTS
GeminiTTS, PollyTTS, AzureTTS, DeepInfraKokoroTTS,
DeepInfraQwen3TTS, DeepInfraQwen3VoiceDesignTTS, ElevenLabsDialogueTTS
and GeminiDialogueTTS
facade modules. Provider packages remain alpha
and their live verification issues are listed in
the verification guide.
Governance
Ownership and Decision Making
Changes to swarmauri follow the maintainer review process of swarmauri/swarmauri-sdk and its contribution guide. Author attribution remains in the manifest; this README does not assign new publishing or administrative authority.
Standards and Policies
swarmauri follows the versioned package-guide-v1 outline. All fixed headings, hierarchy, order, separators, and package-specific branding are checked by CI; reviewers assess the accuracy and usefulness of authored claims.
Lifecycle and Migration
The swarmauri source version is 0.11.0.
License and Attribution
License
Licensed under Apache-2.0. See LICENSE.
Apache-2.0
Notices
See NOTICE for attribution.
Metadata
Release files for swarmauri 0.11.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| swarmauri-0.11.0.tar.gz | 39.6 kB | Without provenance | Details for swarmauri-0.11.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| swarmauri-0.11.0-py3-none-any.whl | Python 3 | none | any | Details for swarmauri-0.11.0-py3-none-any.whl |
Total release size: 74.1 kB
Release files / swarmauri-0.11.0.tar.gz
| Download URL | swarmauri-0.11.0.tar.gz |
|---|---|
| Size | 39.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
51446fb94c646f1a1ba37f53f95d93e2d72c265afdd607f3ff906b29ca1d3f6f
|
|
BLAKE2b-256 checksum How to use checksums |
5366479e46e86d7efdb9befba151f3f23b2f961dea8dcc17aba16420517e2921
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.11 {"installer":{"name":"uv","version":"0.13.11","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-0.11.0-py3-none-any.whl
| Download URL | swarmauri-0.11.0-py3-none-any.whl |
|---|---|
| Size | 34.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a883bef2bea200909438354d2079b386e6fddaab262a2b2cfa1aaa98e9a3e962
|
|
BLAKE2b-256 checksum How to use checksums |
ba9b79ce6e9286ea82534ea2028feea6a7b35a27f3d05c85c668da3e01bcffe7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.11 {"installer":{"name":"uv","version":"0.13.11","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}
|
Security for swarmauri 0.11.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.