csvplus-0.0.2
توضیحات
Create, Read, Update, Delete, and Move Rows in a CSV File
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | csvplus-0.0.2 |
| نام | csvplus |
| نسخه کتابخانه | 0.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Daniel J. Dufour |
| ایمیل نویسنده | daniel.j.dufour@gmail.com |
| آدرس صفحه اصلی | https://github.com/DanielJDufour/csvplus |
| آدرس اینترنتی | https://pypi.org/project/csvplus/ |
| مجوز | - |
# csvplus
> Create, Read, Update, Delete, and Move Rows in a CSV File
## install
```sh
pip install csvplus
```
## usage
```py
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
```
نحوه نصب
نصب پکیج whl csvplus-0.0.2:
pip install csvplus-0.0.2.whl
نصب پکیج tar.gz csvplus-0.0.2:
pip install csvplus-0.0.2.tar.gz