$npx skillfedfor your agent

gilknocker

With conditionsPyPI MonitoringReleased Oct 20251.3M downloads / moPlatform wheel

Decision gist · record as of 2026-08-14

platform wheels — gilknocker-0.4.2-cp310-cp310-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl · gilknocker-0.4.2-cp310-cp310-manylinux_2_12_i686.manylinux2010_i686.whl · gilknocker-0.4.2-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
v0.4.2 · released 2025-10-18 · Python >=3.9

Yes, if you need a lightweight, inline GIL contention check for a specific code block and are willing to verify the license. The package has no runtime dependencies, installs cleanly on common platforms, and aligns with py-spy's measurements. However, verify the license status before use in proprietary projects, and be aware that the project is aging (300 days since last release) with modest maintenance activity.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python >= 3.9.
  • Compiled extension; installation depends on wheel availability for your platform.
  • Medium install friction due to compiled wheels for multiple platforms and Python versions (3.10, 3.11+).

License · maintenance · safety

(unclear) — License status is unclear—no SPDX identifier or raw license text provided. Verify licensing before use in proprietary or copyleft-sensitive projects.

last release 2025-10-18 (300 days) · last repo commit 2026-01-07 · 17 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,286,534 downloads/mo, #4,110 on PyPI

Verify before relying

from gilknocker import KnockKnock

knocker = KnockKnock(1_000)
knocker.start()

# ... code to measure ...

metric = knocker.contention_metric  # float 0–1
knocker.stop()
  • Whether the license is open-source, proprietary, or dual-licensed—no license metadata is present in the package.
  • Accuracy and overhead of the contention metric compared to py-spy or other profilers in production workloads.
  • Support for Python versions beyond 3.11 (wheels shown only for 3.10 and 3.11).
Same gist for agents: .md · .json

What it is and what it does

GIL Knocker is a lightweight, quick-and-dirty GIL contention profiler for Python. It works by spawning a background thread that repeatedly tries to acquire the GIL at configurable intervals and measures how long each acquisition takes; longer acquisition times indicate higher contention. The contention metric is a float between 0 and 1 representing roughly how busy the GIL was during the sampling window.

The package is designed for developers who want to quickly check GIL contention within a specific code section without the overhead of a full profiler like py-spy. It exposes three tunable parameters—polling_interval_micros, sampling_interval_micros, and sleeping_interval_micros—to trade off accuracy against performance impact. The monitoring thread runs in the background and can be started, stopped, and queried for the current contention metric; the metric persists after stop() is called.

Use it for

  • Identify whether a slow code section is GIL-bound or CPU-bound by measuring contention during execution.
  • Quick profiling of multi-threaded Python code to spot lock contention without running a full external profiler.
  • Benchmark the impact of GIL-heavy operations on concurrent workloads by sampling contention before and after code changes.
  • Monitor GIL contention in production or test environments with minimal overhead by tuning polling intervals.
  • Validate that async or C-extension refactoring actually reduced GIL pressure in a specific code path.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need a lightweight, inline GIL contention check for a specific code block and are willing to verify the license.

The package has no runtime dependencies, installs cleanly on common platforms, and aligns with py-spy's measurements. However, verify the license status before use in proprietary projects, and be aware that the project is aging (300 days since last release) with modest maintenance activity.

Install

gilknocker on PyPI

Before you install

Medium install friction due to compiled wheels for multiple platforms and Python versions (3.10, 3.11+). No runtime dependencies. Last release 300 days ago; repository is active but aging, with modest maintenance signals.

Requires Python >= 3.9. Compiled extension; installation depends on wheel availability for your platform.

License in practice

License status is unclear—no SPDX identifier or raw license text provided. Verify licensing before use in proprietary or copyleft-sensitive projects.

Quickstart

from gilknocker import KnockKnock

knocker = KnockKnock(1_000)
knocker.start()

# ... code to measure ...

metric = knocker.contention_metric  # float 0–1
knocker.stop()

Verify before relying

  • Whether the license is open-source, proprietary, or dual-licensed—no license metadata is present in the package.
  • Accuracy and overhead of the contention metric compared to py-spy or other profilers in production workloads.
  • Support for Python versions beyond 3.11 (wheels shown only for 3.10 and 3.11).

Package facts

