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 > 3.3
- pandas > 0.14
- 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>

### TODO
- There is a bug with some versions of readline
- Other small changes when loading tables
- Self-upgrade

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

Uploaded Source

Built Distribution

easyaccess-1.0.1.macosx-10.6-x86_64.exe (94.1 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for easyaccess-1.0.1.tar.gz
Algorithm Hash digest
SHA256 f54e979047422a7ea9396f2dc6a2bf6c678e9176fbbb635380b15b1a01a8b718
MD5 652b3359653a5f60c38631eee23cc0e4
BLAKE2b-256 239225e531a4342df427d761c2a967d452a6aa2bcb0cfcec5beda86ce404c589

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for easyaccess-1.0.1.macosx-10.6-x86_64.exe
Algorithm Hash digest
SHA256 97eb984470a397e5ded3710f8c98a80b569f80a1e2896d01c225c43d90ea8705
MD5 5998d2e8b5630a7aaf5a896801cf691c
BLAKE2b-256 46bbd0df0a5492dea61c890394463669a492606540075d5e2fd4c0a776de7cef

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