Skip to main content

grow-datadog-logs (Python)

Python SDK for Datadog Log Management by Grow Codes. Unofficial and community maintained; "Datadog Log Management" is a trademark of Datadog, Inc. Not affiliated with or endorsed by Datadog.

pip install grow-datadog-logs
import grow_datadog_logs as sdk

# Reads DD_API_KEY, DD_APP_KEY, DD_SITE, DD_SERVICE, DD_ENV, DD_TAGS, GROW_DATADOG_LOGS_* ...
with sdk.DatadogLogsClient.from_env() as client:
    assert client.validate_api_key()
    logs = client.log_client(resource={"service.name": "checkout"})  # batching, gzip
    logs.logger().info("user signed in", {"user": {"id": 42}})
    logs.flush(10)

    query = client.query()  # needs the application key
    page = query.search_logs('service:checkout "signed in"', from_="now-1h", limit=50)
    counts = query.aggregate_logs(sdk.DatadogCompute("count"), [sdk.DatadogGroupBy("status")])
# close() flushed every log client

The async client has the same methods:

import asyncio
from grow_datadog_logs import AsyncDatadogLogsClient

async def main() -> None:
    async with AsyncDatadogLogsClient.from_env() as client:
        print(await client.health())

asyncio.run(main())
  • Python 3.10 or newer, typed (py.typed), httpx based, environment proxies ignored unless configured.
  • Retries with full-jitter backoff and Retry-After, connect/request/total timeouts, cancellation, hooks and a silent-by-default logging logger named grow_datadog_logs.
  • Credentials are wrapped in Secret and never appear in repr(), logs or error messages.
  • grow_datadog_logs.testing ships in-memory fakes and the conformance runner.

Documentation: https://grow-codes-packages.github.io/datadog-logs/ · Source: https://github.com/grow-codes-packages/datadog-logs · Licence: Apache-2.0

Metadata

Release files for grow-datadog-logs 0.1.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 grow-datadog-logs 0.1.1
File Size Uploaded Provenance Actions
grow_datadog_logs-0.1.1.tar.gz 127.3 kB Without provenance Details for grow_datadog_logs-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for grow-datadog-logs 0.1.1
File Interpreter ABI Platform Actions
grow_datadog_logs-0.1.1-py3-none-any.whl Python 3 none any Details for grow_datadog_logs-0.1.1-py3-none-any.whl

Total release size: 220.5 kB

Release files / grow_datadog_logs-0.1.1.tar.gz

Download URL grow_datadog_logs-0.1.1.tar.gz
Size 127.3 kB
Tags Source
SHA-256 checksum
How to use checksums
1eca226bdf6275667a0a9f95d581bdbc9bc52f7c60b2fdde8b2a5a590c9ecdfa
BLAKE2b-256 checksum
How to use checksums
e588e936d995beb05f557fb9af7ad875961d20ebd7d886cc7e31c6ff94a137b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / grow_datadog_logs-0.1.1-py3-none-any.whl

Download URL grow_datadog_logs-0.1.1-py3-none-any.whl
Size 93.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dd9edcc3d14e6cbbf84f9b45a4b224b8610dfa1ced625fd0e05400c3f456c32d
BLAKE2b-256 checksum
How to use checksums
672c4ca7cf411b802d59f4babd1b1c0676c9e8ee94d395752e87dd585661a965
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for grow-datadog-logs 0.1.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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

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