Metadata-Version: 2.3
Name: ctypespec
Version: 0.1.4
Summary: Define, manage, and convert C types in Python via ctypes, from AST or C declarations.
License: MIT
Author: kris.wang
Author-email: wenhom.wang@gmail.com
Requires-Python: >=3.10,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Description-Content-Type: text/markdown

# 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:

```bash
pip install ctypespec
```

