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.2.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.2-py3-none-any.whl (54.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for madsci_common-0.4.2.tar.gz
Algorithm Hash digest
SHA256 a7952968402b32082cb04ae105276e6aefd4cdde1d347c63ce0e65e1d2704b49
MD5 e9b49d456d82bdbaff070ec3143c3c3e
BLAKE2b-256 7d5c2b5cadddd1ec06c59c469ad912d74cede2d99e842880a870b2ec2d0ce8ab

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for madsci_common-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fd06044ed7c9c931afca2a4853d3c1db068f5417afb9678e61ee1936aade6bb3
MD5 49ee34e6e67893830d60d5e905f4462e
BLAKE2b-256 a1e09133b848f05e97194c2a13502155426a189319f9cb66a7b59eed6af0cbd4

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