reader library for csv files.
Project description
Introduction
Welcome to my small python project.
This library just provides some functions to read from csv files.
I developed this library for fun.
If anyone wants to contribute, feel free to contact me or open an issue.
This library uses the built-in csv
module
Installation
Type this into your command prompt:
pip install csv-reader
usage
at the top of your py files:
import reader
in your code:
for line in reader.openWithName("example.csv"):
print(",".join(line))
Documentation
openWithName(name: str) -> Iterable
opens a csv file with the given name and returns the reader object.
name - the name of the csv file.
openWithFile(file: TextIO) -> Iterable
returns a reader object from an already opened file.
file - the file object.
readFromName(name: str) -> Iterator
opens a csv file and returns an iterator for that file.
name - the name of the csv file.
readFromFile(file: TextIO) -> Iterator
returns an iterator from a given file object.
file - the file object.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for csv_reader-1.2.0a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f33fa5e14e4835f047bbc8105686d6fb61f8e24a6bbcea378b2b28fafeb2dd15 |
|
MD5 | bdcc1407ae5fff9e3f8008b8073b5ea0 |
|
BLAKE2b-256 | 9974f5c273124cde1ebeb91caeba830cb306dc13474b2d32c93a6622edb1936a |