Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

file_crud-0.1.2.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

file_crud-0.1.2-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file file_crud-0.1.2.tar.gz.

File metadata

  • Download URL: file_crud-0.1.2.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

Hashes for file_crud-0.1.2.tar.gz
Algorithm Hash digest
SHA256 9a1ecd586c56fb06e8997803f77857d7939848a965274f11ca3f50796f4d8fce
MD5 58625c97690ba068e3ce2fb85041e7c2
BLAKE2b-256 de2e8547fcbb99c09a5722cf6f19d622c0d41018af71dac2f88a7e3a29349592

See more details on using hashes here.

File details

Details for the file file_crud-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: file_crud-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for file_crud-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7331328ce31262a9f237ff4ae61530157137085f1ff49c9af6799391e0dd6500
MD5 a68c179082e6d7cacb8177a1ed4d4890
BLAKE2b-256 9fdf85681d006c0608c2edc603d02ce0a7f07b4c45b14b695b3545c32892f937

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page