Skip to main content

Namespace package for components, packages, and plugins within the Swarmauri framework.

Project description

Swarmauri Logo

PyPI - Downloads Hits PyPI - Python Version PyPI - License PyPI - swarmauri


Swarmauri SDK

The Swarmauri SDK offers a comprehensive suite of tools designed for building distributed, extensible systems using the Swarmauri framework.

Swarmauri Namespace Microkernel

The swarmauri package is implemented as a namespace microkernel. When the package is imported it registers a custom importer that consults the interface and plugin citizenship registries to locate actual implementations. This design keeps the namespace lightweight while still allowing first-party and community plugins to be discovered and loaded on demand. New resource kinds are declared in interface_registry.py, then mapped to plugin modules via plugin_citizenship_registry.py. For a deeper look at the import flow, see docs/callflow.md.

Core

  • Core Interfaces: Define the fundamental communication and data-sharing protocols between components in a Swarmauri-based system.

Standard

  • Base Classes: Provide a foundation for constructing Swarmauri components, with standardized methods and properties.
  • Mixins: Reusable code fragments designed to be integrated into various classes, offering shared functionality across different components.
  • Concrete Classes: Ready-to-use, pre-implemented classes that fulfill standard system needs while adhering to Swarmauri principles. These classes are the first in line for ongoing support and maintenance, ensuring they remain stable, performant, and up to date with future SDK developments.

Community

  • Third-Party Plug-in Integration: Concrete classes designed to extend the framework’s capabilities by utilizing third-party libraries and plugins.
  • Open Source Contributions: A collaborative space for developers to contribute new components, plug-ins, and features.

Experimental

  • In-Development Components: Early-stage features and components that push the boundaries of the Swarmauri framework, offering innovative solutions that are still in testing phases.

Features

  • Polymorphism: Allows for dynamic behavior switching between components, enabling flexible, context-aware system behavior.
  • Discriminated Unions: Provides a robust method for handling multiple possible object types in a type-safe manner.
  • Serialization: Efficiently encode and decode data for transmission across different environments and system components, with support for both standard and custom serialization formats.
  • Intensional and Extensional Programming: The microkernel continues to leverage both rule-based (intensional) patterns and set-based (extensional) plugin discovery, allowing you to build and manipulate complex data structures with ease.

Use Cases

  • Modular Systems: Develop scalable, pluggable systems that can evolve over time by adding or modifying components without disrupting the entire ecosystem.
  • Distributed Architectures: Build systems with distributed nodes that seamlessly communicate using the SDK’s standardized interfaces.
  • Third-Party Integrations: Extend the system's capabilities by easily incorporating third-party tools, libraries, and services.
  • Prototype and Experimentation: Test cutting-edge ideas using the experimental components in the SDK, while retaining the reliability of core and standard features for production systems.

Future Development

The Swarmauri SDK is an evolving platform, and the community is encouraged to contribute to its growth. Upcoming releases will focus on enhancing the framework's modularity, providing more advanced serialization methods, and expanding the community-driven component library.

Modules Overview

Importer

  • importer.py: Handles the dynamic importing of modules and components within the Swarmauri framework.

Interface Registry

  • interface_registry.py: Manages the registration and lookup of interfaces used for communication between different components.

Plugin Citizenship Registry

When introducing a new resource kind or class, remember to update both the plugin_citizenship_registry.py and interface_registry.py so the framework can discover and validate your additions.

Plugin Manager

  • plugin_manager.py: Oversees the loading, initialization, and management of plugins to extend the functionality of the Swarmauri framework.

Contributing

Contributions are welcome! If you'd like to add a new feature, fix a bug, or improve documentation, kindly go through the contributions guidelines first.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

swarmauri-0.8.3.dev3.tar.gz (26.3 kB view details)

Uploaded Source

Built Distribution

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

swarmauri-0.8.3.dev3-py3-none-any.whl (26.3 kB view details)

Uploaded Python 3

File details

Details for the file swarmauri-0.8.3.dev3.tar.gz.

File metadata

  • Download URL: swarmauri-0.8.3.dev3.tar.gz
  • Upload date:
  • Size: 26.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.3 {"installer":{"name":"uv","version":"0.10.3","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}

File hashes

Hashes for swarmauri-0.8.3.dev3.tar.gz
Algorithm Hash digest
SHA256 7dc73a8c7131d0cc0e5af847f0e4321b0b4cf68e3557a829507c1ff6dcb1568a
MD5 ba5507762335c9314bc98650361fdf11
BLAKE2b-256 3ccb87751119ff9652cc6d4e31232e54fd921688cb2cd6f9d051483e8ad58751

See more details on using hashes here.

File details

Details for the file swarmauri-0.8.3.dev3-py3-none-any.whl.

File metadata

  • Download URL: swarmauri-0.8.3.dev3-py3-none-any.whl
  • Upload date:
  • Size: 26.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.3 {"installer":{"name":"uv","version":"0.10.3","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}

File hashes

Hashes for swarmauri-0.8.3.dev3-py3-none-any.whl
Algorithm Hash digest
SHA256 060f5b2b5d59e1b24cc4c7b5f3581ef1c5f5d7e05b4490a9aead2d93c343ef9c
MD5 69b2b1773de1fbd292607de3f05258a8
BLAKE2b-256 4246d234d009dffcf37202c416a805c7aa1c6f1b0c46c7bf0aa6f5c933acdcff

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