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() |
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 |
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.2.0.tar.gz
(5.5 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.2.0.tar.gz.
File metadata
- Download URL: pyfastfile-0.2.0.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b266d5b100e7554fcbf3d2157a739fdc6feec758f86f32179adae4005b5e730
|
|
| MD5 |
8e3fd3c100e06ea219d7d923ce903bcb
|
|
| BLAKE2b-256 |
79f929cefcd0fb8b66ebb0ed58bd0d54e55626f73b0331061a73229e91569a70
|
File details
Details for the file pyfastfile-0.2.0-py3-none-any.whl.
File metadata
- Download URL: pyfastfile-0.2.0-py3-none-any.whl
- Upload date:
- Size: 9.4 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 |
0d4e10de7ddb117e112117e0c7fa821479efdcffd7b0e6cb89af9f6a3ffd4f35
|
|
| MD5 |
2ad678343ee784b2c2a10ed1318cba5b
|
|
| BLAKE2b-256 |
848d40009970dc6666bd827e291b64f487d215d1ba5b19310242311cc66d1f79
|