Skip to main content

Low-impact Python GC object dump producer for pygco

Project description

pygco-dump

pygco-dump writes low-impact Python GC object dumps in the pygco-dump-jsonl v1 format.

from pathlib import Path
from pygco_dump import write_gc_dump

with Path("heap.jsonl.gz").open("wb") as file:
    write_gc_dump(file)

FastAPI:

from fastapi import FastAPI
from pygco_dump.fastapi import gc_heap_dump_route

app = FastAPI()
app.add_api_route("/debug/gc-heap-dump", gc_heap_dump_route(), methods=["GET"])

Framework-agnostic integrations only need a binary file-like object. See examples/ for plain file, WSGI, ASGI, and FastAPI variants.

For Celery workers, signal-triggered dumps, and multi-process integration guidance, see ../../docs/producer-integration.md.

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

pygco_dump-0.1.1.tar.gz (28.8 kB view details)

Uploaded Source

Built Distribution

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

pygco_dump-0.1.1-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file pygco_dump-0.1.1.tar.gz.

File metadata

  • Download URL: pygco_dump-0.1.1.tar.gz
  • Upload date:
  • Size: 28.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pygco_dump-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6fb30db2db24a51a317af5a08a6c635a8c028d5d4d70938cc9b5b405b500e4a7
MD5 c9adb8fe5d38944ae1827890a8db7824
BLAKE2b-256 565caf405fb4cecf3c8f765abde48952b1c0055cb39c323e1c7aec840c313be1

See more details on using hashes here.

Provenance

The following attestation bundles were made for pygco_dump-0.1.1.tar.gz:

Publisher: publish-python.yml on ivan-94/py-gc-objects-analyze

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pygco_dump-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pygco_dump-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pygco_dump-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3a86f6553188e03050020189fcf478ebdc9a9699b5159357a1d5f5e9c4de700d
MD5 34fdc2415ce4189cd3ddee7d33ea2fe1
BLAKE2b-256 18d6e989a5ae9ca709401cffc34e16963370c9b0bff17b8d526ac006afd5efeb

See more details on using hashes here.

Provenance

The following attestation bundles were made for pygco_dump-0.1.1-py3-none-any.whl:

Publisher: publish-python.yml on ivan-94/py-gc-objects-analyze

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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