pm4py.streaming.util.dictio.versions package

Submodules

pm4py.streaming.util.dictio.versions.classic module

pm4py.streaming.util.dictio.versions.classic.apply(parameters=None)[source]

Returns an object that is the classic implementation of a Python dictionary

pm4py.streaming.util.dictio.versions.redis module

class pm4py.streaming.util.dictio.versions.redis.Parameters(value)[source]

Bases: enum.Enum

An enumeration.

DICT_ID = 'dict_id'
HOSTNAME = 'hostname'
PORT = 'port'
class pm4py.streaming.util.dictio.versions.redis.ThreadSafeRedisDict(redis_connection, *args, **kw)[source]

Bases: dict

flushall()[source]
flushdb()[source]
itervalues()[source]
keys() → a set-like object providing a view on D’s keys[source]
values() → an object providing a view on D’s values[source]
pm4py.streaming.util.dictio.versions.redis.apply(parameters: Optional[Dict[Any, Any]] = None)[source]

Create a Python dictionary supported by a Redis database

Parameters

parameters – Parameters of the algorithm, including: - Parameters.HOSTNAME => hostname of the connection to Redis (default: 127.0.0.1) - Parameters.PORT => port of the connection to Redis (default: 6379) - Parameters.DICT_ID => integer identifier of the specific dictionary in Redis (default: 0)

Returns

Redis (Python-like) dictionary

Return type

r

pm4py.streaming.util.dictio.versions.thread_safe module

class pm4py.streaming.util.dictio.versions.thread_safe.ThreadSafeDict(*args, **kw)[source]

Bases: dict

itervalues()[source]
keys() → a set-like object providing a view on D’s keys[source]
values() → an object providing a view on D’s values[source]
pm4py.streaming.util.dictio.versions.thread_safe.apply(parameters: Optional[Dict[Any, Any]] = None)[source]

Module contents