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.1.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.1.tar.gz.
File metadata
- Download URL: pyfastfile-0.2.1.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 |
23590c81def0771331a6aea64c5631d1048d4dc9b2e7f801dcd01341817d9858
|
|
| MD5 |
9f6c51526c09aeb368cb4b0f1634b6db
|
|
| BLAKE2b-256 |
5262fe144241c60f2d57e5b1577055c0a6cc970c06234f3f2dbdb58a59620a88
|
File details
Details for the file pyfastfile-0.2.1-py3-none-any.whl.
File metadata
- Download URL: pyfastfile-0.2.1-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 |
9e967346a2e8f130a10f3d03e9db10078e07eabc0b08ef0c35f5adcc71a62502
|
|
| MD5 |
c6a8f24c4027ac1ea5dbe56e23fb8006
|
|
| BLAKE2b-256 |
67a9318c180817e243434bcc26e8cc2e680bdb449efbd059bf813783d4f61d5d
|