Skip to main content

Monium

This library is designed for working with Monium from Yandex Cloud. It provides a simplified way to write logs and metrics. Internally, it uses the OpenTelemetry protocol. This is not the official Monium library from Yandex Cloud.

Usage

First, you need to provide the data for connection.:

from monium_sdk.security import ApiKey, IAMToken

key = ApiKey(
    secret="secret"
)

# or

key = IAMToken(
    secret="secret"
)

After that, you can use all the library's functionality:

import asyncio
from monium_sdk import Telemetry
from monium_sdk.security import ApiKey

def test():
    
    key = ApiKey(
        secret="secret"
    )
    
    with Telemetry.logging_start(
        key=key,
        project="folder__<folder_id>",
        service="<service>",
        cluster="<cluster>"
    ) as res:
        Telemetry.log.info("first message")
        Telemetry.log.error("error")
        Telemetry.metric.add_to_counter(count=5)


if __name__ == "__main__":
    test()

To update the key, use the update_key function from the Telemetry class.

from monium_sdk.security import ApiKey
from monium_sdk import Telemetry

def test():
    key = ApiKey(
        secret="secret"
    )
    
    Telemetry.update_key(key)

Metadata

Release files for monium-sdk 1.2.1

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

Source distribution (sdist)

Source distribution for monium-sdk 1.2.1
File Size Uploaded Provenance Actions
monium_sdk-1.2.1.tar.gz 10.4 kB Without provenance Details for monium_sdk-1.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for monium-sdk 1.2.1
File Interpreter ABI Platform Actions
monium_sdk-1.2.1-py3-none-any.whl Python 3 none any Details for monium_sdk-1.2.1-py3-none-any.whl

Total release size: 21.8 kB

Release files / monium_sdk-1.2.1.tar.gz

Download URL monium_sdk-1.2.1.tar.gz
Size 10.4 kB
Tags Source
SHA-256 checksum
How to use checksums
11bfc32e2c9ac700f5c2f786e30100724bc6b7af34328759e79b1f6a021fe8d2
BLAKE2b-256 checksum
How to use checksums
480d78bc6a3c20745786b380b3f68b2a24962bab1e67283245decc58596c7d49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / monium_sdk-1.2.1-py3-none-any.whl

Download URL monium_sdk-1.2.1-py3-none-any.whl
Size 11.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e6671fc53891886e06a83ccd30a007b7391b10d26fa23161f2c43628bda5ec65
BLAKE2b-256 checksum
How to use checksums
147ef09813314ac45bab7ebe28c2a02bb6ee89bf8017d6a44cc0422981f2557e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Security for monium-sdk 1.2.1

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