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 |
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.8.tar.gz
(4.9 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.8.tar.gz.
File metadata
- Download URL: pyfastfile-0.1.8.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
777762eb28e32560a2a92cbada52b667f2f8f4faf8f350ef5797b40075a171aa
|
|
| MD5 |
99b651de262bc889e9271c3f43406a99
|
|
| BLAKE2b-256 |
03de8b986ddef9d21b86283c07da4dfa6254abcdeb2a6462be34f0aca584f6d1
|
File details
Details for the file pyfastfile-0.1.8-py3-none-any.whl.
File metadata
- Download URL: pyfastfile-0.1.8-py3-none-any.whl
- Upload date:
- Size: 8.0 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 |
43e54234634daef485f38c3346a5bcf6b2642d7488811dcc030ec8b8e5f0e607
|
|
| MD5 |
ab497a7ebfbd73ec839b03045b431274
|
|
| BLAKE2b-256 |
e3453c830e640a86d939f03ad8a1d71dad01501fe663f133b345757fcf4eb476
|