Skip to main content

Fast_sqlite is a library to use sqlite database faster and easier.

Project description

Fast_sqlite

Fast SQL is a Python library to make and use a sqlite3 database. For use this library you can copy the file in your code directory and use below codes or read src/example/write_and_read_data.py file

Create values to use library

from fast_sql import fast_sqlite

fsql = fast_sqlite(db_name="database.db", table_name="users", attributes=["username", "email", "password"])

Connect to a database

fsql.connect()
# Congratulation! You have been connected :)

Close connection

fsql.close()
# Oh... You have been disconnected :( 
# We will work together for next time

Insert data in database

fsql.Insert_in(values=["admin", "admin.root@admin.com", "admin"]) # output: True/False

# This is how it save:
# --> users:
#      ________________________________________________________________
#     |                |                         |                     |
#     |    username    |          email          |       password      |
#     |________________|_________________________|_____________________|
#     |                |                         |                     |
#     |     admin      |     admin.root@ad...    |        admin        |
#     |                |                         |                     |
#     |     user1      |     user.1234@use...    |        12345        |
#     |                |                         |                     |
#     |________________|_________________________|_____________________|

Select data from database

#                    select "password", where username='username'
password = fsql.Select_from("password", "username", username) # output: password

Use a custome command

output = fsql.Custome_command("command") # output: output of your command :)
print(output)

Contributes

1.Unknow-per

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

pyfast_sqlite-0.0.4.tar.gz (2.8 kB view details)

Uploaded Source

File details

Details for the file pyfast_sqlite-0.0.4.tar.gz.

File metadata

  • Download URL: pyfast_sqlite-0.0.4.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for pyfast_sqlite-0.0.4.tar.gz
Algorithm Hash digest
SHA256 c0376221d6f11cc243b1a3c0604ae69e94121bc767a08f7ef7d642804861cf41
MD5 75a737aad1a28b04c40c4fae4fb3dfd4
BLAKE2b-256 8c315fd5d74a32367d30e977e24a5b6d744ea8ba1d250077b7cc2dbcbef60eff

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