Metadata-Version: 2.4
Name: ctypespec
Version: 0.1.9
Summary: Define, manage, and convert C types in Python via ctypes, from AST or C declarations.
Author-email: "kris.wang" <wenhom.wang@gmail.com>
License-Expression: MIT
License-File: LICENSE
Requires-Python: >=3.10
Provides-Extra: dev
Requires-Dist: pandas>=2.3.3; extra == 'dev'
Requires-Dist: rtoml>=0.12.0; extra == 'dev'
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
```
