
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Wrapper around Redis for message queues.
pip install dock # pypi
pip install git+https://github.com/vzhong/dock.git # github
First, start your Redis server.
# server.py
from dock import Dock
dock = Dock('test')
while True:
msg, respond = dock.recv()
print(msg, respond)
print('got message {}'.format(msg))
respond({
'ack': msg,
'msg': 'hello'
})
# client.py
from dock import Dock
dock = Dock('test')
for i in range(5):
answer = dock.send('message{}'.format(i))
print(answer)
You can see how the server and client interact by running the two files:
python server.py # in one terminal
python client.py # in another terminal
FAQs
Batch job queue for ML inference.
We found that dock 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.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.