Skip to main content

Define, manage, and convert C types in Python via ctypes, from AST or C declarations.

Project description

ctypespec

ctypespec is a Python utility that parses C language type definitions and automatically generates equivalent ctypes structures. It is useful when integrating C libraries into Python projects through the ctypes module.

Features

  • Parses C type definitions, including structs and typedefs.
  • Converts C declarations to Python ctypes classes.
  • Utilizes AST parsing and Clang tooling for accurate analysis.

Installation

Install from source using pip:

pip install ctypespec

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

ctypespec-0.1.1.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

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

ctypespec-0.1.1-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ctypespec-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c6e8716575d26d0d575698c6de4bbb14a81a7fe691712bd3e3d1a1b09a7e96fc
MD5 0ce7b77cfa4f619765caa07f3c72ab67
BLAKE2b-256 c536b50e66fee9192bf13eacca2d2a0b1cfc8e2399d8761864b53de5acfc21a7

See more details on using hashes here.

Provenance

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

Publisher: python-publish.yml on Hom-Wang/ctypespec

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

File details

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

File metadata

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

File hashes

Hashes for ctypespec-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3f6a102d02659f78b7fa9809b8ca4a8b764d418b6caa013a58dee3aacb59fbec
MD5 dab7733cd3f7b32f6dbfa01a97bc45f0
BLAKE2b-256 5b415fb718e7c1f949b9e5a142b750ca907c02a53816d60988c4aea1aa4b8130

See more details on using hashes here.

Provenance

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

Publisher: python-publish.yml on Hom-Wang/ctypespec

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