SPICE Client
A Python client library for interacting with the SPICE API - a system for managing ice nucleation particle experiment data.
Installation
pip install spice-client
Quick Start
from spice_client import ApiClient, Configuration
from spice_client.helpers.wrapper import get_jwt_token
from spice_client.api.default_api import DefaultApi
import pandas as pd
import geopandas as gpd
import json
SERVER = "https://spice.epfl.ch"
auth_token = get_jwt_token(SERVER)
config = Configuration(host=SERVER, access_token=auth_token)
api = DefaultApi(ApiClient(configuration=config))
# List experiments
experiments = api.get_experiments()
print(experiments)
Features
- Full API coverage for SPICE endpoints
- Keycloak authentication with token caching
- Type-safe models and responses
- Jupyter notebook integration
- Comprehensive documentation
Authentication
The client includes Keycloak integration for secure API access. Authentication tokens are cached and refreshed.
Documentation
For complete API documentation, visit the live API documentation at https://spice.epfl.ch/api/docs
Metadata
Release files for spice-client 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| spice_client-0.1.3.tar.gz | 61.0 kB | Without provenance | Details for spice_client-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| spice_client-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for spice_client-0.1.3-py3-none-any.whl |
Total release size: 178.3 kB
Release files / spice_client-0.1.3.tar.gz
| Download URL | spice_client-0.1.3.tar.gz |
|---|---|
| Size | 61.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aa18faf8121a88931097b2335540b463c4157e97326c91bef2080ac736e81ef8
|
|
BLAKE2b-256 checksum How to use checksums |
f1b590055934b1ca0f0e2e18167b3a9ea65af2d865d47bbed821e4f407488b17
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.2
|
Release files / spice_client-0.1.3-py3-none-any.whl
| Download URL | spice_client-0.1.3-py3-none-any.whl |
|---|---|
| Size | 117.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
73234dfb9ccdc8ab3cdd1c039fd15701316aa8a50a49ed0a8bf97fa9ebaee5dc
|
|
BLAKE2b-256 checksum How to use checksums |
a2d91d38ea8ac0462e8321bff6320c49d8f878647377b2d2b517ee10134f0c76
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.2
|
Security for spice-client 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.