Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hay/dataknead
Effortless conversion between data formats like JSON, XML and CSV
https://github.com/hay/dataknead
csv data-analysis data-conversion json python python3
Last synced: 13 days ago
JSON representation
Effortless conversion between data formats like JSON, XML and CSV
- Host: GitHub
- URL: https://github.com/hay/dataknead
- Owner: hay
- License: mit
- Created: 2018-02-12T00:32:01.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-05-16T18:01:53.000Z (over 2 years ago)
- Last Synced: 2024-12-18T22:08:21.244Z (21 days ago)
- Topics: csv, data-analysis, data-conversion, json, python, python3
- Language: Python
- Homepage: https://hay.github.io/dataknead/
- Size: 595 KB
- Stars: 121
- Watchers: 7
- Forks: 12
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# dataknead
**Fluent conversion between data formats like JSON, XML and CSV**[Read the docs](https://hay.github.io/dataknead/)
Ever sighed when you wrote code to convert CSV to JSON for the thousandth time?
```python
import csv
import jsondata = []
with open("cities.csv") as f:
reader = csv.DictReader(f)for row in reader:
data.append(row)with open("cities.json", "w") as f:
json.dump(data, f)
```Stop sighing and use `dataknead`. Fetch it with `pip`:
```bash
$ pip install dataknead
```And use it like this:
```python
from dataknead import Knead
Knead("cities.csv").write("cities.json")
```Or make it even easier on the command line:
```bash
knead cities.csv cities.json
````dataknead` has inbuilt loaders for CSV, Excel, JSON, TOML and XML and you can easily write your own.
Piqued your interest? [Read the docs!](https://hay.github.io/dataknead/).