Run scripts easily...
Project description
Welcome to PSM
What is PSM?
PSM (Python Script Manager) is a script manager for Python programming language. You can manage your scripts with this tool. You can create scripts, use them, delete them and etc. PSM gives you chance to call longer commands with shorter commands. I inspired by npm scripts to make Python version of it. Check out New features or Contribution documentation
Installation
For install PSM you will need pip. I you have not click here After installing pip, enter command below.
pip3 install python-script-manager
To make sure you have successfully installed it,
psm --version
Usage
First you need to initialize PSM in your directory.
psm init
It will create psm.json
which keeps your script informations.
By default, psm init
will add script named hello
which output Hello World!!!
to screen.
Create Script
To create script, use add
command.
psm add
It will ask you name and command for your script. You can also pass them as options
psm add --name="Name of script" --command="Command"
List scripts
To get list of scripts, enter command below:
psm list
Run scripts
To run scripts use syntax below:
psm run [SCRIPT_NAME]
Remove script
If you want to remove unused scripts, enter command below:
psm rm -n [SCRIPT_NAME]
Special scripts
If you name a script which is in list below, you can use special script feature.
List of special scripts:
- start
- deploy
- build
To run special scripts, use syntaxt below:
psm SPECIAL_SCRIPT
Example,
psm build
PIP shortcuts
To install dependencies in requirements.txt
, use
psm install
Or you can output dependencies to requirements.txt
psm freeze
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for python-script-manager-1.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 350f759c78416930442d8cd5ad2cd39cb08b06eeb9a0403416a7541b5668ff8e |
|
MD5 | 8f07c39cb6451432ab66e732bed6213d |
|
BLAKE2b-256 | 9d15606d5461401b15a0974535e1485866c6555bc9f1bc84ff90acab71dbda48 |
Hashes for python_script_manager-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8636593b9114035a89df8e01596eb87d5cb915f83129a66c08f047cdef3f1e8d |
|
MD5 | 9127b55bcf216102c713eb635c18911d |
|
BLAKE2b-256 | 5749a32d3f85e7166607a04b897b1fa9e900d26eba29520c46b302dc82e9c1a8 |