Skip to main content

reading, writing and sorting large files

Project description

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.

Latest PyPI version Number of PyPI downloads Build Status

Examples

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"))

Requirements

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:

Installation

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

Alternatively, you may download the source package from the PyPI Page or the Downloads page on the Project Website; extract it and install using:

> python setup.py install

You can also install the latest-development version by using pip or easy_install:

> pip install streamio==dev

or:

> easy_install streamio==dev

For further information see the streamio documentation.

Supported Platforms

  • Linux, FreeBSD, Mac OS X

  • Python 2.7

  • PyPy 2.2

Windows: We acknowledge that Windows exists and make reasonable efforts

to maintain compatibility. Unfortunately we cannot guarantee support at this time.

Changes

streamio 0.0.3 (2013-11-21)

  • Fixed broken link to the API Docs.

streamio 0.0.2 (2013-11-21)

  • Added some examples

  • Fixed a few typos

streamio 0.0.1 (2013-11-21)

  • Initial Public Release

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

streamio-0.0.3.tar.gz (149.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

streamio-0.0.3-py2.7.egg (27.6 kB view details)

Uploaded Egg

File details

Details for the file streamio-0.0.3.tar.gz.

File metadata

  • Download URL: streamio-0.0.3.tar.gz
  • Upload date:
  • Size: 149.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for streamio-0.0.3.tar.gz
Algorithm Hash digest
SHA256 3031b2c057225794b5d698b1b0534ba4436b1d4ffd20e8376b21f7ef44bec38c
MD5 8a86ae53cfc503c304eb188d5ad6dc2a
BLAKE2b-256 4f541083432a34e1140a43443e621f1a87404429ec93958d8e1719bbf673d119

See more details on using hashes here.

File details

Details for the file streamio-0.0.3-py2.7.egg.

File metadata

  • Download URL: streamio-0.0.3-py2.7.egg
  • Upload date:
  • Size: 27.6 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for streamio-0.0.3-py2.7.egg
Algorithm Hash digest
SHA256 fa50ceb7a81ec930917cc07ed5d2e72a54f7c4ca01b8b1fad5a397e27467ac77
MD5 4a153d09c79886fd457c2cc879c2c5f2
BLAKE2b-256 3e40ed1492b411e581d920c610f2e167c31b5d9043046d1459fdbe4dcc5f9f5b

See more details on using hashes here.

Supported by

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