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
SqlAlchemyDatabaseSqlAlchemyDatabase.add()SqlAlchemyDatabase.cleanup_statentries()SqlAlchemyDatabase.driverSqlAlchemyDatabase.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()statentrystatistics
- Module contents
- bexchange.decorators package
- bexchange.matching package
- Submodules
- bexchange.matching.filters module
- bexchange.matching.metadata_matcher module
metadata_matchermetadata_matcher.and_()metadata_matcher.eq()metadata_matcher.find_plain()metadata_matcher.find_source()metadata_matcher.find_value()metadata_matcher.in_()metadata_matcher.init_evaluator()metadata_matcher.like()metadata_matcher.match()metadata_matcher.match_path()metadata_matcher.notin()metadata_matcher.or_()
- Module contents
- 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
sftpclientsftpclient.chdir()sftpclient.connect()sftpclient.disconnect()sftpclient.get()sftpclient.getfo()sftpclient.hostname()sftpclient.isconnected()sftpclient.isdir()sftpclient.isfile()sftpclient.listdir()sftpclient.makedirs()sftpclient.password()sftpclient.port()sftpclient.put()sftpclient.rename()sftpclient.username()
- Module contents
- bexchange.net.zmq package
- bexchange.processor package
- bexchange.runner package
- bexchange.server package
- Submodules
- bexchange.server.backend module
HandledFilesSimpleBackendSimpleBackend.add_configuration_file()SimpleBackend.conf_file_removed()SimpleBackend.conf_file_written()SimpleBackend.create_fileid_from_meta()SimpleBackend.create_matcher()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_handlermonitor_conf_dir_file_watcher
- bexchange.server.sqlbackend module
- bexchange.server.subscription module
- Module contents
- bexchange.statistics package
- Submodules
- bexchange.statistics.statistics module
simple_stat_pluginstatistics_managerstatistics_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:
objectBackend 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
Propertiesinstance 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:
PropertyLookupErrorif 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:
PropertyLookupErrorif 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:
PropertyLookupErrorif 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:
PropertyLookupErrorif 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
Propertiesinstance
- 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)
bexchange.odimutil module¶
bexchange.server_main module¶
bexchange.util module¶
- class bexchange.util.abstractclassmethod(callable)[source]¶
Bases:
classmethodA decorator indicating abstract classmethods.
Similar to abstractmethod.
Usage:
- class C(metaclass=ABCMeta):
@abstractclassmethod
def my_abstract_classmethod(cls, …):
…
- class bexchange.util.jobQueue(qs)[source]¶
Bases:
objectWrapper around queue.Queue to be able to shutdown. This will be supported in python 3.13 but for now this will be enough.
- get(waittime=10)[source]¶
Returns an item from the queue. The wait time is the time in seconds the thread should wait in the condition until checking for any new item in the queue. This condition will be notified whenever put or shutdown is called. :param waittime: The time to wait in seconds inside the condition :return: Will always return an item :throws: pubQueueShutdown