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 Github • Project Repo PyPI
Author Github Profile • Author PyPI Profile
--Batuhan Şenol
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
pyfastfile-0.1.7.tar.gz
(4.7 kB
view details)
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 pyfastfile-0.1.7.tar.gz.
File metadata
- Download URL: pyfastfile-0.1.7.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95bb6b8ea8c8466cbb0f7f0f03c39ef6887a4e4c5f10fbc3d2f9d13fd28cfa6b
|
|
| MD5 |
a951ab92825e344b6c6388e9de19deed
|
|
| BLAKE2b-256 |
4d3cbe7bae3c7095a173d53a6c83ae54b5e3d35ef8b4b3a04b8d1d577cfe75bd
|
File details
Details for the file pyfastfile-0.1.7-py3-none-any.whl.
File metadata
- Download URL: pyfastfile-0.1.7-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
833e8ebf1342d8e0853037e891b778d66717241f12c7843e5c7aab88f72f1e86
|
|
| MD5 |
cd546d695bd4112343b9420d6526f1af
|
|
| BLAKE2b-256 |
5f0416a14154dbd1293b9f316a0627c5b9af68a424a83786895ad8d6954838c1
|