stoq Package

stoq Package

stoq.__init__.major_version = 2

Major version, should only increase when big, important features are integrated.

stoq.__init__.minor_version = 1

Minor version, increase when doing a new stable release

stoq.__init__.micro_version = 0

Micro version, increase when doing a bug fix for a stable release

stoq.__init__.extra_version = ''

extra version, rc1, rc2, etc goes here.

stoq.__init__.release_date = (2017, 9, 25)

the date the software was released

stoq.__init__.stable = True

if this is a stable release

stoq.__init__.version = '2.1.0'

stoq version as a string

stoq.__init__.short_version = '2.1.0'

stoq version as a string, sans the extra version

stoq.__init__.stoq_version = (2, 1, 0)

stoq version as a tuple

dbadmin Module

stoqdbadmin: Command line utility to manipulate the database.

class stoq.dbadmin.StoqCommandHandler(prog_name)[source]
add_options(parser, cmd)[source]
run_command(options, cmd, args)[source]
cmd_help(options)[source]

Show available commands help

cmd_init(options)[source]

Creates and initializes a database

opt_init(parser, group)[source]
cmd_configure(options)[source]

Save initial configuration

cmd_register(options)[source]

Register a station computer

opt_updateschema(parser, group)[source]
cmd_updateschema(options)[source]

Update the database schema

opt_clone(parser, group)[source]
opt_update(parser, group)[source]
cmd_dump(options, output)[source]

Create a database dump

opt_dump(parser, group)[source]
cmd_restore(options, schema)[source]

Restore a database dump

cmd_enable_plugin(options, plugin_name)[source]

Enable a plugin on Stoq

cmd_update_plugins(options)[source]

Update plugins on Stoq

cmd_generate_sintegra(options, filename, month)[source]

Generate a sintegra file

cmd_shell(options)[source]

Drop to a shell for executing SQL queries

opt_shell(parser, group)[source]
cmd_import(options)[source]

Import data into Stoq

opt_import(parser, group)[source]
cmd_console(options)[source]

Drop to a Stoq python console

opt_console(parser, group)[source]
stoq.dbadmin.main(args)[source]

main Module

Stoq startup routines

stoq.main.get_shell(args)[source]
stoq.main.main(args)[source]