Skip to main content

dataknead

Fluent conversion between data formats like JSON, XML and CSV

Read the docs

Ever sighed when you wrote code to convert CSV to JSON for the thousandth time?

import csv
import json

data = []

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:

$ pip install dataknead

And use it like this:

from dataknead import Knead
Knead("cities.csv").write("cities.json")

Or make it even easier on the command line:

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

Metadata

Release files for dataknead 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dataknead 0.4.0
File Size Uploaded
dataknead-0.4.0.tar.gz 8.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dataknead 0.4.0
File Interpreter ABI Platform
dataknead-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 19.6 kB

Release files / dataknead-0.4.0.tar.gz

Download URL dataknead-0.4.0.tar.gz
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
324babb1bcee23d5fc67ede85af9d53e19fd8306c439c5fdabadb0cf5c200784
BLAKE2b-256 checksum
How to use checksums
a1b5a93d73253aca0b7106d9e8ff7f1df1fa9227377b2b076f85c368ec21db07
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.8.5 Darwin/18.7.0

Release files / dataknead-0.4.0-py3-none-any.whl

Download URL dataknead-0.4.0-py3-none-any.whl
Size 11.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c5494817a904502f58c3d8ae5ba6d98a7d8b4f2f186091ce596fc946f1ff555c
BLAKE2b-256 checksum
How to use checksums
b0aacce828b4c486a69584d28b710f4febf005565fd394c605bfed47b4bdc3a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.8.5 Darwin/18.7.0

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page