czv


Nameczv JSON
Version 0.0.1 PyPI version JSON
download
home_pageNone
SummaryPython library for performing CSV-related functions for data engineering and analysis.
upload_time2024-06-21 00:21:37
maintainerNone
docs_urlNone
authorMueez Khan
requires_python>=3.8
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # czv-python

Python library for [czv](https://github.com/rzmk/czv). czv is a library of CSV-related operations for data engineering and analysis tasks.

## Links

-   czv GitHub repository: <https://github.com/rzmk/czv>
-   Rust: [crates.io/crates/czv](https://crates.io/crates/czv) ([source code](https://github.com/rzmk/czv/tree/main/czv))
-   WebAssembly (JavaScript/TypeScript): [npmjs.com/package/czv-wasm](https://www.npmjs.com/package/czv-wasm) ([source code](https://github.com/rzmk/czv/tree/main/czv-wasm))
-   Python: [pypi.org/project/czv](https://pypi.org/project/czv/) ([source code](https://github.com/rzmk/czv/tree/main/czv-python))

## Installation and example

To install `czv`, run:

```bash
pip install czv
```

Or use [`uv pip`](https://github.com/astral-sh/uv) instead of `pip`.

Let's say we want to print the total number of rows in a 4x3 CSV file `fruits.csv` including the header row:

```python
import czv

output = czv.row_count(file_path="fruits.csv", include_header_row=True)

print(output) # 4
```

## Development

You'll need to have [maturin](https://github.com/PyO3/maturin/) and [uv](https://github.com/astral-sh/uv) installed. Set up a local virtual environment in the `czv-python` folder by running:

```bash
uv venv
```

Make sure to activate the virtual environment (instructions should be provided in your terminal after running the previous command).

Once you've activated the virtual environment, install dependencies by running:

```bash
uv pip install -r requirements.txt
```

### Build package in local environment

```bash
maturin develop --uv --release
```

### Run tests

```bash
pytest
```

### Publishing

To publish to pypi.org run:

```bash
maturin publish
```


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "czv",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": null,
    "author": "Mueez Khan",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/88/ee/d7888580e04423848cd242b166dc39160612ec19f589e3287c8b45d0e32c/czv-0.0.1.tar.gz",
    "platform": null,
    "description": "# czv-python\n\nPython library for [czv](https://github.com/rzmk/czv). czv is a library of CSV-related operations for data engineering and analysis tasks.\n\n## Links\n\n-   czv GitHub repository: <https://github.com/rzmk/czv>\n-   Rust: [crates.io/crates/czv](https://crates.io/crates/czv) ([source code](https://github.com/rzmk/czv/tree/main/czv))\n-   WebAssembly (JavaScript/TypeScript): [npmjs.com/package/czv-wasm](https://www.npmjs.com/package/czv-wasm) ([source code](https://github.com/rzmk/czv/tree/main/czv-wasm))\n-   Python: [pypi.org/project/czv](https://pypi.org/project/czv/) ([source code](https://github.com/rzmk/czv/tree/main/czv-python))\n\n## Installation and example\n\nTo install `czv`, run:\n\n```bash\npip install czv\n```\n\nOr use [`uv pip`](https://github.com/astral-sh/uv) instead of `pip`.\n\nLet's say we want to print the total number of rows in a 4x3 CSV file `fruits.csv` including the header row:\n\n```python\nimport czv\n\noutput = czv.row_count(file_path=\"fruits.csv\", include_header_row=True)\n\nprint(output) # 4\n```\n\n## Development\n\nYou'll need to have [maturin](https://github.com/PyO3/maturin/) and [uv](https://github.com/astral-sh/uv) installed. Set up a local virtual environment in the `czv-python` folder by running:\n\n```bash\nuv venv\n```\n\nMake sure to activate the virtual environment (instructions should be provided in your terminal after running the previous command).\n\nOnce you've activated the virtual environment, install dependencies by running:\n\n```bash\nuv pip install -r requirements.txt\n```\n\n### Build package in local environment\n\n```bash\nmaturin develop --uv --release\n```\n\n### Run tests\n\n```bash\npytest\n```\n\n### Publishing\n\nTo publish to pypi.org run:\n\n```bash\nmaturin publish\n```\n\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Python library for performing CSV-related functions for data engineering and analysis.",
    "version": "0.0.1",
    "project_urls": {
        "Source Code": "https://github.com/rzmk/czv"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "5c27a76158e954aa5796610a3b26e9a31b1d307a988b882ee97f8fbfa469be17",
                "md5": "34b53ee62734cac053ce2734afa38b11",
                "sha256": "0a58673c5d1c9ae88cba1e3e25cd6a2dec1db1e759ff86ad11ed96a3bdb2fbf4"
            },
            "downloads": -1,
            "filename": "czv-0.0.1-cp310-cp310-manylinux_2_34_x86_64.whl",
            "has_sig": false,
            "md5_digest": "34b53ee62734cac053ce2734afa38b11",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.8",
            "size": 258803,
            "upload_time": "2024-06-21T00:21:32",
            "upload_time_iso_8601": "2024-06-21T00:21:32.871618Z",
            "url": "https://files.pythonhosted.org/packages/5c/27/a76158e954aa5796610a3b26e9a31b1d307a988b882ee97f8fbfa469be17/czv-0.0.1-cp310-cp310-manylinux_2_34_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "88eed7888580e04423848cd242b166dc39160612ec19f589e3287c8b45d0e32c",
                "md5": "ba0de0fe1382bd8c491e77eb82c02b35",
                "sha256": "b28c6752d9da9f2e44487f2c58262244a5b01d924f7fff0d35eac210784dc8ba"
            },
            "downloads": -1,
            "filename": "czv-0.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "ba0de0fe1382bd8c491e77eb82c02b35",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 1216050,
            "upload_time": "2024-06-21T00:21:37",
            "upload_time_iso_8601": "2024-06-21T00:21:37.181540Z",
            "url": "https://files.pythonhosted.org/packages/88/ee/d7888580e04423848cd242b166dc39160612ec19f589e3287c8b45d0e32c/czv-0.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-21 00:21:37",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "rzmk",
    "github_project": "czv",
    "github_not_found": true,
    "lcname": "czv"
}
        
Elapsed time: 0.67211s