oriole_service package

Submodules

oriole_service.api module

oriole_service.api.change_lang(lang='zh')[source]
oriole_service.api.get_logger()[source]
oriole_service.api.halt(service)[source]
oriole_service.api.remote_test(fil, server, time=5)[source]
oriole_service.api.run(service)[source]
oriole_service.api.test(service)[source]

oriole_service.app module

class oriole_service.app.App[source]

Bases: object

Connect database

db = <Db [unbound]>
init()[source]

Only for legacy

log = <Logger services (DEBUG)>
ms_config()[source]
ms_ping()[source]
ms_services()[source]
ms_update_service()[source]
ms_version()[source]
name = 'super_thread'
obj2dict(obj)
rs = <Rs [unbound]>
ver = '0.0.1'

oriole_service.cf module

oriole_service.cli module

oriole_service.cli.main()[source]

oriole_service.db module

class oriole_service.db.Base(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.Base

class oriole_service.db.Db(Base, uri='database', read_only=False)[source]

Bases: nameko.extensions.DependencyProvider

get_dependency(worker_ctx)[source]

Called before worker execution. A DependencyProvider should return an object to be injected into the worker instance by the container.

setup()[source]

Called on bound Extensions before the container starts.

Extensions should do any required initialisation here.

worker_teardown(worker_ctx)[source]

Called after a service worker has executed a task.

Dependencies should do any post-processing here, raising exceptions in the event of failure.

Example: a database session dependency may commit the session

Parameters:
worker_ctx : WorkerContext

See nameko.containers.ServiceContainer.spawn_worker

class oriole_service.db.Rs(uri='datasets')[source]

Bases: nameko.extensions.DependencyProvider

get_dependency(worker_ctx)[source]

Called before worker execution. A DependencyProvider should return an object to be injected into the worker instance by the container.

setup()[source]

Called on bound Extensions before the container starts.

Extensions should do any required initialisation here.

oriole_service.ext module

class oriole_service.ext.CfExtension(env)[source]

Bases: jinja2.ext.Extension

Restore configuration.

identifier = 'oriole_service.ext.CfExtension'

oriole_service.log module

class oriole_service.log.Log(module='')[source]

Bases: nameko.extensions.DependencyProvider

get_dependency(worker_ctx)[source]

Called before worker execution. A DependencyProvider should return an object to be injected into the worker instance by the container.

setup()[source]

Called on bound Extensions before the container starts.

Extensions should do any required initialisation here.

oriole_service.test module

oriole_service.test.app(monkeypatch)[source]

Module contents