Skip to main content

The Modular Autonomous Discovery for Science (MADSci) Common Definitions and Utilities.

Project description

MADSci Common

Common types, validators, serializers, utilities, and other flotsam and jetsam used across the MADSci toolkit.

Installation

The MADSci common components are available via the Python Package Index, and can be installed via:

pip install madsci.common

This python package is also included as part of the madsci Docker image.

MADSci Types

The MADSci toolkit uses a variety of "types", implemented as Pydantic Data Models. These data models allow us to easily create, validate, serialize, and de-serialize data structures used throughout the distributed systems. They can easily be serialized to JSON when being sent between system components over REST or stored in JSON-friendly databases like MongoDB or Redis, or to YAML for human-readable and editable definition files.

You can import these types from madsci.common.types, where they are organized by subsystem.

Settings

MADSci uses Pydantic Settings to configure many of it's subsystems. This allows users to configure managers, clients, nodes, and other MADSci components using command line arguments, environment variables, settings files in various formats (.env, .toml, .yaml, .json), and secrets files.

Settings Precedence

Detailed documentation for what configuration can be set is included in the Configuration.md, and an example .env is included in the root of the MADSci repository.

In general, each subsystem supports configuration via both a generic file (.env, settings.yaml, etc), and a subsystem-specific file (event_client.env, event_client.yaml, etc). In such cases, the subsystem specific version takes precedence over the generic version.

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

madsci_common-0.4.3.tar.gz (40.8 kB view details)

Uploaded Source

Built Distribution

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

madsci_common-0.4.3-py3-none-any.whl (54.3 kB view details)

Uploaded Python 3

File details

Details for the file madsci_common-0.4.3.tar.gz.

File metadata

  • Download URL: madsci_common-0.4.3.tar.gz
  • Upload date:
  • Size: 40.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.25.3 CPython/3.9.22 Linux/6.11.0-1015-azure

File hashes

Hashes for madsci_common-0.4.3.tar.gz
Algorithm Hash digest
SHA256 45cb97fd534965dd46144ccdfffecadd76a697d82550940823d8f4787484adcf
MD5 b49a03661386046f537494132e21ce0f
BLAKE2b-256 27774ea4ee05474f8f4d60ab95ae7743cff2e9336eae1b4aae82010300f930d2

See more details on using hashes here.

File details

Details for the file madsci_common-0.4.3-py3-none-any.whl.

File metadata

  • Download URL: madsci_common-0.4.3-py3-none-any.whl
  • Upload date:
  • Size: 54.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.25.3 CPython/3.9.22 Linux/6.11.0-1015-azure

File hashes

Hashes for madsci_common-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a075c0072aa352f12cc63cf78511b9372481a201f47b74aa787e2d1e55202c65
MD5 5e30bea72f0d8c6aa01d3484dfafb889
BLAKE2b-256 3bf1cb57603f4caf937adc0dad31d1b8473543883cfa8c2b3348457f9afcb84a

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