Skip to main content

A lightweight and fast Python API for simplifying file operations

Project description

pyfastfile

A lightweight Python library for easy-to-use operations.

Installation

pip install pyfastfile

Usage

Main Functions

Function Name Description Arguments Returns
overwrite() Overwrites a file with given content. path:str, data:str,encoding:str None
append() Appends data to the end of a file. path:str, data:str,encoding:str None
read() Reads entire file content as string. path:str,encoding:str str
readlines() Returns file lines as a list. path:str, newline:bool,encoding:str list
getline() Returns a specific line from file. path:str, line:int,newline:bool,encoding:str str
exists(),encoding:str Checks if file exists. path:str bool
find() Returns lines containing target text. path:str,data:str,encoding:str list[str]
find_num() Returns line numbers matching target text. path:str,data:str list[int]
delete() Delete target file. path:str None
rename() Rename target file. path:str, name:str None

Utility Functions

Function Name Description Arguments Returns
destroynewline() Removes newline characters from text. data:str str
limp() Only: list(map(...)) func:function,lst:list list

Project Repo GithubProject Repo PyPI

Author Github ProfileAuthor PyPI Profile

--Batuhan Şenol

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

pyfastfile-0.1.7.post3.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

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

pyfastfile-0.1.7.post3-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file pyfastfile-0.1.7.post3.tar.gz.

File metadata

  • Download URL: pyfastfile-0.1.7.post3.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for pyfastfile-0.1.7.post3.tar.gz
Algorithm Hash digest
SHA256 3bb9b6fdbf9bd791063d87dba1a9680dfbc2878b0232b5acd5a0d2b4212b40dc
MD5 0525c720640aa005cd468f3747de5a3f
BLAKE2b-256 bb03eb11033fc8ee02a0a1aa0bd13352db928578238cfe4f732627f3d72ac6ee

See more details on using hashes here.

File details

Details for the file pyfastfile-0.1.7.post3-py3-none-any.whl.

File metadata

File hashes

Hashes for pyfastfile-0.1.7.post3-py3-none-any.whl
Algorithm Hash digest
SHA256 15556fa17c10d5445348fc32be9a3440a3493a93e7e1649024d8a58bde0081ea
MD5 ea5ce4e0c4ff9780d5b015cd8b2f08d1
BLAKE2b-256 4878906191b1d76a82dd0ff8eff4c2f764582d5b6dad45eb0e1947885de810d1

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