Skip to main content

Core protocols and dependency injection for Framework M

Project description

Framework M Core

PyPI version Python 3.12+ License GitLab Pipeline Status

Core protocols and foundation for Framework M.

Overview

Framework M Core provides the essential primitives and architectural patterns used throughout the framework:

  • Protocol Interfaces (Ports): Standardized interfaces for repositories, events, storage, and more.
  • Domain Base Classes: BaseDocType, BaseController, and essential mixins.
  • Dependency Injection: A robust DI container for clean, testable code.
  • CLI Kernel: The core command-line framework built on Cyclopts.

For detailed interface documentation, please refer to the official Framework M API Docs.

Dependency Injection

Built on dependency-injector for clean, testable code:

from framework_m_core.container import Container

container = Container()
container.wire(modules=["my_app.services"])

CLI Framework

Built on cyclopts for powerful command-line interfaces:

from framework_m_core.cli import app

@app.command
def my_command():
    """My custom command."""
    pass

Usage

This package is typically used as a dependency of framework-m or framework-m-standard. For most applications, install the full framework-m package instead.

License

Apache 2.0 License - see LICENSE for details.

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

framework_m_core-0.24.0.tar.gz (247.0 kB view details)

Uploaded Source

Built Distribution

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

framework_m_core-0.24.0-py3-none-any.whl (215.4 kB view details)

Uploaded Python 3

File details

Details for the file framework_m_core-0.24.0.tar.gz.

File metadata

  • Download URL: framework_m_core-0.24.0.tar.gz
  • Upload date:
  • Size: 247.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for framework_m_core-0.24.0.tar.gz
Algorithm Hash digest
SHA256 d9d6a2a7debe28f615dae3a35645ab68c9664843710087330abf0885567ff913
MD5 e38c812abc83f4073a4109ffcb04597b
BLAKE2b-256 bd4a56a882f82cb46e713f099b42f563faf282082038c57978d7f3b60a8c3d32

See more details on using hashes here.

File details

Details for the file framework_m_core-0.24.0-py3-none-any.whl.

File metadata

File hashes

Hashes for framework_m_core-0.24.0-py3-none-any.whl
Algorithm Hash digest
SHA256 99d7b9d6971e66ecc843cea36676f928b0d3d3d199d063edaf481302e24d254a
MD5 7c25c9a48f3e9302d248bba6e18d660b
BLAKE2b-256 3645baa7c728b5f41c1d4b191fd595cdecd6b995a14b1f22e1ef2b1306f55706

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