pm4py.streaming.util.dictio.versions package#

This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de).

PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

PM4Py is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with PM4Py. If not, see <https://www.gnu.org/licenses/>.

Submodules#

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

This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de).

PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

PM4Py is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with PM4Py. If not, see <https://www.gnu.org/licenses/>.

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#

This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de).

PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

PM4Py is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with PM4Py. If not, see <https://www.gnu.org/licenses/>.

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

Bases: Enum

An enumeration.

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

Bases: dict

keys() a set-like object providing a view on D's keys[source]#
values() an object providing a view on D's values[source]#
itervalues()[source]#
flushdb()[source]#
flushall()[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#

r

Redis (Python-like) dictionary

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

This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de).

PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

PM4Py is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with PM4Py. If not, see <https://www.gnu.org/licenses/>.

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

Bases: dict

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