Easy Access to access DES DB
Project description
# easyaccess
refactored version of trivialAccess for accessing the DB
Python Command Line Interpreter to access Oracle DES DB
using cx_Oracle
For a short tutorial chek [here](http://deslogin.cosmology.illinois.edu/~mcarras2/data/DESDM.html)
(Using des credentials)
## Requirements
- Oracle Client > 11g.2 (External library, no python)
Check [here](https://deswiki.cosmology.illinois.edu/confluence/display/CMBT/Instructions+for+installing+Oracle+client+and+easyaccess+without+EUPS) for instructions on how to install these libraries
- cx_Oracle
- pyfits >= 3.3
- pandas >= 0.14
- termcolor
- PyTables (optional, for hdf5 output)
## Some *nice* features
- Smart tab completion for commands, table names, column names and file paths accordingly
- write output results to csv, tab, fits files or HDF5 files
- load tables from csv or fits directly into DB
- intrinsic db commands to describe tables, own schema, quota and more
- It can be imported as module
- Can run command directly from command line
- Load sql query from file and/or from editor
- Many more
## Basic use
### Running SQL commands
Once inside the interpreter run SQL queries by adding a ; at the end::
DESDB ~> select ... from ... where ... ;
To save the results into a table add ">" after the end of the query (after ";") and namefile at the end of line
DESDB ~> select ... from ... where ... ; > test.fits
The files supported so far are (.csv, .tab, .fits, .h5) any other extension is ignored
### Load tables
To load a table it needs to be in a csv format with columns names in the first row
the name of the table is taken from filename
DESDB ~> load_table <filename>
### Load SQL queries
To load sql queries just run:
DESDB ~> loadsql <filename.sql>
or
DESDB ~> @filename.sql
The format is the same as in command line, SQL statement must end with ;
and to write output files it must be followed by > <output file>
### TODO
- There is a bug with some versions of readline
- Other small changes when loading tables
- Self-upgrade
refactored version of trivialAccess for accessing the DB
Python Command Line Interpreter to access Oracle DES DB
using cx_Oracle
For a short tutorial chek [here](http://deslogin.cosmology.illinois.edu/~mcarras2/data/DESDM.html)
(Using des credentials)
## Requirements
- Oracle Client > 11g.2 (External library, no python)
Check [here](https://deswiki.cosmology.illinois.edu/confluence/display/CMBT/Instructions+for+installing+Oracle+client+and+easyaccess+without+EUPS) for instructions on how to install these libraries
- cx_Oracle
- pyfits >= 3.3
- pandas >= 0.14
- termcolor
- PyTables (optional, for hdf5 output)
## Some *nice* features
- Smart tab completion for commands, table names, column names and file paths accordingly
- write output results to csv, tab, fits files or HDF5 files
- load tables from csv or fits directly into DB
- intrinsic db commands to describe tables, own schema, quota and more
- It can be imported as module
- Can run command directly from command line
- Load sql query from file and/or from editor
- Many more
## Basic use
### Running SQL commands
Once inside the interpreter run SQL queries by adding a ; at the end::
DESDB ~> select ... from ... where ... ;
To save the results into a table add ">" after the end of the query (after ";") and namefile at the end of line
DESDB ~> select ... from ... where ... ; > test.fits
The files supported so far are (.csv, .tab, .fits, .h5) any other extension is ignored
### Load tables
To load a table it needs to be in a csv format with columns names in the first row
the name of the table is taken from filename
DESDB ~> load_table <filename>
### Load SQL queries
To load sql queries just run:
DESDB ~> loadsql <filename.sql>
or
DESDB ~> @filename.sql
The format is the same as in command line, SQL statement must end with ;
and to write output files it must be followed by > <output file>
### TODO
- There is a bug with some versions of readline
- Other small changes when loading tables
- Self-upgrade
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
easyaccess-1.0.3.tar.gz
(18.6 kB
view details)
Built Distribution
File details
Details for the file easyaccess-1.0.3.tar.gz
.
File metadata
- Download URL: easyaccess-1.0.3.tar.gz
- Upload date:
- Size: 18.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58796fe7b71d985841c4a58785b026024b676ce63282a1733d8726ac3b545024 |
|
MD5 | 9971b095d64d7cb74ac2d456bef784f1 |
|
BLAKE2b-256 | bc5b4083be55c246c8b2be857d344c5f94d7544ddfcd7990564f6891ec9f2c47 |
File details
Details for the file easyaccess-1.0.3.macosx-10.9-intel.exe
.
File metadata
- Download URL: easyaccess-1.0.3.macosx-10.9-intel.exe
- Upload date:
- Size: 98.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c02f5232463bf813b3b50f8e2c1d424cfd043dbcbd5d9527c164d1099542087 |
|
MD5 | e03bd8816e16de4c6b9d21ac4f4a5ee7 |
|
BLAKE2b-256 | cd127b1a1388897dcc7118d13d401956fd6f25673d585dae2826124acc621711 |