Skip to content

A Python interface to the VSC ThinKing Cluster Database

Notifications You must be signed in to change notification settings

moravveji/thnkng

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

thnkng

Purpose

This repository provides a simple Python interface to the MySQL database for the users on the VSC ThinKing cluster (hence the repository name). With this, it is possible to query for the users information across multiple tables, and easily merge the results.

The thnkng_db class can provide instances for two databases:

  • hpc_thnkng_stats
  • hpc_thnkng_reps

Contents

  • db_lib.py: The basic module to import. The thnkng_db class lives here.

Requirements

Example

from import thnkng import db_lib as dl

with dl.thnkng_db('hpc_thnkng_stats') as db:
  conn  = db.get_connection()
	curs  = db.get_cursor()
	query = 'select * from users'
	curs.execute(query)
	users = curs.fetchall()

About

A Python interface to the VSC ThinKing Cluster Database

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages