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,encoding:str list[int]

Utility Functions

Function Name Description Arguments Returns
destroynewline() Removes newline characters from text. data:str str

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.5.post7.tar.gz (4.1 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.5.post7-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file pyfastfile-0.1.5.post7.tar.gz.

File metadata

  • Download URL: pyfastfile-0.1.5.post7.tar.gz
  • Upload date:
  • Size: 4.1 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.5.post7.tar.gz
Algorithm Hash digest
SHA256 2eb882c713bc36423e5e44f91a2de74d6e4a978440d2496ac045a95ca2ff1f43
MD5 6c97f8834c02433b38dd53241bbc5067
BLAKE2b-256 de047f787e4b29e08036ff4d045e9a923db8987c984b486095966b3f56ec87e5

See more details on using hashes here.

File details

Details for the file pyfastfile-0.1.5.post7-py3-none-any.whl.

File metadata

File hashes

Hashes for pyfastfile-0.1.5.post7-py3-none-any.whl
Algorithm Hash digest
SHA256 fd919b77191936068ccf285844cf2223d7a7848f1e31c05f64e7faba6b3dc7a0
MD5 9056279e2669d681537f218654cf25b0
BLAKE2b-256 afa10056afe6a6b998737dbd1e4c87d9ac40ceb2394851e156b7e07e4c5e2927

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