dict-to-csv transforms nested Python dictionaries into CSV lines.
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
dict_to_csv
tests
.gitignore
.travis.yml
LICENSE
MANIFEST.in
README.md
pytest.ini
requirements-test.txt
requirements.txt
setup.cfg
setup.py
tox.ini

README.md

dict-to-csv

Build Status

dict-to-csv transforms nested Python dictionaries into CSV lines.

Example:

[{
  "customer": {
    "name": "John",
    "address": {
      "street": "Street 1",
      "number": "42"
    }
  },
  "product": {
      "sku": "1",
      "price": 9.99
  }
},
{
  "customer": {
    "name": "Bob",
    "address": {
      "street": "Street 2",
      "number": "314"
    }
  },
  "product": {
      "sku": "2",
      "price": 15.00
  }
}
]
customer.address.number,customer.address.street,customer.name,product.price,product.sku
42,Street 1,John,9.99,1
314,Street 2,Bob,15.0,2