Skip to main content

wayward-eagle

Lowers the cognitive complexity (SonarSource's metric, as clang-tidy's readability-function-cognitive-complexity counts it) of C function bodies held as statement trees, keeping what each function does. Each rewrite is made only where it lowers the cost.

from wayward_eagle import Function, reduced

pieces, sections, temps = reduced(body, "f", Function(params=["a"], local={"v1", "v2"}, void=True))
for piece in pieces:
    ...  # print each function: piece.name, piece.args, piece.items, piece.ret

Install: pip install wayward-eagle. Development: pip install -e .[dev], then pytest -n auto --cov=wayward_eagle.

Metadata

Release files for wayward-eagle 0.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 wayward-eagle 0.2.0
File Size Uploaded Provenance Actions
wayward_eagle-0.2.0.tar.gz 17.5 kB With provenance Details for wayward_eagle-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for wayward-eagle 0.2.0
File Interpreter ABI Platform Actions
wayward_eagle-0.2.0-py3-none-any.whl Python 3 none any Details for wayward_eagle-0.2.0-py3-none-any.whl

Total release size: 32.2 kB

Release files / wayward_eagle-0.2.0.tar.gz

Download URL wayward_eagle-0.2.0.tar.gz
Size 17.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4950f6de8e2dc8c1e54a0a7c056fa172472093b6ae381cc3a3bb5f3cdfa0577d
BLAKE2b-256 checksum
How to use checksums
6539f49d5a06ac86c309d8cf8e726e97dca78a7b6b56b28b947d1415b924fef9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Release files / wayward_eagle-0.2.0-py3-none-any.whl

Download URL wayward_eagle-0.2.0-py3-none-any.whl
Size 14.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3269c5af78f3987edfeec0a81b83116f2c172410bbefce4f8610b624234fdb99
BLAKE2b-256 checksum
How to use checksums
48db30561f52f622b463507268dca3939d9ae55da6e50cec23a0802eb15eef41
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Security for wayward-eagle 0.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for wayward_eagle-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

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