Skip to main content

csvplus

Create, Read, Update, Delete, and Move Rows in a CSV File

install

pip install csvplus

usage

import csvplus

filepath = "./folder/cars.csv"

# create csv with the given column names 
csvplus.create(filepath, ["make","model","year"])

# append a new row to the end of the csv file
csvplus.add(filepath, { "make": "Kia", "model": "Soul", "year": 2023 })

# delete all rows matching the where conditions
csvplus.delete(filepath, where={ "make": "Tesla" })

# find all rows matching the where conditions
csvplus.read("countries.csv", where={ "year": 1776 })
[{ "name": "United States of Ameriac", "abbreviation": "USA", "year": 1776 }]

# move rows
move(filepath, from_row, to_row, debug_level=0, quoting=csv.QUOTE_ALL):
csvplus.move("example.csv", 0, 20) # move the first row to the 20th line

Metadata

Release files for csvplus 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for csvplus 0.0.2
File Size Uploaded Provenance Actions
csvplus-0.0.2.tar.gz 6.6 kB Without provenance Details for csvplus-0.0.2.tar.gz

Release files / csvplus-0.0.2.tar.gz

Download URL csvplus-0.0.2.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
dedbfa4e7534ca492ba5fa51c90563dbd8509a842200a1176e5e99ed67ee3ed4
BLAKE2b-256 checksum
How to use checksums
8f007d72308c15d238b9d2f02d00041487b97c905bce649075f8c24561214450
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.7

Security for csvplus 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page