Short description.
Project description
preepiseizures-api-client
Python client for interacting with the PreEpiSeizures API.
This client simplifies access to authorized endpoints for researchers working with seizure-related data.
🚀 Installation
Install from PyPI:
pip install preepiseizures-api-client
📦 Usage
from preepiseizures_api_client.client import PreEpiSeizuresDBClient
client = PreEpiSeizuresDBClient(
api_url="http://localhost:8000", # or your remote server URL
username="myusername",
password="mypassword"
)
⚠️ Data Synchronization Notice
Important: The seizure times stored in the database are aligned with hospital data and not guaranteed to be synchronized with wearable recordings.
There are two critical issues to be aware of:
- Incorrect Wearable Timestamps:
Some sessions contain wearable files where the initial timestamp is incorrect (e.g., starts exactly at10:00:00, which may be a placeholder or default value). - No Guaranteed Synchronization:
Even when the wearable data has plausible timestamps, they are not guaranteed to be aligned with hospital data for the same session.
The patient codes for which the wearable timestamps are known to be reliable are: BLIW, BSEA, GPPF, OFUF, RGNI, UDZG, YIVL.
⚠️ If you are comparing or aligning events between wearable and hospital data, you must implement a synchronization method (e.g., heart rate signal alignment).
🔐 Authentication
The client handles authentication automatically:
- Authenticates with the provided username and password
- Requests a bearer token from the API
- Uses the token to authorize future requests
📂 Examples
See the examples/example_query.py file for a complete usage example.
🧾 License
Distributed under the MIT License. See LICENSE for more information.
🙋♀️ Author
Created by Ana Sofia Carmo
Email: anascacais@gmail.com
GitHub: @anascacais
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 preepiseizures_api_client-0.1.1.tar.gz.
File metadata
- Download URL: preepiseizures_api_client-0.1.1.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40ccb932d939949b1092cc821075cc4d16b7285c3028e049fbbb65b0aaef922a
|
|
| MD5 |
6df5b690a2683aeb7f4cc3481217ac84
|
|
| BLAKE2b-256 |
996fe8258d9e6986813c8fe78f487dcbadd4819f95970c0489725d718d6e0f42
|
Provenance
The following attestation bundles were made for preepiseizures_api_client-0.1.1.tar.gz:
Publisher:
release.yml on anascacais/preepiseizures-api-client
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
preepiseizures_api_client-0.1.1.tar.gz -
Subject digest:
40ccb932d939949b1092cc821075cc4d16b7285c3028e049fbbb65b0aaef922a - Sigstore transparency entry: 243711432
- Sigstore integration time:
-
Permalink:
anascacais/preepiseizures-api-client@e1423f386231f6f99517318314a93cd8313c4d8d -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/anascacais
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@e1423f386231f6f99517318314a93cd8313c4d8d -
Trigger Event:
release
-
Statement type:
File details
Details for the file preepiseizures_api_client-0.1.1-py3-none-any.whl.
File metadata
- Download URL: preepiseizures_api_client-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86a51089331525933ec9db33fee8edb36c1f9f8deed597f111dfbf5e4ccca336
|
|
| MD5 |
70e544594e8affca862a8c3ed0b2962f
|
|
| BLAKE2b-256 |
e608e5a21a5fb0549320d09cfadb7a00c714af76ad57bc7bd60de7436d08f666
|
Provenance
The following attestation bundles were made for preepiseizures_api_client-0.1.1-py3-none-any.whl:
Publisher:
release.yml on anascacais/preepiseizures-api-client
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
preepiseizures_api_client-0.1.1-py3-none-any.whl -
Subject digest:
86a51089331525933ec9db33fee8edb36c1f9f8deed597f111dfbf5e4ccca336 - Sigstore transparency entry: 243711433
- Sigstore integration time:
-
Permalink:
anascacais/preepiseizures-api-client@e1423f386231f6f99517318314a93cd8313c4d8d -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/anascacais
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@e1423f386231f6f99517318314a93cd8313c4d8d -
Trigger Event:
release
-
Statement type: