Skip to content

roed314/psycodict

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

psycodict: dictionary-based python interface to PostgreSQL databases

This project was split off from the L-functions and modular forms database so that other projects could use the SQL interface that we created for that project.

Built upon psycopg2, the core of the interface is the ability to create SELECT queries using a dictionary. In addition, the package provides a number of other features that were useful for the LMFDB:

  • Data management tools wrapping PostgreSQL's mechanisms for loading from and saving to files
  • Statistics tables for storing statistics and counts (this is particularly useful in the LMFDB's context since the data changes rarely)

Getting started

You will first need to install postgres and create a user and a database. For example, you might execute the following commands in psql:

CREATE DATABASE database_name;
CREATE USER username;
ALTER USER psetpartners WITH password 'good password';
GRANT ALL PRIVILEGES ON DATABASE database_name TO username;

About

Dictionary-based python interface to an SQL database

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages