Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Mongo-TaskQueue is a queueing data structure built on top of a MongoDB collection.
Just create an instance of TaskQueue and start to append to your queue:
>>> from mongotq import get_task_queue
>>> task_queue = get_task_queue(
database_name=YOUR_MONGO_DATABASE_NAME,
collection_name='queueGeocoding',
host=YOUR_MONGO_DB_URI,
ttl=-1 # permanent queue
)
>>> task_queue.append({'species': 'Great Horned Owl'})
>>> task_queue.append({'species': 'Eastern Screech Owl'})
>>> task_queue.append({'species': 'Northern Saw-whet Owl'})
>>> task_queue.append({'species': 'Snowy Owl'})
>>> task_queue.append({'species': 'Whiskered Screech Owl'})
Then you can simply check the tail of your queue:
>>> task_queue.tail(n=5)
{'_id': ObjectId('6392375588c63227371c693c'),
'assignedTo': None,
'createdAt': datetime.datetime(2022, 12, 8, 14, 13, 25, 99685),
'errorMessage': None,
'modifiedAt': datetime.datetime(2022, 12, 8, 14, 13, 25, 99685),
'payload': {'species': 'Great Horned Owl'},
'priority': 0,
'retries': 0,
'status': 'new'}
{'_id': ObjectId('6392375588c63227371c693d'),
'assignedTo': None,
'createdAt': datetime.datetime(2022, 12, 8, 14, 13, 25, 129570),
'errorMessage': None,
'modifiedAt': datetime.datetime(2022, 12, 8, 14, 13, 25, 129570),
'payload': {'species': 'Eastern Screech Owl'},
'priority': 0,
'retries': 0,
'status': 'new'}
{'_id': ObjectId('6392375588c63227371c693e'),
'assignedTo': None,
'createdAt': datetime.datetime(2022, 12, 8, 14, 13, 25, 155404),
'errorMessage': None,
'modifiedAt': datetime.datetime(2022, 12, 8, 14, 13, 25, 155404),
'payload': {'species': 'Northern Saw-whet Owl'},
'priority': 0,
'retries': 0,
'status': 'new'}
{'_id': ObjectId('6392375588c63227371c693f'),
'assignedTo': None,
'createdAt': datetime.datetime(2022, 12, 8, 14, 13, 25, 179804),
'errorMessage': None,
'modifiedAt': datetime.datetime(2022, 12, 8, 14, 13, 25, 179804),
'payload': {'species': 'Snowy Owl'},
'priority': 0,
'retries': 0,
'status': 'new'}
{'_id': ObjectId('6392375588c63227371c6940'),
'assignedTo': None,
'createdAt': datetime.datetime(2022, 12, 8, 14, 13, 25, 204284),
'errorMessage': None,
'modifiedAt': datetime.datetime(2022, 12, 8, 14, 13, 25, 204284),
'payload': {'species': 'Whiskered Screech Owl'},
'priority': 0,
'retries': 0,
'status': 'new'}
5 Task(s) available in the TaskQueue
The only dependency is pyMongo.
The easiest way to install Mongo-TaskQueue is using pip
:
pip install mongo-taskqueue
FAQs
Queueing data structure on top of a MongoDB collection
We found that mongo-taskqueue 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.