Skip to main content

A package for databasing

Project description

The ShdwDB package

This package is for databases and storage. Use it to create tables with rows and columns.

Functions

make(name, column_names, row_names)

This creates a new database. column_names must be an iterable containing the names of the columns. row_names must be also be an iterable with the row names.

retrieve(name, key_saved)

Retrive a database from the replit db storage. Give it a name and specifiy the key you saved it with.

Database methods

  • set(column, row, value): Set a value to a cell.
  • delete_item(column, row): Set the cell value to None.
  • delete_column(column): Delete the column.
  • delete_row(row): Delete the row.
  • get_value(column, row): Get the value of a cell.
  • get_column(column): Get a column.
  • get_row(row): Get a row(as a string).
  • save(key_to_save): Save the Database to replit db.
  • add_column(name): Add a column.
  • add_row(name): Add a row.

Release notes:

  • removed id entirely

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

ShdwDB-0.0.8.tar.gz (3.9 kB view hashes)

Uploaded Source

Built Distribution

ShdwDB-0.0.8-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

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