This module is designed for everyone to easily handle txt files. JSON file handling will be added soon.
Project description
Disclaimer
This package has strict syntax. If you do not like strict syntax, do not use. This package makes file handling simpler.Current Version: [Version 0.3.0]
Most functions are still in development, so please report bugs if there are any. Report bugs by sending an email to adityasrijeet12355@gmail.com
Example Code
from jetdb import functions
db = functions()
db.setup()
Functions Supplied
• Setup - Updates, Restarts, Removes dependencies in the background
• Add - Adds a line
• Index - Finds the line number for you
• Index Replace - Indexes the line and replaces it
• New File - Creates a new file for you
• Clear - Clears a whole file for you
How to use functions
Example code:
from jetdb import functions
db = functions()
db.setup()
filename = "--> INSERT FILENAME HERE <--"
db.clear(f"{filename}")
db.add(f"{filename}", "This module is cool!", msg=False)
db.add(f"{filename}", "This module is cool!", msg=True)
db.index_replace(f"{filename}", "This module is cool!", "This module is the best", msg=False)
db.index(f"{filename}", "This module is the best")
db.printRead(f"{filename}")
You get it, use the variable you used to control the functions, then you add the function name after it.
Example code:
from jetdb import functions
db = functions()
db.setup()
db.printRead(f"{filename}")
That previous block of code will read a file and print it.
Changelog
Version 0.3.0
-\ Changed the dependencies
-\ Minor error bug fixes
-\ Colorama dependency change
-\ Colorama now gets installed in your project
Version 0.2.99
-\ Changed the dependencies
-\ Minor error bug fixes
+ Colorama
+ Custom Errors
Version 0.2.4
-\ Changed the dependencies
-\ Minor error bug fixes
+ Added description
+ Added Changelog
Version 0.2.0
+ Added a dependency
+ Added index feature
- Removed search line feature
-\ Remastered new file feature
-\ Remastered Index Replace feature
Version 0.1.5
+ Added a dependency
+ Added search line feature
-\ Remastered new file feature
-\ Remastered Index Replace feature
Version 0.1.1
-\ Minor bug fixes
-\ Revamped speed
-\ Patched up clear file function
Version 0.1.0
How everything started:
+ Wait function
+ Add line function
+ Replace line function beta
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
JetDB-0.3.0.tar.gz
(3.5 kB
view details)
Built Distribution
JetDB-0.3.0-py3-none-any.whl
(3.2 kB
view details)
File details
Details for the file JetDB-0.3.0.tar.gz
.
File metadata
- Download URL: JetDB-0.3.0.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.8.12 Linux/5.15.0-1027-gcp
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ca48a45b337d1a6348ffc14dfc90f20d5283abef4c7e12c2c64fd0ace04a506 |
|
MD5 | 5adb105ecf4b5135478f04f5685a7757 |
|
BLAKE2b-256 | e04f84d699e0b567efb529120775d76684f6b14b5b167231621d8190b9bc0ac5 |
File details
Details for the file JetDB-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: JetDB-0.3.0-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.8.12 Linux/5.15.0-1027-gcp
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73561a81ffd43bc621ebc96afff3682ca35cceca9df380a0056debd9da51784c |
|
MD5 | 096d174addfa7e2f2ff823417671a8dc |
|
BLAKE2b-256 | 346d7578402e7a3db402738d49727875760eac5163e21ad8e055424d78b883da |