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.7.tar.gz (4.0 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.7-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for portabledb-1.7.tar.gz
Algorithm Hash digest
SHA256 1a201421936001cb56397a1e68b0cd0a99dba4b63fe3ea6643652051e867111a
MD5 10384557f9f415f0747d8bb8009202bd
BLAKE2b-256 137f81e46ab05fdbb73c4cd4f31d6947181888d720ccb37704bfaf712b0ff0d6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: portableDB-1.7-py3-none-any.whl
  • Upload date:
  • Size: 4.3 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 c837e578841c452e52fc6be8e3968fb53f239a2fd70d60fad6f1a447f0b5d7ba
MD5 8c1816b75bee84b2bd82483fb9c55b8d
BLAKE2b-256 7949f36edaee26d32c73506053805d24c35e587e21d819d41802e42d33be7977

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