Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
This package lets you run jobs on Dis.co platform from a Python program.
Using the SDK, you can create computing jobs, run them on Dis.co, and get their results to your local machine. It is possible to offload any kind of Python program to be run on Dis.co.
An Dis.co account.
Python version 3.6 and up.
Dis.co Python SDK installed:
$ pip install disco
import disco
import pathlib
disco.set_credentials('john@example.com', 'my_password', save_to_config=True)
my_file_id = disco.upload_file('my_file.py', pathlib.Path('/home/bob/my_file.py'))
job = disco.Job.create(my_file_id)
job.start()
(task_result,) = job.get_results(block=True)
task_result.write_files('/home/bob/my_result')
The code above uploads the file /home/bob/my_file.py
, runs it on Dis.co cloud, waits for the job to finish,
and writes the results to /home/bob/my_result
.
When the job has been created, you can see it listed in list_jobs()
:
>>> import disco
>>> disco.Job.list_jobs())
[{'id': '5d650d25179854000d72b8cc', 'archived': False, 'name': 'd08e3e029bfc412ebc316e21f1a7dae0', 'status': 'Done', 'taskStates': ['Success']}]
This functions returns an instance of Job
, which gives access to many useful operations on a job
(see the API documentation).
The disco
package supports these environment variables:
DISCO_BASE_URL
- base URL of the Dis.co server. Default: https://app.dis.co
DISCO_EMAIL
- user's email to for authenticating with the Dis.co server.DISCO_PASSWORD
- password for authenticating with the Dis.co server.DISCO_LIVE_TESTS
- set true to run our live tests.FAQs
Run Python jobs on the cloud using DISCO
We found that disco 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.