Skip to main content

Easy Access to access DES DB

Project description

# easyaccess
refactored version of trivialAccess

Python Command Line Interpreter to access Oracle DES DB
using cx_Oracle

## Requirements

- Oracle Client > 11g.2
- cx_Oracle
- pyfits
- pandas
- termcolor
- PyTables (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

## To do

- load tables from fits file and hdf5 files
- command for self upgrade

## 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>

Project details


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.0.tar.gz (15.6 kB view details)

Uploaded Source

Built Distribution

easyaccess-1.0.0.macosx-10.6-x86_64.exe (92.4 kB view details)

Uploaded Source

File details

Details for the file easyaccess-1.0.0.tar.gz.

File metadata

  • Download URL: easyaccess-1.0.0.tar.gz
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for easyaccess-1.0.0.tar.gz
Algorithm Hash digest
SHA256 44aebe4979ae26c550535e4a07cc5e673df05b92e8337f0c914785e45bcd316c
MD5 76eef397c73cc8ac34ee81a34866761b
BLAKE2b-256 8a7bd1eaed16277a1213f6373e792d4b61327b914d99d2ea92850edb9438d127

See more details on using hashes here.

File details

Details for the file easyaccess-1.0.0.macosx-10.6-x86_64.exe.

File metadata

File hashes

Hashes for easyaccess-1.0.0.macosx-10.6-x86_64.exe
Algorithm Hash digest
SHA256 23bd2494e9733ed9f43cf6781e4e3d0a1eee962ae34bc51e31265514437653ce
MD5 9b37750731c6f0b10fabad545d81e581
BLAKE2b-256 cc3ecff3cb092da9b653fbce196b747c9d72663aabc625af471df6c6b877fbdc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page