SIPAMetrics Service
A Python package for interacting with the SIPAMetrics API to fetch metrics and other relevant data. This package simplifies integration by providing an easy-to-use interface for developers.
Python Versions
ℹ️ Note: Please note that we will be removing support for Python 3.10 once it is deemed end of life (October 2026).
Installation
Install the package via pip:
pip install sipametrics
Usage
Here's how you can use the sipametrics package in your Python projects.
Example 1: Simple Usage
This example demonstrates a basic way to initialize the service and fetch metrics using an async function.
import asyncio
from sipametrics import SipaMetricsService
async def main():
service = SipaMetricsService(client_id='your_client_id', secret_key='your_secret_key')
response = await service.metrics(entity_id='INFRBGWX', metric_id='T01414')
print(response)
await service.close()
if __name__ == '__main__':
asyncio.run(main())
Example 2: Using Context Manager
This example uses a context manager async with for better resource management.
import asyncio
from sipametrics import SipaMetricsService
async def main():
async with SipaMetricsService(client_id='your_client_id', secret_key='your_secret_key') as session:
response = await session.metrics(entity_id='INFRBGWX', metric_id='T01414')
print(response)
asyncio.run(main())
API Reference
Service Initialization
SipaMetricsService(client_id: str, secret_key: str): Initializes the service with your API credentials.
Methods
- Please kindly refer to https://docs.sipametrics.com/docs/2-3-python for the full list of supported functions.
License Terms & Conditions
The utilization of the sipametrics Python package entails accessing certain data from Scientific Infra and Private Assets ("SIPA"). Your access and utilization of SIPA, including its sipametrics Python package and associated data, are governed by the terms and conditions set forth in your organization's agreement with SIPA. To align with the workflow demands of a single user, sipametrics package imposes restrictions to safeguard the overall platform’s capacity to support the usage levels of all individual SIPA users accessing data via APIs. These restrictions are subject to modification at our sole discretion, without prior notice. It is your sole responsibility to furnish all necessary support pertaining to any applications developed utilizing the sipametrics Python package. Kindly take note that if you have intentions to resell or distribute any applications or data developed using the sipametrics Python package to third parties, it is imperative to engage in a distribution license agreement with us. Please contact your Customer Success Manager or Sales Representative at SIPA for further information.
Metadata
Release files for sipametrics 0.2.9
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 |
|---|---|---|---|---|
| sipametrics-0.2.9.tar.gz | 19.8 kB | Without provenance | Details for sipametrics-0.2.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sipametrics-0.2.9-py3-none-any.whl | Python 3 | none | any | Details for sipametrics-0.2.9-py3-none-any.whl |
Total release size: 46.8 kB
Release files / sipametrics-0.2.9.tar.gz
| Download URL | sipametrics-0.2.9.tar.gz |
|---|---|
| Size | 19.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
766c8d9145721bf371091cb39dacbc4c61d5943b2361a2bc0e123d0d9c985dac
|
|
BLAKE2b-256 checksum How to use checksums |
3d42c12fbdcd5b15952f161a12e1aa0a4ffcf9115666e21239246a2c0560043d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.12.3 Linux/7.0.0-1013-aws
|
Release files / sipametrics-0.2.9-py3-none-any.whl
| Download URL | sipametrics-0.2.9-py3-none-any.whl |
|---|---|
| Size | 27.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c7f21d38ffbc2ac996ccdd3513e40815487877df8ff000b29776fa159a2444c3
|
|
BLAKE2b-256 checksum How to use checksums |
3424dc133c50aac2bfd99016f9077fc11439ec6df9ccc305a99dbbfad8990c70
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.12.3 Linux/7.0.0-1013-aws
|
Security for sipametrics 0.2.9
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.