dob package

Submodules

dob.complete module

dob.complete.tab_complete(controller)[source]

dob.config module

dob.config.echo_config_table(controller, section, keyname, output_format, table_type)[source]
dob.config.echo_config_value(ctx, controller, parts)[source]
dob.config.edit_config_file(controller)[source]
dob.config.write_config_value(ctx, controller, parts)[source]

dob.controller module

A lite wrapper around the dob-bright Controller.

class dob.controller.Controller(config=None)[source]

Bases: nark.control.NarkControl

A custom controller that adds config handling on top of its regular functionality.

POST_PROCESSORS = []
affirm(condition)[source]
bulk_set_log_levels(log_level)[source]
check_sqlite_store_ready()[source]
create_config(force)[source]
create_config_and_store(fact_cls=<class 'nark.items.fact.Fact'>)[source]
create_data_store(force, fact_cls=<class 'nark.items.fact.Fact'>)[source]
data_store_exists_at
data_store_url
disable_logging()[source]
ensure_config(ctx, configfile_path=None, *keyvals)[source]
find_latest_fact(restrict=None)[source]
find_oldest_fact()[source]
get_loggers()[source]
insist_germinated(fact_cls=<class 'nark.items.fact.Fact'>)[source]

Assist user if config or database not present.

is_germinated
now
now_refresh()[source]
pdb_break_enter()[source]
pdb_break_leave()[source]
pdb_set_trace()[source]
post_process(controller, fact_facts_or_true, show_plugin_error=None, carousel_active=False)[source]
static post_processor(func)[source]
replay_config()[source]
round_out_config()[source]
setup_config(configfile_path=None, *keyvals)[source]
setup_config_from_file_and_cli(configfile_path=None, *keyvals)[source]
setup_logging(verbose=False, verboser=False)[source]

Setup logging for the lib_logger as well as client specific logging.

setup_tty_color(use_color)[source]
sqlite_db_path
standup_store(fact_cls=<class 'nark.items.fact.Fact'>)[source]
store_exists
wire_configience(config_root=None)[source]
write_config(skip_unset=False)[source]

dob.copyright module

Copyright output UX methods.

Display a greeting message providing basic set of information.

dob.copyright.echo_license()[source]

dob.demo module

dob-demo command

dob.demo.demo_config(func)[source]
dob.demo.demo_dob(controller)[source]

dob.details module

dob.details.echo_app_details(controller, full=False)[source]

List details about the runtime environment.

dob.details.echo_app_environs(controller)[source]

List details about runtime in source’able name=value format.

dob.details.echo_data_stats(controller)[source]
dob.details.hamster_time(posits=[])[source]

dob.dob module

A time tracker for the command line. Utilizing the power of hamster! [nark].

dob.dob.edit_fact_by_key(ctx, controller, *args, key, no_editor, edit_text, edit_meta, **kwargs)[source]
dob.dob.generate_add_fact_command(time_hint)[source]
dob.dob.query_activities(ctx, controller, *args, **kwargs)[source]
dob.dob.query_categories(ctx, controller, *args, **kwargs)[source]
dob.dob.query_tags(ctx, controller, *args, **kwargs)[source]

dob.migrate module

dob.migrate.control(controller)[source]
dob.migrate.downgrade(controller)[source]
dob.migrate.upgrade(controller)[source]
dob.migrate.version(controller, silent_check=False, must=True)[source]
dob.migrate.latest_version(controller, silent_check=False, must=True)[source]
dob.migrate.upgrade_legacy_database_file(ctx, controller, file_in, force)[source]
dob.migrate.upgrade_legacy_database_instructions(controller)[source]

dob.plugins module

Plugin installer plugins call… to install themselves.

dob.plugins.install_plugin(package_module_path, package_plugin_name)[source]

Helper function for Dob plugins to use to install themselves.

For an example, see:

and search PyPI for matching “dob-plugin-*” projects.

dob.run_cli module

Defines the main Click Group.

dob.run_cli.pass_controller(f)
dob.run_cli.pass_controller_context(func)[source]
dob.run_cli.dob_versions(include_all=False)[source]

Return CLI version information, either for this package, or all HOTH packages.

Module contents

hamster, hamster, hamster!!! a cuddly, furry time tracker.

dob.get_version(include_head=False)[source]