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.4.tar.gz (43.1 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.4-py3-none-any.whl (56.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: madsci_common-0.4.4.tar.gz
  • Upload date:
  • Size: 43.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.25.5 CPython/3.9.23 Linux/6.11.0-1018-azure

File hashes

Hashes for madsci_common-0.4.4.tar.gz
Algorithm Hash digest
SHA256 3b307ad46ca6897bff1a32c64c03ea2f1352bfd21d31734b6cd3d0c78bacc888
MD5 81a191e669156f78c2afd1192a48c09e
BLAKE2b-256 f5b99d6f55ba741fc1b7abdad84d57f32f6098b858719b7ce0c29a388e66e0f0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: madsci_common-0.4.4-py3-none-any.whl
  • Upload date:
  • Size: 56.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.25.5 CPython/3.9.23 Linux/6.11.0-1018-azure

File hashes

Hashes for madsci_common-0.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 760ae1257e66b0350d299c581e40832f07fc2672ba9cda84ff00910d843f7a72
MD5 96e482d049af843254f87134c5b061f4
BLAKE2b-256 89a9a8d2667e98e7705635239112fd5e60e408cdc0473b51719a50bf742ffeb1

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