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.0.tar.gz (6.7 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.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pygco_dump-0.1.0.tar.gz
  • Upload date:
  • Size: 6.7 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.0.tar.gz
Algorithm Hash digest
SHA256 68ff0085562ec5c26b58c1f7e8b34201a0f080ae6efab90fed4bcc16c9273ad2
MD5 b4f903c21c267fd703e9486ddcffa590
BLAKE2b-256 9877d16af4ab927c9c24af5faf5de7423f411985b4948f09fa7cae6ea6a1336f

See more details on using hashes here.

Provenance

The following attestation bundles were made for pygco_dump-0.1.0.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.0-py3-none-any.whl.

File metadata

  • Download URL: pygco_dump-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a6b75f7ab722e45c1f89c31f797347baf04919f15aca8e60b52997ff396d3efd
MD5 56369f2ba4142a05cf8ac03f9b3b86ed
BLAKE2b-256 3a185dee78240edb74266e1268a20580d40498a5fc869eceda79bcb1abc4ad0a

See more details on using hashes here.

Provenance

The following attestation bundles were made for pygco_dump-0.1.0-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