Skip to main content

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

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sipametrics-0.2.6.1.tar.gz (17.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sipametrics-0.2.6.1-py3-none-any.whl (23.9 kB view details)

Uploaded Python 3

File details

Details for the file sipametrics-0.2.6.1.tar.gz.

File metadata

  • Download URL: sipametrics-0.2.6.1.tar.gz
  • Upload date:
  • Size: 17.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.3 Linux/6.17.0-1015-aws

File hashes

Hashes for sipametrics-0.2.6.1.tar.gz
Algorithm Hash digest
SHA256 91b503f171aebee5d770603f595007ecba86d6905cd8c7f258d83b7e68372cc4
MD5 34aba4a94ebf341e39489e2c78fa233c
BLAKE2b-256 f3427068fa0496f36625bb01859113924de3edbfa65bcb948a495914efc36c7a

See more details on using hashes here.

File details

Details for the file sipametrics-0.2.6.1-py3-none-any.whl.

File metadata

  • Download URL: sipametrics-0.2.6.1-py3-none-any.whl
  • Upload date:
  • Size: 23.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.3 Linux/6.17.0-1015-aws

File hashes

Hashes for sipametrics-0.2.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a897cd75c0fa2a9cce4d92fc7d51d9b0b41cf3282425cc62ceb373fa31a8ed5d
MD5 d194141e3f6137df00c1687adf003a09
BLAKE2b-256 405a172dd7655640bd4d44e9b3274292eb122492bf6f3a4ae49c7bdf2876c973

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page