Skip to main content

A minimalist module to containerize child processes

Project description

Curb

A lightweight and simple hardware virtualisation CLI for resource consumption management.

Use Cases:

  1. I'm developing a web app and my staging/prod VM has limits set on CPU/RAM - I want to test my app out locally with the same limits to make sure nothing goes wrong
  2. I want to run a process, and I don't want it to consume resources past a certain limit on my computer

Usage:

Sample Call

python -m curb --cmd="python scripts/empty.py"

Sample Call With Limits

python -m curb --cmd="python scripts/empty.py" --cpu="100%" --ram="512mb"

More Information

python -m curb --help

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

curb-0.0.4.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

curb-0.0.4-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file curb-0.0.4.tar.gz.

File metadata

  • Download URL: curb-0.0.4.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for curb-0.0.4.tar.gz
Algorithm Hash digest
SHA256 55597e7229147968a9afaa097ee332fcffa4f8d8e25b135a3fc5696529a27e2d
MD5 d26e4fdf385594c0a8c669e7e84734b1
BLAKE2b-256 e639bd83972c06afd92c1f56c8966813cb44b18ba6513f05832df7d6da666b62

See more details on using hashes here.

File details

Details for the file curb-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: curb-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for curb-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d50abf4bcd54a79f0364d94da6db38bacfb9ad272e8cb15153dd1c68f1abfdc9
MD5 7243b833aca3a798ba44e22a7c14b0a7
BLAKE2b-256 8fa0c931cb6a5ee7f2b1afd7975c6f438ccc69b5db9cd29e8796e042bfbc892f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page