tabular-data
The sensible way to work with tabular data
Read CSV files with ease
Go from this 😡
import csv
with open('names.csv', newline='') as csvfile:
reader = csv.DictReader(csvfile)
rows = []
for row in reader:
rows.append(row)
to this 😎
from tabular_data import csv_file
rows = csv_file('names.csv').read()
Write CSV files with no effort
Go from this 🤮
import csv
with open('names.csv', 'w', newline='') as csvfile:
fieldnames = ['first_name', 'last_name']
writer = csv.DictWriter(csvfile, fieldnames=fieldnames)
writer.writeheader()
writer.writerow({'first_name': 'Baked', 'last_name': 'Beans'})
writer.writerow({'first_name': 'Lovely', 'last_name': 'Spam'})
writer.writerow({'first_name': 'Wonderful', 'last_name': 'Spam'})
to this 🤩
from tabular_data import csv_file
csv_file('names.csv').write(
[
{'first_name': 'Baked', 'last_name': 'Beans'},
{'first_name': 'Lovely', 'last_name': 'Spam'},
{'first_name': 'Wonderful', 'last_name': 'Spam'}
]
)
Release files for tabular-data 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tabular_data-0.1.4.tar.gz | 3.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tabular_data-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.3 kB
Release files / tabular_data-0.1.4.tar.gz
| Download URL | tabular_data-0.1.4.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8a636633ed885f43b05b8d8fd9b9c7c09d03a1a940b5775538fdcd76585140c5
|
|
BLAKE2b-256 checksum How to use checksums |
758b369ce4b0225c73f87afb4e240e1f8c879943997b231d7f8927aaa9d0c60a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.2 CPython/3.10.8 Darwin/21.6.0
|
Release files / tabular_data-0.1.4-py3-none-any.whl
| Download URL | tabular_data-0.1.4-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
643282ba9c0503e4740ff7caab8515ce1b5c7bd0675a2269b4eca92f6c272dfc
|
|
BLAKE2b-256 checksum How to use checksums |
5bce4bffa5b33e098f1da65af1a0b68dbb881f2ed26840b023fa7565cc3190de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.2 CPython/3.10.8 Darwin/21.6.0
|