('tessdb command line tool to manage tessdb database',)
Project description
tessdb command line (overview)
Linux command line utility. TESS stands for Cristobal Garcia's Telescope Encoder and Sky Sensor It is being used as part of the STARS4ALL Project.
Description
tess
is a Linux command line utility to perform some common operations on the TESS database without having to write SQL statements. As this utility modifies the database, it is necessary to invoke it within using sudo
. Also, you should ensure that the database is not being written by tessdb
systemd service to avoid database is locked exceptions, either by using it at daytime or by pausing the tessdb
systemd service with /usr/local/bin/tessdb_pause
and then resume it with /usr/local/bin/tessdb_resume
.
INSTALLATION
Requirements
The following components are needed and should be installed first:
- python 2.7.x (tested on Ubuntu Python 2.7.6) or python 3.6+
Installation
Installation is done from GitHub:
git clone https://github.com/astrorafael/tessdb-cmdline.git
cd tess-cmdline
sudo python setup.py install
Note: Installation from PyPi is now obsolete. Do not use the package uploaded in PyPi.
- All executables are copied to
/usr/local/bin
- The database is located at
/var/dbase/tess.db
by default, although a diffferent path may be specified.
DATA MODEL
Dimensional Modelling
The data model follows the [dimensional modelling] (https://en.wikipedia.org/wiki/Dimensional_modeling) approach by Ralph Kimball. More references can also be found in Star Schemas.
The data model
The latest version of the data model can be found in tessdb-server repository.
COMMANDS
The tess
command line tool is self-explanatory and has several subcommands. You can find the all by typing tess --help
pi@rb-tess:~ $ tess --help
usage: /usr/local/bin/tess [-h] {instrument,location,readings} ...
positional arguments:
{instrument,location,readings}
instrument instrument commands
location location commands
readings readings commands
optional arguments:
-h, --help show this help message and exit
Each subcommand has its own help that you may display by issuing tess <subcommand> --help
Example:
pi@rb-tess:~ $ tess location list --help
usage: /usr/local/bin/tess location list [-h] [-p PAGE_SIZE] [-d DBASE]
optional arguments:
-h, --help show this help message and exit
-p PAGE_SIZE, --page-size PAGE_SIZE
list page size
-d DBASE, --dbase DBASE
SQLite database full file path
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
File details
Details for the file tessdb-cmdline-1.1.2.tar.gz
.
File metadata
- Download URL: tessdb-cmdline-1.1.2.tar.gz
- Upload date:
- Size: 32.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d81784080665e7f1cffd5a9acf80d6ec54f4037c55059267b476ac80f86d150b |
|
MD5 | 45e177b3aeb9119ca3de9a8d558fa3dc |
|
BLAKE2b-256 | cfb4bcbe24b2d64ecec0b9963da8c1a1574704b3a25806ada3ad2a26d0c707ce |