Skip to main content

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: Starting from version 0.3.0, sipametrics requires Python 3.11 or later. Python 3.10 reaches end of life in October 2026 and is no longer supported. If you are still on Python 3.10, please upgrade, or pin sipametrics<0.3.0.

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

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.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sipametrics 0.3.0
File Size Uploaded Provenance Actions
sipametrics-0.3.0.tar.gz 19.8 kB Without provenance Details for sipametrics-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sipametrics 0.3.0
File Interpreter ABI Platform Actions
sipametrics-0.3.0-py3-none-any.whl Python 3 none any Details for sipametrics-0.3.0-py3-none-any.whl

Total release size: 46.8 kB

Release files / sipametrics-0.3.0.tar.gz

Download URL sipametrics-0.3.0.tar.gz
Size 19.8 kB
Tags Source
SHA-256 checksum
How to use checksums
57460adbc374e79a3678829b6d623da62cb570e6875133244be48f62d419b47d
BLAKE2b-256 checksum
How to use checksums
f86219cec354a236b6d97af0bad81ab896a58bb2512ca4fecd759241ba512040
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-1014-aws

Release files / sipametrics-0.3.0-py3-none-any.whl

Download URL sipametrics-0.3.0-py3-none-any.whl
Size 26.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e4ff76fcf60c35e3b987c17dc21eec4b8aa5692d4e1274513befc2a1f62e3069
BLAKE2b-256 checksum
How to use checksums
42be9d1373b3de9de4b9271d59c2dfb5809465997cb5e6651ae3930a33751eb3
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-1014-aws

Security for sipametrics 0.3.0

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page