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] |
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.6.tar.gz
(4.6 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.6.tar.gz.
File metadata
- Download URL: pyfastfile-0.1.6.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd33d042057665434f7bd1538ca9709f458d9b1ce700438c050e60a905bd39be
|
|
| MD5 |
ae2106ce7ea1ad2b39405e486485492e
|
|
| BLAKE2b-256 |
42786af37cfa8ddd62765fa7e569ab0bf7e43e6a82a10dd9241e39314169cc47
|
File details
Details for the file pyfastfile-0.1.6-py3-none-any.whl.
File metadata
- Download URL: pyfastfile-0.1.6-py3-none-any.whl
- Upload date:
- Size: 7.2 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 |
e22603e1ee41026498423d91a3a74f313770d264523a5226d4a13429156da754
|
|
| MD5 |
253360575f8a48d0a4eaa58387ab364f
|
|
| BLAKE2b-256 |
4ddcf24684dad6dcd5c59a36860a15bb93b22831bd0a190d7cd0725f35a5a101
|