Helper package for the Data Engineering course at Colorado School of Mines
Project description
Mines Data Engineering
This package simplifies the process of starting common database systems in the background on Singularity Hub.
Supported Databases
- MongoDB
- TimescaleDB (and Postgres)
Examples
MongoDB
from mines_data_engineering import start_mongo
import pymongo
# will need wait a couple minutes the first time this happens
# while Singularity downloads and converts the Docker image
connection_string = start_mongo()
client = pymongo.MongoClient(connection_string)
client.my_db.my_col.insert_one({'finally': 'working'})
Postgres/TimescaleDB
from mines_data_engineering import start_postgres
import psycopg2
# will need wait a couple minutes the first time this happens
# while Singularity downloads and converts the Docker image
connection_string = start_postgres()
conn = psycopg2.connect(connection_string)
cur = conn.cursor()
cur.execute("SELECT 1")
assert next(cur) == (1,)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file mines_data_engineering-0.1.7.tar.gz
.
File metadata
- Download URL: mines_data_engineering-0.1.7.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.9.12 Linux/6.1.11-76060111-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 563b0e07ff45d0763f861017bddb5d28670f66a092608141b7d8f37c0814466c |
|
MD5 | d8d00804b6bd9dc7a4ee3463399b1b0d |
|
BLAKE2b-256 | 74b0de28aaf97a779c5e318073f26108e49a9df0da894d3356e5a9c014047f0c |
File details
Details for the file mines_data_engineering-0.1.7-py3-none-any.whl
.
File metadata
- Download URL: mines_data_engineering-0.1.7-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.9.12 Linux/6.1.11-76060111-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae17d1d52988f5b628fedd974b6ce688aac19f4c7cf004a81236b216de756640 |
|
MD5 | 23edf5a5c15fb32f06a26b056cfe31c7 |
|
BLAKE2b-256 | 387d0e0abf0b15c8f44b7ca834b6e5721a89328498a78927c5087048f59924e7 |