Skip to main content

Quickly reading and writing CSV/TXT files

Project description

Quick CSV

Quickly reading and writing CSV/TXT files

Installation

pip install quick-csv

Usage

from quickcsv.file import *
# read a csv file
list_model=qc_read('data/test.csv')
for idx,model in enumerate(list_model):
    print(model)
    list_model[idx]['id']=idx
# save a csv file
qc_write('data/test1.csv',list_model)

# write a text file
qc_twrite('data/text1.txt',"Hello World!")
# read a text file
print(qc_tread('data/text1.txt'))

License

The quick-csv project is provided by Donghua Chen.

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

quick-csv-0.0.1.tar.gz (7.2 kB view hashes)

Uploaded Source

Built Distribution

quick_csv-0.0.1-py3-none-any.whl (5.3 kB view hashes)

Uploaded Python 3

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