bexchange package¶
Subpackages¶
- bexchange.auth package
- bexchange.client package
- Submodules
- bexchange.client.cfgcmd module
- bexchange.client.cmd module
- bexchange.client.rest module
- Module contents
- bexchange.db package
- Submodules
- bexchange.db.sqldatabase module
SqlAlchemyDatabase
SqlAlchemyDatabase.add()
SqlAlchemyDatabase.cleanup_statentries()
SqlAlchemyDatabase.driver
SqlAlchemyDatabase.find_statentries()
SqlAlchemyDatabase.find_statistics()
SqlAlchemyDatabase.get_average_statentries()
SqlAlchemyDatabase.get_connection()
SqlAlchemyDatabase.get_session()
SqlAlchemyDatabase.get_statistics_entry()
SqlAlchemyDatabase.increment_statistics()
SqlAlchemyDatabase.init_tables()
SqlAlchemyDatabase.list_statentry_ids()
SqlAlchemyDatabase.list_statistic_ids()
SqlAlchemyDatabase.update()
force_sqlite_foreign_keys()
statentry
statistics
- Module contents
- bexchange.decorators package
- bexchange.matching package
- bexchange.naming package
- bexchange.net package
- Submodules
- bexchange.net.connections module
- bexchange.net.fetchers module
- bexchange.net.publishers module
- bexchange.net.senders module
- bexchange.net.sftpclient module
- Module contents
- bexchange.net.zmq package
- bexchange.processor package
- bexchange.runner package
- bexchange.server package
- Submodules
- bexchange.server.backend module
HandledFiles
SimpleBackend
SimpleBackend.add_configuration_file()
SimpleBackend.conf_file_removed()
SimpleBackend.conf_file_written()
SimpleBackend.from_conf()
SimpleBackend.get_auth_manager()
SimpleBackend.get_server_nodename()
SimpleBackend.get_server_publickey()
SimpleBackend.get_server_uptime()
SimpleBackend.get_statistics_manager()
SimpleBackend.get_storage_manager()
SimpleBackend.get_tmp_folder()
SimpleBackend.initialize_configuration()
SimpleBackend.metadata_from_file()
SimpleBackend.metadata_from_file_bdb()
SimpleBackend.metadata_from_file_internal()
SimpleBackend.post_message()
SimpleBackend.process_conf_dir()
SimpleBackend.processor_modified()
SimpleBackend.processor_removed()
SimpleBackend.publication_modified()
SimpleBackend.publication_removed()
SimpleBackend.publish()
SimpleBackend.read_bdb_sources()
SimpleBackend.runner_modified()
SimpleBackend.runner_removed()
SimpleBackend.storage_modified()
SimpleBackend.storage_removed()
SimpleBackend.store_file()
SimpleBackend.subscription_modified()
SimpleBackend.subscription_removed()
config_handler
monitor_conf_dir_inotify_handler
monitor_conf_dir_inotify_handler.FILE_PATTERN
monitor_conf_dir_inotify_handler.MASK
monitor_conf_dir_inotify_handler.match_file()
monitor_conf_dir_inotify_handler.process_IN_CLOSE_WRITE()
monitor_conf_dir_inotify_handler.process_IN_DELETE()
monitor_conf_dir_inotify_handler.process_IN_MOVED_FROM()
monitor_conf_dir_inotify_handler.process_IN_MOVED_TO()
monitor_conf_dir_inotify_handler.run()
monitor_conf_dir_inotify_handler.start()
- bexchange.server.sqlbackend module
- bexchange.server.subscription module
- Module contents
- bexchange.statistics package
- Submodules
- bexchange.statistics.statistics module
simple_stat_plugin
statistics_manager
statistics_manager.cleanup_statentry()
statistics_manager.get_statistics()
statistics_manager.get_statistics_entries()
statistics_manager.increment()
statistics_manager.list_statistic_ids()
statistics_manager.parse_filter()
statistics_manager.plugin_from_conf()
statistics_manager.plugins_from_conf()
statistics_manager.sqldatabase()
- Module contents
- bexchange.storage package
- bexchange.web package
- Submodules
- bexchange.web.app module
- bexchange.web.auth module
- bexchange.web.handler module
- bexchange.web.routing module
- bexchange.web.util module
- Module contents
Submodules¶
bexchange.backend module¶
- class bexchange.backend.Backend[source]¶
Bases:
object
Backend interface
- abstract get_tmp_folder()[source]¶
Returns the global temporary folder name if defined :return the temporary folder name
- abstract metadata_from_file(path)[source]¶
Parses a file and returns the metadata for this file. :param path: path to the file :type path: string :return the metadata for this file
bexchange.client_main module¶
bexchange.config module¶
- class bexchange.config.Properties(values, prefix='')[source]¶
Bases:
object
- filter(prefix)[source]¶
apply a prefix to the key lookups
- Parameters:
prefix – the prefix to apply
- Returns:
a new
Properties
instance with the specified prefix
- get(key, default=<object object>)[source]¶
get the value associated with the key
- Parameters:
key – the key for which to look up the value
default – default value if the key is not found
- Raise:
PropertyLookupError
if the key is not found and no default value is provided.
- get_boolean(key, default=<object object>)[source]¶
get boolean value associated with the key
- Parameters:
key – the key for which to look up the value
default – default value if the key is not found. This can be any value, but when provided as a str, it is parsed as if read from the configuration, otherwise it is returned as it is.
- Raise:
PropertyLookupError
if the key is not found and no default value is provided.
- get_int(key, default=<object object>)[source]¶
get int value associated with the key
- Parameters:
key – the key for which to look up the value
default – default value if the key is not found. This can be any value, but when provided as a str, it is parsed as if read from the configuration, otherwise it is returned as it is.
sep – value separator
- Raise:
PropertyLookupError
if the key is not found and no default value is provided.
- get_list(key, default=<object object>, sep=' ')[source]¶
get list of values associated with the key
- Parameters:
key – the key for which to look up the value
default – default value if the key is not found. This can be any value, but when provided as a str, it is parsed as if read from the configuration, otherwise it is returned as it is.
sep – value separator
- Raise:
PropertyLookupError
if the key is not found and no default value is provided.
- classmethod load(path)[source]¶
Loads a property file :param path: the property file to read :return: a new
Properties
instance
- property prefix¶
bexchange.config_main module¶
bexchange.exchange_optparse module¶
- class bexchange.exchange_optparse.Option(*opts, **attrs)[source]¶
Bases:
Option
- TYPES = ('string', 'int', 'long', 'float', 'complex', 'choice', 'iso8601_datetime', 'list', 'path')¶
- TYPE_CHECKER = {'choice': <function check_choice>, 'complex': <function check_builtin>, 'float': <function check_builtin>, 'int': <function check_builtin>, 'iso8601_datetime': <function check_iso8601_datetime>, 'list': <function check_list>, 'long': <function check_builtin>, 'path': <function check_path>}¶
- bexchange.exchange_optparse.create_parser(*args, **kw)[source]¶
create an option parser with a custom option class that supports the following extra options types:
iso8601_datetime - an ISO 8601 datetime
list - a comma separated list of strings
path - an absolute paths (relative paths are converted to absolute)