Skip to main content

Library of core (common) MPIC functionality for Open MPIC in Python.

Project description

open-mpic-core-python

A Python implementation of the Open MPIC core library which can be adapted to various transports or deployment environments.

Overview

The open-mpic-core library is a "common code" or "core" library for Open MPIC, written in Python. It is designed to be included in Python projects that wrap this code in something that can be invoked to leverage it.

For example:

  • The aws-lambda-python GitHub project utilizes this library as part of an AWS Lambda-based MPIC implementation.
  • The open-mpic-containers GitHub project uses this library to implement the key MPIC components (coordinator, CAA checker, DCV checker) as FastAPI-based Docker images that can be deployed as desired.

API Specification

The open-mpic-core library utilizes object definitions which are based on the Open MPIC API Specification. This codebase is versioned to correspond to the Open MPIC API Specification version on which it is based. MPIC implementations based on this library should therefore be expected to conform to the corresponding Open MPIC API specification.

Installation

To include the open-mpic-core library in your project, add it as a dependency in your pyproject.toml file:

[project]
dependencies = [
  "open-mpic-core"
]

Alternatively, you can install it using pip:

pip install open-mpic-core

Usage

Here is an example of how to use the open-mpic-core library in your project:

from open_mpic_core.mpic_caa_checker import MpicCaaChecker
from open_mpic_core.common_domain import CaaCheckRequest, CaaCheckResponse

# Create a CAA check request
caa_request = CaaCheckRequest(
    caa_check_parameters=...  # Fill in the required parameters
)

# Perform the CAA check
checker = MpicCaaChecker()
caa_response = await checker.check_caa(caa_request)

# Process the response
if caa_response.check_passed:
    print("CAA check passed")
else:
    print("CAA check failed")

Contributing

Contributions are welcome! Please see the contributing guidelines for more information.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Links

Authors

  • Henry Birge-Lee
  • Grace Cimaszewski
  • Dmitry Sharkov

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

open_mpic_core-5.2.0.tar.gz (46.0 kB view details)

Uploaded Source

Built Distribution

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

open_mpic_core-5.2.0-py3-none-any.whl (33.8 kB view details)

Uploaded Python 3

File details

Details for the file open_mpic_core-5.2.0.tar.gz.

File metadata

  • Download URL: open_mpic_core-5.2.0.tar.gz
  • Upload date:
  • Size: 46.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.0

File hashes

Hashes for open_mpic_core-5.2.0.tar.gz
Algorithm Hash digest
SHA256 74b10e8ab077fd504c3b6d57ae1c68ace201f9317d5677d8b4fc094ed71262be
MD5 60e836eca8b24d1ed974c40b0b7ace98
BLAKE2b-256 fc43c2c5baf5a74e4f52265337e30e9dd22dc27f8bd22d5c9771abb780afc73e

See more details on using hashes here.

File details

Details for the file open_mpic_core-5.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for open_mpic_core-5.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 be5428e586f40b091af7e5603cdcfb76f13fcdeeb324b42a130234b8fb6b0a34
MD5 bccf57510fe55eda18b2ca6fc94e1ac4
BLAKE2b-256 9a07f0c1f3512841023e1e094e188c2f1cf0016c5bd42c284c72fba7871de14c

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