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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file open_mpic_core-6.1.0.tar.gz.
File metadata
- Download URL: open_mpic_core-6.1.0.tar.gz
- Upload date:
- Size: 57.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b94b9aadf4419dc55086c121fb978e3eddbf1e1cedb6973ffad0d2da3055a0f
|
|
| MD5 |
0ed250e5fc9d0fab7ee7304c661d4fb1
|
|
| BLAKE2b-256 |
972535be97780308502f1136eefc3dcd93665a0a1eb32c292614b9e41ed0801e
|
File details
Details for the file open_mpic_core-6.1.0-py3-none-any.whl.
File metadata
- Download URL: open_mpic_core-6.1.0-py3-none-any.whl
- Upload date:
- Size: 41.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64ad27c22b105acb80dbb93c04bc67798caca18fba9f8906ca4ceb5beffa40a9
|
|
| MD5 |
ad947098fd251b9a61bc7ab142e4aeaa
|
|
| BLAKE2b-256 |
0ea25471b0a5d1a35a84ebcec630b91449ee3c0dd25f397a3adc05a1fb33c3db
|