Skip to main content

No project description provided

Project description

Ziggy Pydust

A framework for writing and packaging native Python extension modules written in Zig.

Actions Package version Python version License


Documentation: https://pydust.fulcrum.so/latest

API: https://pydust.fulcrum.so/latest/zig

Source Code: https://github.com/fulcrum-so/ziggy-pydust

Template: https://github.com/fulcrum-so/ziggy-pydust-template


Ziggy Pydust is a framework for writing and packaging native Python extension modules written in Zig.

  • Package Python extension modules written in Zig.
  • Pytest plugin to discover and run Zig tests.
  • Comptime argument wrapping / unwrapping for interop with native Zig types.
const py = @import("pydust");

pub fn fibonacci(args: struct { n: u64 }) u64 {
    if (args.n < 2) return args.n;

    var sum: u64 = 0;
    var last: u64 = 0;
    var curr: u64 = 1;
    for (1..args.n) {
        sum = last + curr;
        last = curr;
        curr = sum;
    }
    return sum;
}

comptime {
    py.rootmodule(@This());
}

Compatibility

Pydust supports:

Please reach out if you're interested in helping us to expand compatibility.

Getting Started

Pydust docs can be found here. Zig documentation (beta) can be found here.

There is also a template repository including Poetry build, Pytest and publishing from Github Actions.

Contributing

We welcome contributions! Pydust is in its early stages so there is lots of low hanging fruit when it comes to contributions.

  • Assist other Pydust users with GitHub issues or discussions.
  • Suggest or implement features, fix bugs, fix performance issues.
  • Improve our documentation.
  • Write articles or other content demonstrating how you have used Pydust.

License

Pydust is released under the Apache-2.0 license.

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

ziggy_pydust-0.26.0.tar.gz (59.0 kB view details)

Uploaded Source

Built Distribution

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

ziggy_pydust-0.26.0-py3-none-any.whl (86.5 kB view details)

Uploaded Python 3

File details

Details for the file ziggy_pydust-0.26.0.tar.gz.

File metadata

  • Download URL: ziggy_pydust-0.26.0.tar.gz
  • Upload date:
  • Size: 59.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ziggy_pydust-0.26.0.tar.gz
Algorithm Hash digest
SHA256 21644420f550705dbe418ad6daa8c4cec933adb67e8a129b2c69329554ca9c4d
MD5 bf3264532095e61e43308aa4a7c4cde4
BLAKE2b-256 363d676c76e1374452469674f53af4c2f0a00eb7f9e01b22ef471bb4d2c437d0

See more details on using hashes here.

Provenance

The following attestation bundles were made for ziggy_pydust-0.26.0.tar.gz:

Publisher: publish.yml on spiraldb/ziggy-pydust

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

File details

Details for the file ziggy_pydust-0.26.0-py3-none-any.whl.

File metadata

  • Download URL: ziggy_pydust-0.26.0-py3-none-any.whl
  • Upload date:
  • Size: 86.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ziggy_pydust-0.26.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4ce5c4fd08f764290cb25891dc330f45b08c04208ead0838d177da6e64e0c2a5
MD5 6cd77bb7d33a47645ddb09a438b750bf
BLAKE2b-256 5ab8995f8eec192a6892407e3f66217fd6f56e8632e1593caba185ccf59f92df

See more details on using hashes here.

Provenance

The following attestation bundles were made for ziggy_pydust-0.26.0-py3-none-any.whl:

Publisher: publish.yml on spiraldb/ziggy-pydust

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