reading, writing and sorting large files
streamio is a simple library of functions designed to read, write and sort large files using iterators so that the operations will successfully complete on systems with limited RAM. This library has been used extensively at Griffith University whilst developing the TerraNova Climate Change and Adaptation Visualization tool(s) and processing large volumes of data. streamio is written in Python and has extensive documentation and unit tests with 100% coverage.
See the API for a list of the available functions.
Read a large text file iteratively:
from streamio import stream f = stream("large_file.txt")
Read a large CSV file iteratively:
from streamio import jsonstream f = stream("large_file.json")
Merge-sort a large JSON file with the key itemgetter("value"):
from operator import itemgetter from streamio import mergesort f = mergesort("large_file.json", key=itemgetter("value"))
streamio also comes with documentation and a full comprehensive unit test suite which require the following:
To build the docs:
To run the unit tests:
The simplest and recommended way to install streamio is with pip. You may install the latest stable release from PyPI with pip:
> pip install streamio
If you do not have pip, you may use easy_install:
> easy_install streamio
> python setup.py install
You can also install the latest-development version by using pip or easy_install:
> pip install streamio==dev
> easy_install streamio==dev
For further information see the streamio documentation.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|File Name & Checksum SHA256 Checksum Help||Version||File Type||Upload Date|
|streamio-0.0.9-py2.7.egg (14.9 kB) Copy SHA256 Checksum SHA256||2.7||Egg||Feb 27, 2014|
|streamio-0.0.9.tar.gz (13.7 kB) Copy SHA256 Checksum SHA256||–||Source||Feb 27, 2014|