This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

This module provides a set of simple utilities for retrieving, manipulating and updating data organized in rows and contained in a CSV file.

The source code for this module lives at:

Please report any bugs or feature requests via the issue tracker there.


The algorithms should work with Python 3.5 or later and require a few open source Python modules. Below are the dependencies required for the toolset with the versions with which the algorithm was tested:

  • Python 3.5
  • Nose 1.3.7


This module is registered with the Python package index.

The easiest way to install the package is to use pip. First make sure that your version of pip is up to date:

… and then run the command:

pip install csvrope

For additional information about how to use pip, please refer to the guide:

In alternative you can also download the package from:

… and compile it in the usual way:

$ python install


The csvrope module contains a set of basic functions to be used in retrieving, updating and manipulating data contained in a CSV file.

The csvrope module gives its best when the data contained in the CSV file is organized in a “table” form, as in the following example:

a01, Mark, 22,male, yes, 126

a02, Jane, 31,female, yes, 152

a03, Philip, 28,male, no, 88

a04, John, 19,male, yes, 115

  Value 0 Value 1 Value 2 Value 3 Value 4 Value 5
Row 0 a01 Mark 22 male yes 126
Row 1 a02 Jane 31 female yes 152
Row 2 a03 Philip 28 male no 88
Row 3 a04 John 19 male yes 115
Row 4

In order to use the following functions, it is sufficient to import the module within your script.


append_row(filename, row)
Append a row at the end of CSV file.
Clear the CSV file.
Return the number of rows present in the CSV file, 0 if none.
get_row(filename, row_index)
Return the row at row_index, from zero-index.
get_row_value(filename, row_index, value_index)
Return the value at value_index from the row at row_index, from zero-index.
get_row_values(filename, row_index, values_indexes)
Return the values at value_indexes from the row at row_index, from zero-index.
Return a list containing all the rows of the CSV file.
get_rows_value(filename, value_index)
Return all the values at value_index from each row, from zero-index.
get_rows_with_value(filename, value_index, value_target)
Return a list containing all the rows that have value_target at value_index, from zero-index.
get_rows_with_values(filename, targets)

Return a list of lists, each containing the rows that match the targets, from zero-index.

Targets: [ [value1_index, value1_target], [value2_index, value2_target], … ]

Output: [ [rows with value1 ], [rows with value2], … ]

overwrite_row(filename, row_index, new_row)
Overwrite the row at row_index with the new_row, from zero-index.
Print all the rows contained in the CSV file.
write_row(filename, row)
Clear the CSV file and write a single row.

For an account of the functionalities available from this module, see the module in the source code repository.


The csvrope module is intended to be used in combination with the standard Python csv module.

Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
CSVrope-1.0.0-py3-none-any.whl (6.2 kB) Copy SHA256 Checksum SHA256 py3 Wheel Sep 19, 2016
CSVrope-1.0.0.tar.gz (3.7 kB) Copy SHA256 Checksum SHA256 Source Sep 19, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting