Skip to main content

Core utilities for AnoSys SDK - AI observability and monitoring

Project description

AnoSys SDK Core

Core utilities for the AnoSys SDK - shared functionality for all AnoSys integrations.

Installation

pip install anosys-sdk-core

Usage

Function Decorators

from anosys_sdk_core import anosys_logger, anosys_raw_logger, setup_api
import os

os.environ["ANOSYS_API_KEY"] = "your-api-key"

# Decorator for automatic logging
@anosys_logger(source="my_app")
def my_function(data):
    return process(data)

# Async functions work too
@anosys_logger(source="my_app.async")
async def my_async_function(data):
    return await async_process(data)

# Raw logging
anosys_raw_logger({
    "event": "custom_event",
    "data": {"key": "value"}
})

API Reference

  • anosys_logger(source=None) - Decorator to log function calls
  • anosys_raw_logger(data) - Log arbitrary data directly
  • setup_api(path=None) - Configure API endpoint

License

Apache 2.0

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

anosys_sdk_core-1.0.2.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

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

anosys_sdk_core-1.0.2-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

Details for the file anosys_sdk_core-1.0.2.tar.gz.

File metadata

  • Download URL: anosys_sdk_core-1.0.2.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for anosys_sdk_core-1.0.2.tar.gz
Algorithm Hash digest
SHA256 6d539525f5ebc2930e6bfb85eeff3d42063b303721d02e8a339635082e687905
MD5 18e43be6eea90b16e2e6c49746b97f05
BLAKE2b-256 b60d81cb46ced902303b310263e32a36c4edea781004d3e77a93432d73ae168e

See more details on using hashes here.

File details

Details for the file anosys_sdk_core-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for anosys_sdk_core-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e314912cb140eb190ccb5e510a5dfbf2834743dda535c7a641ec64cc5576f842
MD5 b2e5567a5314457f1d4000329ab95657
BLAKE2b-256 429120f278612d93c7beff39063503ae1158784480bff956a0935d22a6ec0cd4

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