New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

brookworker

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

brookworker

Downloads a work script by URL and executes it in a separate interpreter with a JSON parameter file.

pipPyPI
Version
0.1.0
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created

brookworker

downloads a work script by URL and executes it in a separate interpreter with a JSON parameter file.

How it works

  • the job script is downloaded to a private scratch directory
  • the keyword arguments are written to a JSON manifest
  • a separate interpreter executes the script and reads the manifest itself
  • the caller blocks and receives the exit status
from brookworker import run
run(url="https://board.example/job.py", budget=900)

No dependencies. MIT License.

FAQs

Related posts