edata
edata means 'easy data', is a wrapper of csv, xlrd, xlwt, pylightxl. edata can be used to read csv, xls, xlsx format file as dict list data and write dict list data to those format file.
install
pip install edata
example
import edata
data_list = [{'id': 1, 'name': 'Lena'},
{'id': 2, 'name': 'Java'},
{'id': 3, 'name': 'Gaga'}]
# write data to file
edata.write('test.csv', data_list[0:100])
edata.write('test.xls', data_list[0:100])
edata.write('test.xlsx', data_list[0:100])
# read data from file
print(edata.read('test.csv'))
print(edata.read('test.xls'))
print(edata.read('test.xlsx'))
# get sheet names
print(edata.get_sheet_names('test.xls'))
print(edata.get_sheet_names('test.xlsx'))
3 file will be created and console will print:
[{'id': '1', 'name': 'Lena'}, {'id': '2', 'name': 'Java'}, {'id': '3', 'name': 'Gaga'}]
[{'id': 1, 'name': 'Lena'}, {'id': 2, 'name': 'Java'}, {'id': 3, 'name': 'Gaga'}]
[{'id': 1, 'name': 'Lena'}, {'id': 2, 'name': 'Java'}, {'id': 3, 'name': 'Gaga'}]
['Sheet1']
['Sheet1']
Metadata
Release files for edata 0.0.1
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 |
|---|---|---|---|---|
| edata-0.0.1.tar.gz | 3.0 kB | Without provenance | Details for edata-0.0.1.tar.gz |
Release files / edata-0.0.1.tar.gz
| Download URL | edata-0.0.1.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dbff0674eb791a50e28fc7cbd204d52279e8fe298ea48d2942c2f36e9c8562e8
|
|
BLAKE2b-256 checksum How to use checksums |
a10be680af4620d2a5fc509535f6432bc043ee62f3ffe4ccdbc9ac83e8dbd606
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.2
|
Security for edata 0.0.1
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.