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.9.tar.gz (12.7 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.9-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ctypespec-0.1.9.tar.gz
Algorithm Hash digest
SHA256 a162325b7d1d41f5114bba21aa440f77927e587ec77c55cd70994ad3953bd2f8
MD5 6c5a0693cccea0d961c6b43c64956dd8
BLAKE2b-256 1a67ebd3e24fdc5cb536aebf4c0d78fcaa48b49e046739a57b140f25ac8e5b81

See more details on using hashes here.

Provenance

The following attestation bundles were made for ctypespec-0.1.9.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.9-py3-none-any.whl.

File metadata

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

File hashes

Hashes for ctypespec-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 eb5d3d974e1b5ceee307afda43a1371c9cf606668fc31f17e6b61f2ebb452a36
MD5 216cff82cd012a1ea199511c1ba274af
BLAKE2b-256 5a46d9231e96676d1d7620c6088df92de25631b0e2cb6dc21f3e2c025ee5b9af

See more details on using hashes here.

Provenance

The following attestation bundles were made for ctypespec-0.1.9-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