csvy
Basic context wrappers for stardard library csv.read and csv.write methods.
Writer Example
B
The writer returns a straight up csv.writer object:
import csvy
with csvy.writer('csvpath.csv') as csvfile:
csvfile.writerow([1, 2, 3, 4])
Reader Example
The reader returns a proxy object that behaves a bit differently. You must
call the iter method that yield an enumerator:
import csvy
with csvy.reader('csvpath.csv') as csvfile:
for index, row in csvfile.iter():
print(f"{index}: {row}")
If a header row is detected, the row object will be a namedtuple based
on the values of the header line:
"""
src.csv:
A,B,C,column D
1,2,3,4
5,6,7,8
"""
import csvy
with csvy.reader('src.csv') as csvfile:
for index, row in csvfile.iter():
print(row.a)
print(row.column_d)
Metadata
Release files for csvy 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| csvy-0.1.5.tar.gz | 3.0 kB | Without provenance | Details for csvy-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| csvy-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for csvy-0.1.5-py3-none-any.whl |
Total release size: 5.5 kB
Release files / csvy-0.1.5.tar.gz
| Download URL | csvy-0.1.5.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
34c2cd1e87dbc2ffd343c5b0d61376af1cd6578efbc87f74d37bbe1f5800fb58
|
|
BLAKE2b-256 checksum How to use checksums |
aa493d8c1ffef76527f41536097c3611875045416df281769bfe4eb6ba660d83
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.2 CPython/3.7.5 Linux/4.15.0-88-generic
|
Release files / csvy-0.1.5-py3-none-any.whl
| Download URL | csvy-0.1.5-py3-none-any.whl |
|---|---|
| Size | 2.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7d297fd3c49ade4c3dff49c4506edab8d08a5b216a020b0b015604f74887ce09
|
|
BLAKE2b-256 checksum How to use checksums |
6fe9cd33a669b1d85067c4db8c91c7dfe64480fd85897ba9b34cb261ea559eb5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.2 CPython/3.7.5 Linux/4.15.0-88-generic
|
Security for csvy 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.