Skip to main content

Custom database class (relies on pandas, numpy, scipy)

Project description

pyDbs

The current repo contains the code for the pypi package pyDbs. The package is used to add specific structure to data using popular python packages like pandas and numpy.

The package contains three main files:

  1. base.py: This defines classes "adj", "Broadcast", "ExcelSymbolLoader", and "adjMultiIndex".
  2. gpy.py: This defines symbol classes "GpySet, GpyVariable", and "GpyScalar", to give structure to symbols added using pandas series, pandas indices, or scalars.
  3. simpleDB.py: This defines two simple database classes "GpyDict" and "SimpleDB". The GpyDict class is a simple keyword database with Gpy symbols with a few auxiliary methods included. The "SimpleDB" is also a simple keyword database with Gpy symbols, but with a bit more structure. For instance, it features "aliased sets" as in GAMS, add-or-merge methods, a mergeDbs that allows merging with another SimpleDB instance, and it can add all relevant GpySets to the database by reading from already defined variables (readSets method).

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

pydbs-0.1.8.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

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

pydbs-0.1.8-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

Details for the file pydbs-0.1.8.tar.gz.

File metadata

  • Download URL: pydbs-0.1.8.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for pydbs-0.1.8.tar.gz
Algorithm Hash digest
SHA256 43c266a535cb0674efc7411d39ce04e1fbecdcc54017337f417b06dd7dfb8e15
MD5 01c9cb897ee2191e40879b3ad842adbb
BLAKE2b-256 260f03212137cf24fd0742d265e693221478ff3b0bf9e0e57abfaf5d98537e0d

See more details on using hashes here.

File details

Details for the file pydbs-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: pydbs-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 11.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for pydbs-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 7ac72f8758033f104b4ba982d85a257eac98168a13e86a40589342d917b55050
MD5 45554a1ddc2b76b6967de471a5ddb921
BLAKE2b-256 8da710995decf78756270de3cb7065992200cf52df1610e0300e056ce0d6e342

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