Skip to main content

run with this

Project description

/ruːt/

RWT (Run With This) provides on-demand dependency resolution.

https://img.shields.io/pypi/v/rwt.svg https://img.shields.io/pypi/pyversions/rwt.svg https://img.shields.io/pypi/dm/rwt.svg https://img.shields.io/travis/jaraco/rwt/master.svg
  • Allows declaration of dependencies at runtime.

  • Downloads missing dependencies and makes their packages available for import.

  • Installs packages to a special staging location such that they’re not installed after the process exits.

  • Keeps a cache of such packages for reuse.

  • Supersedes installed packages when required.

  • Re-uses the pip tool chain for package installation and pkg_resources for working set management.

RWT is not intended to solve production dependency management, but does aim to address the other, one-off scenarios around dependency management:

  • build setup

  • test runners

  • just in time script running

  • interactive development

RWT is a compliment to Pip and Virtualenv and Setuptools, intended to more readily address the on-demand needs and supersede some features like setup_requires.

Status

The project is currently still experimental and liable to undergo substantial revision. Do feel free to try it out and give your feedback at the project page.

Usage

  • as script launcher

  • as runtime dependency context manager

  • as interactive interpreter in dependency context

  • as module launcher (akin to python -m)

Examples

The examples folder in this project includes some examples demonstrating the power and usefulness of the project. Read the docs on those examples for instructions.

Interactive Interpreter

RWT also offers a painless way to run a Python interactive interpreter in the context of certain dependencies:

$ /clean-install/python -m rwt boto
Loading requirements using boto
>>> import boto
>>>

Versioning

RWT uses semver, so you can use this library with confidence about the stability of the interface, even during periods of great flux.

Testing

Invoke tests with setup.py test.

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

rwt-2.6.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rwt-2.6-py2.py3-none-any.whl (9.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file rwt-2.6.tar.gz.

File metadata

  • Download URL: rwt-2.6.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for rwt-2.6.tar.gz
Algorithm Hash digest
SHA256 4c48b418bf0d0be768bfd7066c678f17e510aac451260e94f1cc7ceeb94b3636
MD5 91cb08c0c4fbeb0bc2560b7eed1cc349
BLAKE2b-256 94fe6802db9b79aa4b7eb88f53be4e478dd6f4c9e16a661f769f64f010720448

See more details on using hashes here.

File details

Details for the file rwt-2.6-py2.py3-none-any.whl.

File metadata

  • Download URL: rwt-2.6-py2.py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for rwt-2.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 884ddd535efd0b8ea4fb64eceb662c758ae353889dd31cb9dcb27653dbb400f6
MD5 056aefe0f48445a372fb8899dabd613d
BLAKE2b-256 12d102586c010e88a520a94bcb2c3742f5a0413c83e8e3012900dd404c78c1f0

See more details on using hashes here.

Supported by

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