Simple CRUD operations for file handling in Python
Project description
file-crud
Simple CRUD operations for files in Python.
Description
file-crud is a lightweight Python package that provides basic Create, Read, Update, and Delete (CRUD) functions for handling files easily. Perfect for beginners or simple file management tasks.
Features
- Create a new file with content.
- Read the content of a file.
- Update (append) content to an existing file.
- Delete a file safely with error handling.
Installation
pip install file-crud
Usage
import file_crud as fc
Create a file
fc.create('example.txt', 'Hello, world!') (If you don´t want content in the file, put "None")
Read the file
fc.read('example.txt')
Update the file
fc.update('example.txt', '\nThis is an added line.') (If you don´t want content in the file, put "None")
Delete the file
fc.delete('example.txt')
Author
Frank Pineda Email: fpineda11@gmail.com
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file file_crud-0.1.3.tar.gz.
File metadata
- Download URL: file_crud-0.1.3.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ad367646b5542de84f1965d4d8e6449b29015037471dfe52ae2666941f521de
|
|
| MD5 |
38b5523d6c5fd07fe80aca1fcb8a59e6
|
|
| BLAKE2b-256 |
4ed7d5c3c0fc383e00df349c071ebb34a1b8f959e2b2e415c6cdec6697946c28
|
File details
Details for the file file_crud-0.1.3-py3-none-any.whl.
File metadata
- Download URL: file_crud-0.1.3-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
63fe9a360c21e8ba9fab93e723dbaf3d56b976aa6f635a5a09f086c93ae9760a
|
|
| MD5 |
fe5e8743e41547e144776fead48aa121
|
|
| BLAKE2b-256 |
dc1321a2c1a73e4bddfb7174c1bcf4d369a3f0a8a8b2599e99b99265e51196b0
|