Spyll is an Open-Source Python package that is aimed at making txt file management easier. It was made in python 3.7 and should work on all versions higher than 3.0.
Project description
Spyll 0.11
Welcome
Spyll is an Open-Source Python package that is aimed at making txt file management easier. It was made in python 3.7 and should work on all versions higher than 3.0.
Help commands
- spyll.help()
- spyll.changelog()
Features
spyll.write(file, text, split)
Writes to a specified text file with optional split which is only available for tuples and lists.
Example
```python import spyllspyll.write(file="./folder/Hello_World.txt",text="This is a new text file!") spyll.write(file="./folder/Goodbye_World.txt", text=["First Line", "Second Line", "Third Line"], split="\n")
<h2>spyll.read(file)</h2>
<p>Simply reads text file to string</p>
<h3> Example </h3>
```python
import spyll
text = spyll.read(file="./folder/Hello_World.txt")
print(text)
spyll.search(file, text)
Checks to see if the file contains the specified value
Example
```python import spyllif spyll.search(file="./folder/Hello_World.txt", "username"): print("Contains Username!")
<h2>spyll.count(file, text)</h2>
<p>Counts the amount of time a value appears in a text file</p>
<h3> Example </h3>
```python
import spyll
value = spyll.count(file="./folder/romeo_and_juliet.txt", "?")
print(f"There are {value} questions in Romeo and Juliet!")
To do
- Appending files
- Creating files
- Deleting files
- Renaming files
- Add to website
- Get file information
- Copy/Paste file
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.