Metadata-Version: 2.1
Name: csvtodeta
Version: 1.3.0
Summary: A Lightweight tool to upload CSV files data into Deta Base.
Home-page: https://github.com/fredysomy/CsvToDeta
Author: Fredy Somy
Author-email: fredysomy@gmail.com
License: Apache Software License 2.0
Keywords: csv,database,json
Platform: UNKNOWN
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3
Description-Content-Type: text/markdown
Requires-Dist: fire
Requires-Dist: deta


![data](https://raw.githubusercontent.com/fredysomy/CsvToDeta/main/images/20201203_215247_0000~2.png)






## A Lightweight tool to upload CSV files data into Deta Base.

 [![PyPI version](https://badge.fury.io/py/csvtodeta.svg)](https://badge/pysondb)
 [![PyPI download day](https://img.shields.io/pypi/dm/csvtodeta.svg)](https://pypi.python.org/pypi/csvtodeta)

 ## CLI operations

 * Needed
   * Secret Id of Deta Base
   * Path to the csv file
   * Database name in Deta



***
#### Use
```python
$ csvtodeta --id ID_OF_BASE --path path/to/csv.csv --db DETABASE_NAME
Reading data from DETABASE_NAME
Uploaded ..
Uploaded ..
Uploaded ..
..
..
succesfully uploaded n data to DETABASE_NAME Base
```   



#### Example

* Data of csv file (sample) :

``` 
name,age
fredy,34
god,34345345
mannu,34
```


```python
$ csvtodeta --id 45345dhsgh3rjdf2ur34hhwf --path path/to/csv.csv --db detabasename
Reading data from src/deta.csv
Uploaded {'name': 'fredy', 'age': '34'}
Uploaded {'name': 'god', 'age': '34345345'}
Uploaded {'name': 'maanu', 'age': '34'}
succesfully uploaded 3 data to detabasename Base

```   
#### Result
![result](https://raw.githubusercontent.com/fredysomy/CsvToDeta/main/images/Screenshot_20201204-000048~2.png)

***



