Single command to run python3 script anywhere. pyx = install python + install git + checkout repository + run your script.
-
Run git repository python scripts
$ pyx --branch=master https://github.com/darumatic/pyx.git docs/example/demo.py
or
$ pyx git@github.com:darumatic/pyx.git docs/example/demo.py
For github repositories, we could also use the short repository name.
$ pyx darumatic/pyx docs/example/demo.py
-
Run local python scripts
$ pyx ./darumatic/pyx docs/example/demo.py
- Download the binary archive file. https://github.com/darumatic/pyx/releases/download/1.0.5/pyx_1.0.5_Windows_x86_64.zip
- Unzip the archive file.
- Open terminal, run
./pyx --version
- Open terminal, and run the following command.
sudo wget -c https://github.com/darumatic/pyx/releases/download/1.0.5/pyx_1.0.5_Linux_x86_64.tar.gz -O - | sudo tar -xz -C /usr/local/bin
- Run
./pyx --version
- Open terminal, and run the following command.
sudo wget -c https://github.com/darumatic/pyx/releases/download/1.0.5/pyx_1.0.5_Darwin_x86_64.tar.gz -O - | sudo tar -xz -C /usr/local/bin
- Run
./pyx --version
- pyx will first check if python3 installed in local.
- if not, pyx will download the static build python and extract to ~/.pyx/python
- pyx will check if the repository exists in local.
- if not, pyx clone the repository.
- If the repository exists, pyx will pull the repository to keep the script updated.
- pyx call python3 to run the script.
pyx makes sharing python scripts among the teams easier.
- Single command to run python scripts, easy to document.
- Keep the script updated.