Skip to main content

Fluent conversion between data formats like JSON, XML and CSV

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dataknead-0.4.0.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dataknead-0.4.0-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file dataknead-0.4.0.tar.gz.

File metadata

  • Download URL: dataknead-0.4.0.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.8.5 Darwin/18.7.0

File hashes

Hashes for dataknead-0.4.0.tar.gz
Algorithm Hash digest
SHA256 324babb1bcee23d5fc67ede85af9d53e19fd8306c439c5fdabadb0cf5c200784
MD5 1efb32f8eedf64ffbdd7090cf8be9d1a
BLAKE2b-256 a1b5a93d73253aca0b7106d9e8ff7f1df1fa9227377b2b076f85c368ec21db07

See more details on using hashes here.

File details

Details for the file dataknead-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: dataknead-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 11.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.8.5 Darwin/18.7.0

File hashes

Hashes for dataknead-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c5494817a904502f58c3d8ae5ba6d98a7d8b4f2f186091ce596fc946f1ff555c
MD5 8b321e0a0a09721f66d86c10691bb1bb
BLAKE2b-256 b0aacce828b4c486a69584d28b710f4febf005565fd394c605bfed47b4bdc3a9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page