Skip to main content

a free database library for python

Project description

Contributing

Contributions are welcome! If you'd like to contribute to SafeVaultDB, please submit a pull request to the repository.

License

SafeVaultDB for python is released under the GNU GPL 3 License.

Usage

from SafeVaultDB import SafeVault

# Initialize SafeVault with database path and password
vault = SafeVault(database_path="path/to/database.db", password="your_password")

Installation

You can install SafeVaultDB for python using pip:

pip install SafeVaultDB

Functions

Initialization

init(database_path:str, password:str)

Initialize SafeVault object.

database_path (str): The path to the database file.

password (str): The password used to generate the encryption key.

Adding Data

add_data(key:str, value:str)

Adds key-value pair to the encrypted database.

key (str): The key to add.

value (str): The value corresponding to the key.

Updating Data

update_data(key:str, value:str)

Updates the value corresponding to the given key in the encrypted database.

key (str): The key to update.

value (str): The new value corresponding to the key.

Retrieving Data

get_data(key:str)

retrieves data corresponding to the given key from the encrypted database.

key (str): The key to retrieve data for.

Deleting Data

delete_data(key:str)

Key (str): The key to delete

Deletes data corresponding to the given key from the encrypted database.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

SafeVaultDB-1.0.2-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file SafeVaultDB-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: SafeVaultDB-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.11

File hashes

Hashes for SafeVaultDB-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 62257ff25fca6a55f6a135b88c3ebe89caa0c4345405e62a48bd73a9304938c3
MD5 2461ac4cd42281f08825c3977a22b5fd
BLAKE2b-256 324d2544b9df20b5db2b1e86e0f92fc8edfcd68955fe5705ed74943514d28584

See more details on using hashes here.

Supported by

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