Skip to main content

The simplest way to enable multiple python environment work togather.

Project description

Just-Run

The simplest way to enable multiple python environment work togather.

Example - call by version

caller.py

# Windows 10
# python 3.6

import justrun as jr

# run work.py through python 3.12 (that you already installed),
# - and get the processing result in this python 3.6 script.
result = jr.call_version(
    312,                        # in Linux/MacOS it should be "3.12" or 3.12
    r"path\to\work.py",
    params=[var, another_var]
)

work.py

# Windows 10
# python 3.12

import justrun as jr

# get parameters from other python interpreter.
params = jr.get_params()

# do your work here
# ...

# and send back the processing result.
jr.return_data(your_processing_result)

Another Example - call by path

caller.py

# Windows 10
# python 3.6

import justrun as jr

# run work.py through specified python virtual environment (created with any version),
# - and get processing result in this python 3.6 script.
result = jr.call_pathon(
    r"path\to\your\python312\environment",    # such as r"c:\python-sandbox\312-myvenv"
    r"path\to\work.py",
    params=[var, another_var]
)

This method allow you to run .py through specified python virtual environment, instead of main environment.

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

justrun-0.1.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

justrun-0.1.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file justrun-0.1.0.tar.gz.

File metadata

  • Download URL: justrun-0.1.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for justrun-0.1.0.tar.gz
Algorithm Hash digest
SHA256 aa11d7937ce6044769bb88436f4e0af05bf72d6ea4934d156807dba3bd398fb0
MD5 473bfec8f16d1db56ab6fdce88c54d1d
BLAKE2b-256 7b8aeff0d772f1591bf001e03abecb928940540634ebc2d4acd37f71ed0061d0

See more details on using hashes here.

File details

Details for the file justrun-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: justrun-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for justrun-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6725c393f9a2a3ae3f68deb3de499a27599bb3e9c857422601a481471289fac7
MD5 9e5b97530de73a85da90ea04d6ae5173
BLAKE2b-256 d49cdd60f7a9adaeb181edf783fc80dd820f62eb08547a7964712e2289693d7c

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