Skip to main content

Simple Postgres access for Python Apps through psycopg2.

Project description

Hubbub Blubber

Notice - this package is only compatible with Hubbub projects.

Getting Started

Blubber is an internal object relational mapper for Hubbub's marketplace database. This is important for consistent object structure across all of Hubbub's projects. It's called 'Blubber' because it's a thick layer on raw data (lol)

Prerequisites

Blubber requires you to define two variables in your environment: 'BLUBBER_DEBUG' and 'DATABASE_URL'.

'DATABASE_URL' must be a postgresql URL formatted as 'postgresql://NAME:PASSWORD@HOST:PORT/USER'. 'BLUBBER_DEBUG' takes a value of '0' for FALSE or '1' for TRUE. Set these before using, and Blubber will run smoothly:

export BLUBBER_DEBUG=1
export DATABASE_URL=postgresql://fakeUser:fakePassword@localhost:5432/fakeDB

Installing

Run the following command in terminal to install the python package:

pip3 install blubber-orm

About BLUBBER_DEBUG

In debug mode, Blubber will print all of your queries to terminal. In a future release, these outputs will also catch errors and can be configured to log to a file or email to an admin.

Developer Tools

Create a play-version of the Hubbub database and fill it with dummy data under /src/blubber_orm/dev!

Built With

  • psycopg2 - The DBAPI for running posgresql queries

Contributing

Blubber is currently not taking contributions. This policy may change in the future.

License

This project is licensed under the Apache License 2.0 - see the LICENSE.md file for details

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

blubber-orm-2.0.6.tar.gz (17.8 kB view details)

Uploaded Source

Built Distribution

blubber_orm-2.0.6-py3-none-any.whl (17.9 kB view details)

Uploaded Python 3

File details

Details for the file blubber-orm-2.0.6.tar.gz.

File metadata

  • Download URL: blubber-orm-2.0.6.tar.gz
  • Upload date:
  • Size: 17.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for blubber-orm-2.0.6.tar.gz
Algorithm Hash digest
SHA256 a4fa2e036c2556a326b9b98b121293e92677ad20aa291e865dd8d048d5755f16
MD5 ad1655d11b9738ccec480082b10e128f
BLAKE2b-256 11e5e963a4386f7a1686d03626baadc06644af5f3bdb7d497ef09b42416bbfd1

See more details on using hashes here.

File details

Details for the file blubber_orm-2.0.6-py3-none-any.whl.

File metadata

  • Download URL: blubber_orm-2.0.6-py3-none-any.whl
  • Upload date:
  • Size: 17.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for blubber_orm-2.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 9fc90ae26c62e932b728eb7b3317bc79288f2a34e723cc02b84706b2fabe47e9
MD5 1486ce9cfa0bd015fbf7337d9e111d1f
BLAKE2b-256 49bc1223da8b3d474606a0aa3f1d23cf0e9e23726d68e1ae43f88485914c011d

See more details on using hashes here.

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