Skip to main content

edata means 'easy data', is a wrapper of csv, xlrd, xlwt, pylightxl

Project description

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']

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

edata-0.0.1.tar.gz (3.0 kB view details)

Uploaded Source

File details

Details for the file edata-0.0.1.tar.gz.

File metadata

  • Download URL: edata-0.0.1.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for edata-0.0.1.tar.gz
Algorithm Hash digest
SHA256 dbff0674eb791a50e28fc7cbd204d52279e8fe298ea48d2942c2f36e9c8562e8
MD5 8ae6b1b2aee4e0c50a4029b2c4516a7b
BLAKE2b-256 a10be680af4620d2a5fc509535f6432bc043ee62f3ffe4ccdbc9ac83e8dbd606

See more details on using hashes here.

Supported by

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