Skip to main content

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.2]

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 = jetdb_txt()

csv_db = jetdb_csv()

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}")

csv.readBase(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.2

+ Added new functions - Name: JetDB-CSV
+ New Custom Error [JetDB-CSV]
+ 3 New Functions [JetDB-CSV]
+ New Custom Error Inspection Statistics [JetDB-CSV]
-\ Original Functions renamed - Name: JetDB-TXT

Version 0.3.1


-\ Removed one dependency
-\ Custom Error bug fix
-\ Colorama dependency changed again
-\ Colorama injection revamp

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


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.2.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

JetDB-0.3.2-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file JetDB-0.3.2.tar.gz.

File metadata

  • Download URL: JetDB-0.3.2.tar.gz
  • Upload date:
  • Size: 4.0 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

Hashes for JetDB-0.3.2.tar.gz
Algorithm Hash digest
SHA256 2bbf8ef133a03ba42bb6d6d44e4248e9cd4ee07e38cc2525b9dac5ece5829a36
MD5 ac23ccc2f0aa12b82614563204e4f322
BLAKE2b-256 7611b0808f97a826a3f4a81936d13047cd766700ae95caf8befc6fd49587118c

See more details on using hashes here.

File details

Details for the file JetDB-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: JetDB-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 3.7 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

Hashes for JetDB-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 eaa719e7accc3226387fd919bd69cedc292c499e69edc67d50de15fe3d78bdb8
MD5 47f44150193bfe12ccf11443b799dec6
BLAKE2b-256 6adef2219df9a83c0706d02f0f5404fe8dd0641de027dd6fe68d32bf3e128255

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page