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.


logo

python License Status Type Github

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() 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]
delete() Delete target file. path:str None
rename() Rename target file. path:str, name:str None

Csv Functions

Function Name Description Arguments Returns
csv_read() Read target csv. path:str,encoding:str Generator
csv_append() Appends data to the end of a csv file. path:str,data:list,encoding:str None
csv_getheader() Return header of the target csv file. path:str,encoding:str list
csv_getrow() Return target row of the csv file. path:str,encoding:str,row:int list
csv_getcolumn() Return target column of the csv file. path:str,encoding:str,column:str list
csv_getdata() Gets a value from CSV by row and column. path:str,encoding:str,column:str,row:int any

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.2.2.tar.gz (6.0 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.2.2-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file pyfastfile-0.2.2.tar.gz.

File metadata

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

File hashes

Hashes for pyfastfile-0.2.2.tar.gz
Algorithm Hash digest
SHA256 4331d7bf7c851144b6f8ebb1e68cf0c1b9b278281c3e464774cd4e226c526cd2
MD5 c102b22b9d6fe87e91b3e2353a79bfd2
BLAKE2b-256 3ea6050bb59b0e083e7fc6359e067b49a0b7f136cf2dab7fae6c025ed93ba863

See more details on using hashes here.

File details

Details for the file pyfastfile-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: pyfastfile-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for pyfastfile-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e628565c416e6479a7e53b3632f3b6aa355cabee71a868be2c369f38b8c22d31
MD5 425349908bc0ad5251846f0c9e0221b3
BLAKE2b-256 c45d5948c8242a4a40d4ea0e806bbb88afc0ac64478cf1c4efa51cab0eb10060

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