Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
autocompletion with redis <http://redis.io>
_ based on:
redis-completion is capable of storing a large number of phrases and quickly searching them for matches. Rich data can be stored and retrieved, helping you avoid trips to the database when retrieving search results.
check out the documentation <http://redis-completion.rtfd.org/>
_ for more info.
If you just want to store really simple things, like strings:
::
engine = RedisEngine()
titles = ['python programming', 'programming c', 'unit testing python',
'testing software', 'software design']
map(engine.store, titles)
>>> engine.search('pyt')
['python programming', 'unit testing python']
>>> engine.search('test')
['testing software', 'unit testing python']
If you want to store more complex data, like blog entries:
::
Entry.create(title='an entry about python', published=True)
Entry.create(title='all about redis', published=True)
Entry.create(title='using redis with python', published=False)
for entry in Entry.select():
engine.store_json(entry.id, entry.title, {
'published': entry.published,
'title': entry.title,
'url': entry.get_absolute_url(),
})
>>> engine.search_json('pytho')
[{'published': True, 'title': 'an entry about python', 'url': '/blog/1/'},
{'published': False, 'title': 'using redis with python', 'url': '/blog/3/'}]
# just published entries, please
>>> engine.search_json('redis', filters=[lambda i: i['published'] == True])
[{u'published': True, u'title': u'all about redis', u'url': u'/blog/2/'}]
Install with pip::
pip install redis-completion
Install via git::
git clone https://github.com/coleifer/redis-completion.git
cd redis-completion
python setup.py install
.. image:: http://redis-completion.readthedocs.org/en/latest/_images/schema.jpg
FAQs
autocomplete with redis
We found that redis-completion demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.