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.12
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
import spyll
spyll.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")
spyll.read(file)
Simply reads text file to string
Example
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
import spyll
if spyll.search(file="./folder/Hello_World.txt", "username"):
print("Contains Username!")
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
spyll-0.12.tar.gz
(2.8 kB
view hashes)
Built Distribution
spyll-0.12-py3-none-any.whl
(4.6 kB
view hashes)