No project description provided
Project description
Local Python SDK
The python project uses the locally fern generated Python SDK and runs tests against the Metriport API.
Setup
- Create a
.envfile with your environment variables:
API_KEY=<your_base64_encoded_api_key>
FACILITY_ID=<your_facility_id>
PATIENT_ID=<your_patient_id>
BASE_URL=http://localhost:8080
The API_KEY should be base64 encoded in the format: <random_key>:<customer_id>
- Install dependencies:
poetry lock
poetry install
Regenerating the Python SDK
To update the generated Python SDK locally for testing, run
fern generate --group test
You will be prompted to sign in.
Running the Tests
Note: Make sure the Metriport API server is running locally (see main README for setup instructions).
Run all tests:
poetry run pytest tests -v
Run a specific test:
poetry run pytest tests/test_create_patient.py -v
Editor Setup
Install the pylance and mypy plugins to get code completion in your editor.
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 metriport-9.2.0.tar.gz.
File metadata
- Download URL: metriport-9.2.0.tar.gz
- Upload date:
- Size: 408.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65afe43362003a5b7070285702b5b438f16d85ed248c21e309d24e33e1ec1044
|
|
| MD5 |
c7627f6a41b5af9329085a0016780962
|
|
| BLAKE2b-256 |
d02d4c85e17dffdf99216a4ddca0e19eb6f01d1f1c912a13daeb1a43b7d62591
|
File details
Details for the file metriport-9.2.0-py3-none-any.whl.
File metadata
- Download URL: metriport-9.2.0-py3-none-any.whl
- Upload date:
- Size: 1.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9860aa57390f7bb7a5082410aad5ab853c34d78e0f9a3f2056ae85fcc67b6df2
|
|
| MD5 |
7ef4fa0845ea6f0daa73c5d793618044
|
|
| BLAKE2b-256 |
187403faa5f0b78894934cddbbceaa098198d9e3d19c0a4927a5df6b1d1986b2
|