Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ jobs:
strategy:
matrix:
include:
- python-version: "3.9"
- python-version: "3.10"
- python-version: "3.11"
- python-version: "3.12"

Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.3.0

- Drop Python 3.9 and 3.10, both end of life


## 0.2.2

- Revert BaseFHIRError exceptions from fhir-py in operation handlers
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[![build status](https://github.com/Aidbox/aidbox-python-sdk/actions/workflows/build.yaml/badge.svg)](https://github.com/Aidbox/aidbox-python-sdk/actions/workflows/build.yaml)
[![pypi](https://img.shields.io/pypi/v/aidbox-python-sdk.svg)](https://pypi.org/project/aidbox-python-sdk/)
[![Supported Python version](https://img.shields.io/badge/python-3.9+-blue.svg)](https://www.python.org/downloads/release/python-390/)
[![Supported Python version](https://img.shields.io/badge/python-3.11+-blue.svg)](https://www.python.org/downloads/release/python-3110/)

# aidbox-python-sdk

1. Create a python 3.9+ environment `pyenv `
1. Create a python 3.11+ environment `pyenv `
2. Set env variables and activate virtual environment `source activate_settings.sh`
2. Install the required packages with `pipenv install --dev`
3. Make sure the app's settings are configured correctly (see `activate_settings.sh` and `aidbox_python_sdk/settings.py`). You can also
Expand Down
2 changes: 1 addition & 1 deletion aidbox_python_sdk/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__title__ = "aidbox-python-sdk"
__version__ = "0.2.3"
__version__ = "0.3.0"
__author__ = "beda.software"
__license__ = "None"
__copyright__ = "Copyright 2026 beda.software"
Expand Down
4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,12 @@ classifiers = [
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Software Development :: Libraries :: Python Modules",
]
requires-python = ">=3.9"
requires-python = ">=3.11"

[project.optional-dependencies]
test = [
Expand Down
8 changes: 6 additions & 2 deletions tests/test_sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,13 @@ async def test_appointment_sub(sdk, aidbox_client, safe_db):
f.set_result("")
appointment_sub.return_value = f
was_appointment_sub_triggered = sdk.was_subscription_triggered("Appointment")
patient = aidbox_client.resource("Patient")
await patient.save()
resource = aidbox_client.resource(
"Appointment",
**{
"status": "proposed",
"participant": [{"status": "accepted"}],
"participant": [{"status": "accepted", "actor": patient}],
},
)
await resource.save()
Expand All @@ -84,7 +86,9 @@ async def test_appointment_sub(sdk, aidbox_client, safe_db):
expected = {
"resource": {
"status": "proposed",
"participant": [{"status": "accepted"}],
"participant": [
{"status": "accepted", "actor": {"id": patient.id, "resourceType": "Patient"}}
],
"resourceType": "Appointment",
},
"action": "create",
Expand Down
Loading