Scientific Infra & Private Assets
Project description
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.9 once it is deemed end of life (October 2025).
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(api_key='your_api_key', api_secret='your_api_secret')
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(api_key='your_api_key', api_secret='your_api_secret') as session:
response = await session.metrics(entity_id='INFRBGWX', metric_id='T01414')
print(response)
asyncio.run(main())
API Reference
Service Initialization
SipaMetricsService(api_key: str, api_secret: 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.
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 sipametrics-0.2.3.tar.gz.
File metadata
- Download URL: sipametrics-0.2.3.tar.gz
- Upload date:
- Size: 15.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.12.3 Linux/6.14.0-1009-aws
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6da3788daab4c73982668f42bbabfb1eab9b40beaca4015d9db328d19a4cfdf
|
|
| MD5 |
4e9444afc3016f356f71d3a88bd2ad4a
|
|
| BLAKE2b-256 |
c12e1865a15b792a0690ead25dde8193a50fb4ec124a6377f119b370c7c9b164
|
File details
Details for the file sipametrics-0.2.3-py3-none-any.whl.
File metadata
- Download URL: sipametrics-0.2.3-py3-none-any.whl
- Upload date:
- Size: 20.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.12.3 Linux/6.14.0-1009-aws
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80166d9160ddc8cec525e668008acd37e9ec2a262f4c086c1c2fa98f8505a5dc
|
|
| MD5 |
7f179e3d70426b95241a33236eb0ce82
|
|
| BLAKE2b-256 |
5a942b2281990a8c62387f882d74cd9b799ea26332ee78eb682024fbcdc8bad2
|