Metadata-Version: 2.1
Name: csv-deta
Version: 0.4a17
Summary: Lightweight tool to upload and download CSV data files into\from Deta Base
Author: JL Connor
License: Apache Software License 2.0
Keywords: csv,db,database,deta,cli,detabase,upload,download
Classifier: Development Status :: 3 - Alpha
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: Apache Software License
Classifier: License :: Freeware
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Utilities
Requires-Python: >=3
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: deta
Requires-Dist: fire

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

## 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
