c-helpers


Namec-helpers JSON
Version 1.0.0 PyPI version JSON
download
home_page
SummaryHelpers for c-structs sizes and offsets
upload_time2024-02-25 22:21:41
maintainer
docs_urlNone
author
requires_python>=3.8
licenseMIT
keywords c struct
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # C-Helpers

## Overview

Just like the old saying ["girls just wanna have fun"](https://www.youtube.com/watch?v=PIb6AZdTr-A), so do software
researchers.

Many of us sometimes need to just get the values of some basic C native types. We can look for them in the headers or
just compile a simple C program to print them - which can be quite exhausting each time.

That's where `c-helpers` comes into place - Simply use the `c-const` and `c-struct` directly from your terminal!

For example:

```shell
$ c-struct 'struct dirent'
sizeof(struct dirent): 1048 (0x418)

$ c-struct 'struct dirent' d_ino
sizeof(struct dirent): 1048 (0x418)
offsetof(struct dirent, d_ino): 0 (0x00)
sizeof(struct dirent::d_ino): 8 (0x08)

$ c-const EAGAIN
35 (0x23)
```

## Installation

```shell
python3 -m pip install c-helpers
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "c-helpers",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "doronz88 <doron88@gmail.com>",
    "keywords": "c,struct",
    "author": "",
    "author_email": "doronz88 <doron88@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/9e/c7/052707b354d55dd938af99a003fd054bd9e6f394a17023b099c31ede3fd2/c-helpers-1.0.0.tar.gz",
    "platform": null,
    "description": "# C-Helpers\n\n## Overview\n\nJust like the old saying [\"girls just wanna have fun\"](https://www.youtube.com/watch?v=PIb6AZdTr-A), so do software\nresearchers.\n\nMany of us sometimes need to just get the values of some basic C native types. We can look for them in the headers or\njust compile a simple C program to print them - which can be quite exhausting each time.\n\nThat's where `c-helpers` comes into place - Simply use the `c-const` and `c-struct` directly from your terminal!\n\nFor example:\n\n```shell\n$ c-struct 'struct dirent'\nsizeof(struct dirent): 1048 (0x418)\n\n$ c-struct 'struct dirent' d_ino\nsizeof(struct dirent): 1048 (0x418)\noffsetof(struct dirent, d_ino): 0 (0x00)\nsizeof(struct dirent::d_ino): 8 (0x08)\n\n$ c-const EAGAIN\n35 (0x23)\n```\n\n## Installation\n\n```shell\npython3 -m pip install c-helpers\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Helpers for c-structs sizes and offsets",
    "version": "1.0.0",
    "project_urls": {
        "Bug Reports": "https://github.com/doronz88/c-helpers/issues",
        "Homepage": "https://github.com/doronz88/c-helpers"
    },
    "split_keywords": [
        "c",
        "struct"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f5abbd5f434e10a92269c86c77d87e4a7a6317106445a6163d65ca672436570e",
                "md5": "541a642307bdbc81ff6ea58cf99982fb",
                "sha256": "b81b0a7eb359a09d7d3cfcf59ebf41be3746b944f9f6ae2cf984a9a3af4ea8a3"
            },
            "downloads": -1,
            "filename": "c_helpers-1.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "541a642307bdbc81ff6ea58cf99982fb",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 4845,
            "upload_time": "2024-02-25T22:21:39",
            "upload_time_iso_8601": "2024-02-25T22:21:39.751604Z",
            "url": "https://files.pythonhosted.org/packages/f5/ab/bd5f434e10a92269c86c77d87e4a7a6317106445a6163d65ca672436570e/c_helpers-1.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9ec7052707b354d55dd938af99a003fd054bd9e6f394a17023b099c31ede3fd2",
                "md5": "dbba98653af855917208d2e0ad399124",
                "sha256": "cfa7476b945af5328e9dc86ac68caf3527f3559de933a58be13e6114d3b64260"
            },
            "downloads": -1,
            "filename": "c-helpers-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "dbba98653af855917208d2e0ad399124",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 6518,
            "upload_time": "2024-02-25T22:21:41",
            "upload_time_iso_8601": "2024-02-25T22:21:41.264403Z",
            "url": "https://files.pythonhosted.org/packages/9e/c7/052707b354d55dd938af99a003fd054bd9e6f394a17023b099c31ede3fd2/c-helpers-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-25 22:21:41",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "doronz88",
    "github_project": "c-helpers",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "c-helpers"
}
        
Elapsed time: 3.00203s