Skip to main content

This library is an easyest way to use local database!

Project description

PortableDB Documentation

PortableDB is a lightweight, easy-to-use Python package for creating, managing, and interacting with portable databases.

Installation

To install PortableDB, use pip:

pip install portableDB

Methods

LogType(Type)

Sets the logging state for the database operations.

  • Arguments:
    • Type (str): Can be one of the following:
      • 'COLORFUL': Enables colorful logs for better readability.
      • 'BASE': Enables normal command-line logging.
      • 'NONE': Disables logging output.

CreateDatabase()

Creates a new database.

  • Arguments:
    • name (str): The name of the database to create (should include a file type like '.db').

WriteDatabase(information, cell)

Writes data to the database.

  • Arguments:
    • information (array): An array of values to write.
    • cell (int): The index of cell at which to write information (must be positive).

ReadDatabase(cell, index)

Reads data from the database.

  • Arguments:

    • cell (int): The index of cell to read.
    • index ('ALL' or int or just ignore):
      • 'ALL' (string): Reads all elements in the specified cell.
  • Returns:

    • The data read from specified cell.

RenameDatabase(newName)

Renames the database.

  • Arguments:
    • newName (str): The new name for the database (should not include a file type like '.db').

DeleteDatabase()

Deletes the specified database.

  • Arguments:
    • No arguments :)

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

portabledb-1.6.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

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

portableDB-1.6-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file portabledb-1.6.tar.gz.

File metadata

  • Download URL: portabledb-1.6.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.6

File hashes

Hashes for portabledb-1.6.tar.gz
Algorithm Hash digest
SHA256 daf739a9d586c88c7ae8a052b153b80add9a00bcfaa1a83d4233fcea7e8dfa60
MD5 33f9c00e9406a2057ff61578a8a49ba2
BLAKE2b-256 bb433cec19dae00af3ac3a63d15be7ae443be9f32b843581957c2b97a763c5c9

See more details on using hashes here.

File details

Details for the file portableDB-1.6-py3-none-any.whl.

File metadata

  • Download URL: portableDB-1.6-py3-none-any.whl
  • Upload date:
  • Size: 2.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.6

File hashes

Hashes for portableDB-1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 ed787e71acff480a90bbb82ddbbde957c2fc322fb2086a740f7b4a467d4743f7
MD5 2ceb3538f34153d073087a66814d4df0
BLAKE2b-256 50e07f2ade7e89b7448bac9b1db438f5ca3a8a22fccdaed0523db05eefc9efb8

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