Skip to main content

Anosys.ai

AnoSys SDK Core

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

Installation

Requires Python 3.10 or later.

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"
setup_api()

# 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"}
})

Shared telemetry mapping

Core 1.1.0 adds extract_genai_span_info and CLAUDE_KEY_MAPPING for Anthropic and Claude Agent SDK spans. It also provides client-side field encryption shared by the Python integrations.

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

Content controls

See the content-controls reference for encryption coverage, default columns, size limits, and limitations. Encryption is opt-in and applies to selected string fields; it does not encrypt the complete record.

Collection follows one level for every AnoSys SDK: ANOSYS_COLLECTION_LEVEL=full (default), metadata (no prompts, completions or tool data) or off, a project .anosys file can only lower it, and ANOSYS_DISABLE=1 stops all sending. Without an API key nothing is sent. Telemetry is sent in the background and never delays your calls. See the data-collection policy.

Metadata

Release files for anosys-sdk-core 2.2.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 anosys-sdk-core 2.2.0
File Size Uploaded Provenance Actions
anosys_sdk_core-2.2.0.tar.gz 81.0 kB Without provenance Details for anosys_sdk_core-2.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for anosys-sdk-core 2.2.0
File Interpreter ABI Platform Actions
anosys_sdk_core-2.2.0-py3-none-any.whl Python 3 none any Details for anosys_sdk_core-2.2.0-py3-none-any.whl

Total release size: 146.2 kB

Release files / anosys_sdk_core-2.2.0.tar.gz

Download URL anosys_sdk_core-2.2.0.tar.gz
Size 81.0 kB
Tags Source
SHA-256 checksum
How to use checksums
5a4827b23df62658138a80b856ae4808522afefd16a4c0f5c60a868ae0093929
BLAKE2b-256 checksum
How to use checksums
a859993914d9773695d42ca54a76c3edd1fd523f53b1014c30443fb3aaee1e9d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / anosys_sdk_core-2.2.0-py3-none-any.whl

Download URL anosys_sdk_core-2.2.0-py3-none-any.whl
Size 65.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1e817f5caee023734e510581f4c12f0083213ba8c7556f2ab86b8c0a51cfdefd
BLAKE2b-256 checksum
How to use checksums
d73a75a37b63fc9ed7bb255d24037b724a64a0df0d8964f1f86daabc3cd4873b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for anosys-sdk-core 2.2.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