Skip to content

Commit

Permalink
chg: dev: minimum py version is now 3.8 so remove fallback import
Browse files Browse the repository at this point in the history
* also make the readme intro a bit more clear

Signed-off-by: Stephen Arnold <[email protected]>
  • Loading branch information
sarnold committed Oct 27, 2024
1 parent 3960972 commit a1bce86
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 24 deletions.
30 changes: 15 additions & 15 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
===============================
Python bindings for redis-ipc
===============================
====================================
Python implementation of redis-ipc
====================================

A small python module implementing redis-ipc concepts.

Expand All @@ -10,25 +10,25 @@ A small python module implementing redis-ipc concepts.

|python| |tag| |license| |style|

redis-ipc is an example of how redis_ can be used as an advanced IPC
mechanism on an embedded Linux system, for instance as a substitute for the
more common choice of dbus.
redis-ipc (the concept) comes in 2 flavors, a python module (this repo)
and a lightweight C library implementation. See the (original)
`redis-ipc C library`_ repo for a more detailed description.

redis-ipc is intended to make communication among different logical components
of a system convenient. It is not intended to replace shared memory for high
data-rate transfers between processes, where lowest possible overhead is key,
but to provide a convenient and reliable way to implement the following
IPC mechanisms:
``redis_ipc`` (the Python module) is an example of how redis_ can be used
as an advanced IPC mechanism on an embedded Linux system, for instance
as a substitute for the more common choice of dbus.

``redis_ipc`` is intended to make communication among different logical
components of a system convenient. It is not intended to replace shared
memory for high data-rate transfers between processes, where lowest
possible overhead is key, but to provide a convenient and reliable way
to implement the following IPC mechanisms:

* command queues
* settings
* status
* event channels

redis-ipc comes in 2 flavors, a python module (this repo) and a lightweight
C library implementation. See the (original) `redis-ipc C library`_ repo for
a more detailed description.

.. _redis-ipc C library: https://github.com/VCTLabs/redis-ipc


Expand Down
12 changes: 4 additions & 8 deletions redis_ipc.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,21 @@

import json
import os
import sys
import tempfile
import time
from importlib.metadata import version
from pathlib import Path

import redis
from redis import ConnectionPool, StrictRedis

if sys.version_info < (3, 8):
from importlib_metadata import version
else:
from importlib.metadata import version

__version__ = version('redis_ipc')

# instead of global pdb import, add this where you want to start debugger:
# import pdb; pdb.set_trace()


__version__ = version('redis_ipc')


# exceptions
class RedisIpcExc(Exception):
"""
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ classifiers =
Topic :: Software Development :: Testing

[options]
python_requires = >=3.6
python_requires = >=3.8
zip_safe = True

py_modules =
Expand Down

0 comments on commit a1bce86

Please sign in to comment.