ctypespec


Namectypespec JSON
Version 0.1.4 PyPI version JSON
download
home_pageNone
SummaryDefine, manage, and convert C types in Python via ctypes, from AST or C declarations.
upload_time2025-07-16 10:37:22
maintainerNone
docs_urlNone
authorkris.wang
requires_python<4.0,>=3.10
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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
```


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "ctypespec",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.10",
    "maintainer_email": null,
    "keywords": null,
    "author": "kris.wang",
    "author_email": "wenhom.wang@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/13/e6/04cba731d59d58df0634b35862da66f6d01e42a3d4f8a4420fc3a88ab23d/ctypespec-0.1.4.tar.gz",
    "platform": null,
    "description": "# ctypespec\n\n**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.\n\n## Features\n\n-   Parses C type definitions, including structs and typedefs.\n-   Converts C declarations to Python `ctypes` classes.\n-   Utilizes AST parsing and Clang tooling for accurate analysis.\n\n## Installation\n\nInstall from source using pip:\n\n```bash\npip install ctypespec\n```\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Define, manage, and convert C types in Python via ctypes, from AST or C declarations.",
    "version": "0.1.4",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "5b91f6ba0bae809586fb74e7a6f6a9ac4b38144e7eb060a0b44f3f83d3ad9837",
                "md5": "1bbbd0a94b8f79bde04dd3e0c3fb9d1d",
                "sha256": "b14823da491d631be1235849f340662c9b6b6f949b5f5750af08b33ee459599a"
            },
            "downloads": -1,
            "filename": "ctypespec-0.1.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1bbbd0a94b8f79bde04dd3e0c3fb9d1d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.10",
            "size": 11904,
            "upload_time": "2025-07-16T10:37:21",
            "upload_time_iso_8601": "2025-07-16T10:37:21.232743Z",
            "url": "https://files.pythonhosted.org/packages/5b/91/f6ba0bae809586fb74e7a6f6a9ac4b38144e7eb060a0b44f3f83d3ad9837/ctypespec-0.1.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "13e604cba731d59d58df0634b35862da66f6d01e42a3d4f8a4420fc3a88ab23d",
                "md5": "201ff6a34967befc546a5f6e4cc4305c",
                "sha256": "5d63d14809f25e2a960f112af0ab730320e1d6f456b7c17a6cbb8075b8fdf43c"
            },
            "downloads": -1,
            "filename": "ctypespec-0.1.4.tar.gz",
            "has_sig": false,
            "md5_digest": "201ff6a34967befc546a5f6e4cc4305c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.10",
            "size": 11047,
            "upload_time": "2025-07-16T10:37:22",
            "upload_time_iso_8601": "2025-07-16T10:37:22.525613Z",
            "url": "https://files.pythonhosted.org/packages/13/e6/04cba731d59d58df0634b35862da66f6d01e42a3d4f8a4420fc3a88ab23d/ctypespec-0.1.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-16 10:37:22",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "ctypespec"
}
        
Elapsed time: 2.06653s