Metadata-Version: 2.1
Name: csv-deta
Version: 0.3.dev8
Summary: A Lightweight tool to upload and download CSV data files into
rom Deta Base
Home-page: 
Author: JL Connor
Author-email: 
License: Apache Software License 2.0
Keywords: csv,database,deta,cli,detabase,upload,download
Platform: any
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: License :: Freeware
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: LICENSE.md
Requires-Dist: fire
Requires-Dist: deta

![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)

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

* its fork of the [csvtodeta](https://pypi.org/project/csvtodeta/) tool by [@Fredy Somy](https://github.com/fredysomy/CsvToDeta)
* improvements:
  * more options
  * downloads data (not implements yet)
  * upload about twice as fast ([docs](https://docs.deta.sh/docs/base/sdk#using))

### install
```bash
pip install -U csv-deta
```
### use
```bash
csv-deta upload PATH_TO_CSV_FILE [--dbname DETA_DB_NAME] [--key 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
* [ ] download data
* [ ] async transfer
* [ ] validate source csv (?)

---
enjoy, starring, and donate
