csv-deta


Namecsv-deta JSON
Version 0.5.1a34 PyPI version JSON
download
home_page
SummaryLightweight tool to upload and download CSV data files into\from Deta Base
upload_time2023-01-07 12:26:27
maintainer
docs_urlNone
authorJL Connor
requires_python>=3
licenseApache Software License 2.0
keywords csv db database deta cli detabase upload download backup
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ![Lines of code](https://img.shields.io/tokei/lines/github/ablaternae/py-csv-deta)
[![PyPI version](https://badge.fury.io/py/csv-deta.svg)](https://badge.fury.io/py/csv-deta)
![Downloads](https://img.shields.io/pypi/dm/csv-deta)
[![Statistic](https://pepy.tech/badge/csv-deta/week)](https://pepy.tech/project/csv-deta)
[![GitHub](https://img.shields.io/github/license/ablaternae/py-csv-deta)](https://github.com/ablaternae/py-csv-deta/blob/trunk/LICENSE.md)

# ALPHA version! work in progress

## Lightweight utility to upload and download CSV files data into\from Deta Base

* it's based on [csvtodeta](https://pypi.org/project/csvtodeta/) tool by [@Fredy Somy](https://github.com/fredysomy/CsvToDeta)
* improvements:
  * more options
  * upload about twice as fast ([put() method is used](https://docs.deta.sh/docs/base/sdk#using))
  * bulk load: up 25 \ down 1000 rows per iteration

### install
```bash
pip install -U csv-deta
```
### use
```bash
csv-deta upload PATH_TO_CSV_FILE [--dbname DETA_DB_NAME] [--project DETA_PROJECT_KEY] 
```
by default `DETA_DB_NAME` param will be created from `PATH_TO_CSV_FILE` filename without ext, 
and `DETA_PROJECT_KEY` -- from the same name's environment variable; 
for other options see also `csv-deta -h`

### todo
* [x] download data
* [x] upload speed optimization
* [ ] async transfer
* [ ] validate source csv (?)

----
enjoy, star it, and donate

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "csv-deta",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3",
    "maintainer_email": "",
    "keywords": "csv,db,database,deta,cli,detabase,upload,download,backup",
    "author": "JL Connor",
    "author_email": "",
    "download_url": "",
    "platform": null,
    "description": "![Lines of code](https://img.shields.io/tokei/lines/github/ablaternae/py-csv-deta)\r\n[![PyPI version](https://badge.fury.io/py/csv-deta.svg)](https://badge.fury.io/py/csv-deta)\r\n![Downloads](https://img.shields.io/pypi/dm/csv-deta)\r\n[![Statistic](https://pepy.tech/badge/csv-deta/week)](https://pepy.tech/project/csv-deta)\r\n[![GitHub](https://img.shields.io/github/license/ablaternae/py-csv-deta)](https://github.com/ablaternae/py-csv-deta/blob/trunk/LICENSE.md)\r\n\r\n# ALPHA version! work in progress\r\n\r\n## Lightweight utility to upload and download CSV files data into\\from Deta Base\r\n\r\n* it's based on [csvtodeta](https://pypi.org/project/csvtodeta/) tool by [@Fredy Somy](https://github.com/fredysomy/CsvToDeta)\r\n* improvements:\r\n  * more options\r\n  * upload about twice as fast ([put() method is used](https://docs.deta.sh/docs/base/sdk#using))\r\n  * bulk load: up 25 \\ down 1000 rows per iteration\r\n\r\n### install\r\n```bash\r\npip install -U csv-deta\r\n```\r\n### use\r\n```bash\r\ncsv-deta upload PATH_TO_CSV_FILE [--dbname DETA_DB_NAME] [--project DETA_PROJECT_KEY] \r\n```\r\nby default `DETA_DB_NAME` param will be created from `PATH_TO_CSV_FILE` filename without ext, \r\nand `DETA_PROJECT_KEY` -- from the same name's environment variable; \r\nfor other options see also `csv-deta -h`\r\n\r\n### todo\r\n* [x] download data\r\n* [x] upload speed optimization\r\n* [ ] async transfer\r\n* [ ] validate source csv (?)\r\n\r\n----\r\nenjoy, star it, and donate\r\n",
    "bugtrack_url": null,
    "license": "Apache Software License 2.0",
    "summary": "Lightweight tool to upload and download CSV data files into\\from Deta Base",
    "version": "0.5.1a34",
    "split_keywords": [
        "csv",
        "db",
        "database",
        "deta",
        "cli",
        "detabase",
        "upload",
        "download",
        "backup"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "43b14af1585a6ac686e233b6f7344a33fbd39e84dd4247485639ca313db654a9",
                "md5": "075563f8851bcf7a3c9a425ef34f7907",
                "sha256": "2a6466aac438398c9189abf54837fc4f9ebab73a29c6ea4dc7751644dd9b0287"
            },
            "downloads": -1,
            "filename": "csv_deta-0.5.1a34-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "075563f8851bcf7a3c9a425ef34f7907",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3",
            "size": 7920,
            "upload_time": "2023-01-07T12:26:27",
            "upload_time_iso_8601": "2023-01-07T12:26:27.971468Z",
            "url": "https://files.pythonhosted.org/packages/43/b1/4af1585a6ac686e233b6f7344a33fbd39e84dd4247485639ca313db654a9/csv_deta-0.5.1a34-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-07 12:26:27",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "csv-deta"
}
        
Elapsed time: 0.39565s