bhargavnova / python-helper-modules

MIT License
7 stars 24 forks source link

Python CSV CRUD Module #32

Closed bhargavnova closed 9 months ago

bhargavnova commented 9 months ago

Objective

Develop a Python module that allows users to perform basic CRUD (Create, Read, Update, Delete) operations on CSV (Comma Separated Values) files. This module will provide a convenient interface for managing data in CSV files using Python.

Features

Example Usage

import csv_crud

# Create a new record
csv_crud.create_record('data.csv', {'Name': 'John Doe', 'Email': 'john@example.com', 'Age': 30})

# Read the CSV file
data = csv_crud.read_csv('data.csv')
print(data)

# Update a record
csv_crud.update_record('data.csv', 1, {'Name': 'Jane Doe', 'Email': 'jane@example.com', 'Age': 35})

# Delete a record
csv_crud.delete_record('data.csv', 2)

Difficulty: Beginner/Intermediate

Tags: Python, CSV, CRUD Operations

Additional Information

Contribution Guidelines

The updated guidelines can be found here.

Note:

kom-senapati commented 9 months ago

I want to work on this issue. Please assign me this issue.

bhargavnova commented 9 months ago

Sure @kom-senapati , Thanks for picking this up!

Happy Coding!

bhargavnova commented 9 months ago

Hi @kom-senapati , Thanks for your contribution,

You can take a look at other open issues or, you can also submit one of your own code/ideas.

Thanks :) Happy coding!