Skip to main content

a package for tables

Project description

The ShdwDB package

package for tables

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, filename_saved)

Retrive a database from local filesystem. Give it a name and specifiy file path, path with be relative to current directory

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(filename_to_save): save to local filesystem. filename_to_save is relative to current path
  • add_column(name): Add a column.
  • add_row(name): Add a row.

Release notes:

  • teensy bit buggy
  • removed json dependency and fixed description

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.10.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

shdwdb-0.0.10-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file shdwdb-0.0.10.tar.gz.

File metadata

  • Download URL: shdwdb-0.0.10.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.18

File hashes

Hashes for shdwdb-0.0.10.tar.gz
Algorithm Hash digest
SHA256 74ac652babd20ae05cae492fe4150bf50d3d06b19b8615e399c710d9c592659f
MD5 271bef6e965474dba072c02b3d9d226f
BLAKE2b-256 69a9f471a71aeb48e3bc686d96fe16fd59db4bde9f23c134270f1a5bb7ee16cb

See more details on using hashes here.

File details

Details for the file shdwdb-0.0.10-py3-none-any.whl.

File metadata

  • Download URL: shdwdb-0.0.10-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.18

File hashes

Hashes for shdwdb-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 1b21cebec7210bf049dab11da392af4d4ce427c1af9679e098ef20e049c458f4
MD5 b945527c65f833dad8d79e410de84019
BLAKE2b-256 08fc6de8320296f5c86a99c021a31f1a0d2e57675be8c8447abe7ef1d7a96d7e

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