LicenseNot declared unclear
Python supportSupports the current Python release >=3.9
Install frictionMedium. Platform-specific wheel
Runtime dependenciesNone
MaintenanceAging 300 days since the last release
Last repo commit
First released
Downloads1,286,534 / month, #4,110 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14

Evidence: gilknocker-0.4.2-cp310-cp310-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl; gilknocker-0.4.2-cp310-cp310-manylinux_2_12_i686.manylinux2010_i686.whl; gilknocker-0.4.2-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl; gilknocker-0.4.2-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl; gilknocker-0.4.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; gilknocker-0.4.2-cp310-cp310-manylinux_2_24_aarch64.whl; gilknocker-0.4.2-cp310-cp310-manylinux_2_24_armv7l.whl; gilknocker-0.4.2-cp310-cp310-manylinux_2_24_i686.whl; gilknocker-0.4.2-cp310-cp310-manylinux_2_24_ppc64le.whl; gilknocker-0.4.2-cp310-cp310-manylinux_2_24_s390x.whl; gilknocker-0.4.2-cp310-cp310-manylinux_2_24_x86_64.whl; gilknocker-0.4.2-cp310-cp310-win32.whl; gilknocker-0.4.2-cp310-cp310-win_amd64.whl; gilknocker-0.4.2-cp311-cp311-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl; gilknocker-0.4.2-cp311-cp311-manylinux_2_12_i686.manylinux2010_i686.whl; gilknocker-0.4.2-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl; gilknocker-0.4.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; gilknocker-0.4.2-cp311-cp311-manylinux_2_24_aarch64.whl; gilknocker-0.4.2-cp311-cp311-manylinux_2_24_armv7l.whl; gilknocker-0.4.2-cp311-cp311-manylinux_2_24_i686.whl

Tags

Capabilities
GIL contention measurementpython GIL monitoringmeasure GIL lock timeGIL profiling toolthread lock contention detectorGIL performance analysispython concurrency bottleneck
Topics
gil-profilingperformance-analysisconcurrency-debugging
PyPI keywords
GIL

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “GIL contention measurement”

  • gilknockerMeasures GIL contention within a specific code block by spawning a…
  • pyromarkpyromark is a CommonMark-compliant Markdown parser that converts…
  • ssh-pythonPython bindings to the libssh C library for SSH client operations,…

Give your agent the search over MCP, or paste the wish link into any chat.

More Monitoring packages

tqdm Worth it
PyPI · Libraries · released Jul 2026

Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.

copyleftpure Python · 3.8+
648.6Mdownloads / mo
opentelemetry-semantic-conventions Worth it
PyPI · Monitoring · released Jul 2026

Provides generated Python code for OpenTelemetry semantic conventions, enabling standardized attribute naming and constant definitions for instrumentation and telemetry collection.

Install it if you are using OpenTelemetry and want to follow semantic conventions correctly.

Apache-2.0pure Python · 3.10+
542.9Mdownloads / mo
opentelemetry-sdk Worth it
PyPI · Monitoring · released Jul 2026

Provides the reference implementation of the OpenTelemetry API for collecting and exporting traces, metrics, and logs from Python applications.

Apache-2.0pure Python · 3.10+
521.8Mdownloads / mo
opentelemetry-api With conditions
PyPI · Monitoring · released Jul 2026

Provides the abstract API and interfaces for OpenTelemetry instrumentation in Python, defining how to emit traces, metrics, and logs without tying code to a specific SDK implementation.

Apache-2.0pure Python · 3.10+
463.8Mdownloads / mo
opentelemetry-exporter-otlp-proto-http Worth it
PyPI · Monitoring · released Jul 2026

Exports OpenTelemetry observability data to an OpenTelemetry Collector using Protobuf-encoded messages over HTTP.

Install it if you are using OpenTelemetry in Python and need to send data to a Collector over HTTP.

Apache-2.0pure Python · 3.10+
409.9Mdownloads / mo
opentelemetry-instrumentation Worth it
PyPI · Monitoring · released Jul 2026

Provides automatic instrumentation commands and programmatic APIs to inject distributed tracing into Python applications without code changes, detecting and instrumenting packages used by your program.

Install it if you need distributed tracing without code changes and have compatible instrumented packages in your environment.

Apache-2.0pure Python · 3.10+
393.5Mdownloads / mo

See also py-spy · fasteners · pyroscope-io · aiomultiprocess · celery_once · fastrlock · pytest-codspeed · redlock-py · timeloop · pyinstrument