Skip to content

tlb-lab/credoscript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

credoscript is the CREDO database Application Programming Interface (API) developed to facilitate analysis of the stored data by simplifying access to the database, enabling scripting and integration of other useful Python modules and functions. The Object-relational mapping (ORM) capabilities are implemented with the help of SQLAlchemy, a Python SQL Toolkit and Object Relational Mapper.

Installation

Important

The credoscript API can only be used internally by users with direct access to the database server.

Software requirements

credoscript is written in the Python programming language and tested with versions 2.6 and 2.7. CREDO uses PostgreSQL as relational database management system (RDBMS) so a Python driver for PostgreSQL is required to connect to the database. Psycopg can be installed on Debian-based systems with

$ sudo apt-get install python-psycopg2

or more generally with

$ sudo pip install psycopg2

It also requires SQLAlchemy version 0.7 or higher for object-relational mapping (ORM) purposes.

Obtaining the source code

The source code for credoscript can be obtained by either downloading a source package from the Bitbucket repository or by cloning it with

$ hg clone https://bitbucket.org/blundell/credoscript

And switching to the stable branch:

$ hg update stable

The directory containing the credoscript source code should be added to the $PYTHONPATH environment variable.

Configuring credoscript

The connection settings inside the default configuration file config-default.json have to be changed and the file renamed to config.json.

License

Credoscript is released under the MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages