![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
|PyPI version| |build status| |Coverage Status|
You may not need heavyweights like Celery or RQ. Maintaing an AMQP server might be overkill. There's a simpler, easier way to distribute work.
Redset provides simple, generic sorted sets backed by Redis that can be used to coordinate distributed systems and parcel out work. Unlike more common distribution libraries like Celery or RQ, redset avoids duplicate work for certain use-cases by maintaining a set of tasks instead of a list or queue. And it does so with a dead-simple interface that feels natural for Python.
Redset is currently used in the wild to do things like
redis.client.Redis
interface, we don't ask any questions.set
interface.. code:: python
import json
import redis
from redset import TimeSortedSet
r = redis.Redis()
ss = TimeSortedSet(r, 'important_json_biz', serializer=json)
ss.add({'foo': 'bar1'})
ss.add({'foo': 'bar2'})
ss.add({'foo': 'bar3'})
ss.add({'foo': 'bar3'})
len(ss)
# 3
# ...some other process A
ss.peek()
# {'foo': 'bar1'}
ss.pop()
# {'foo': 'bar1'}
# ...meanwhile in process B (at exactly same time as A's pop)
ss.take(2)
# [{'foo': 'bar2'}, {'foo': 'bar3'}]
Here <http://redset.readthedocs.org/en/latest/>
__
This software was developed at Percolate <https://percolate.com>
__,
where we use it for all sorts of things that involve maintaining
synchronized sets of things across process boundaries. A common use-case
is to use redset for coordinating time-sensitive tasks where duplicate
requests may be generated.
Redset is unopinionated about how consumers look or behave. Want to have a plain 'ol Python consumer managed by supervisor? Fine. Want to be able to pop off items from within a celery job? Great. Redset has no say in where or how it is used: mechanism, not policy.
redset.SortedSet
and its subclasses can be instantiated with a few
paramters that are notable.
Specifying a serializer
Since Redis only stores primitive numbers and strings, handling
serialization and deserialization is a key part of making redset set
usage simple in Python.
A ``serializer`` instance can be passed (which adheres to the
``redset.interfaces.Serializer`` interface, though it need not subclass
it) to automatically handle packing and unpacking items managed with
redset.
Specifying a scorer
~~~~~~~~~~~~~~~~~~~
A callable that specifies how to generate a score for items being added
can also be passed to SortedSet's constructor as ``scorer``. This
callable takes one argument, which is the item *object* (i.e. the item
before serialization) to be "scored."
Related projects
----------------
- `redis-py <https://github.com/andymccurdy/redis-py>`__
- `celery <https://github.com/celery/celery>`__
- `RQ <http://python-rq.org/>`__
.. |PyPI version| image:: https://badge.fury.io/py/redset.png
:target: http://badge.fury.io/py/redset
.. |build status| image:: https://travis-ci.org/percolate/redset.png?branch=master
:target: https://travis-ci.org/percolate/redset
.. |Coverage Status| image:: https://coveralls.io/repos/percolate/redset/badge.png?branch=master
:target: https://coveralls.io/r/percolate/redset?branch=master
FAQs
Simple, distributed sorted sets with redis
We found that redset demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.