Pegasus
A command line tool for automating various tasks.
Installation
Use the package manager pip to install Pegasus.
pip3 install -r requirements.txt
Usage
Web
Run the pegasus_web.py file, this will start a flask server and allow you to access it through the displayed location (http://127.0.0.1:5000/) in a browser.
python3 pegasus_web.py
Terminal
Run the pegasus_terminal.py file, this will load up the terminal version of Pegasus.
python3 pegasus_terminal.py
command:
SQL
Use Pegasus to save and run queries more easily. Configure your connections, queries, and commands (collection of queries) by going to /sqlsetup, or using the SQL Setup option in the settings drop-down.
Create connections to your commonly used databases for MySQL, SQL Server and Azure DBs. Save your queries, then group them together with a command. Include parameters in your queries with %p.
Default Commands
- help (loads list of all available commands
- format (format json, sql, xml, and sql lists from your clipboard)
- sql (save and run your common sql queries)
- update (check and update to the latest version of Pegasus)
Adding modules
Follow the below structure for any new modules.
Save this into the modules folder and import this at the top of the main.py file with the format from modules.file_name import class_name
class example:
"""Tagline here for description of the module. Used when running the default 'help' command."""
def __init__(self):
pass
def __run__(self, params=None):
"""actions performed here"""
return [] # return list of results to be returned to the user
def sub_commands(self):
"""Provide a list of sub-commands that can be called directly without the module code."""
return []
Metadata
Release files for pegasus-client 0.17
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pegasus_client-0.17.tar.gz | 24.8 kB | Without provenance | Details for pegasus_client-0.17.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pegasus_client-0.17-py3-none-any.whl | Python 3 | none | any | Details for pegasus_client-0.17-py3-none-any.whl |
Total release size: 80.8 kB
Release files / pegasus_client-0.17.tar.gz
| Download URL | pegasus_client-0.17.tar.gz |
|---|---|
| Size | 24.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d8a12222e6347515fd28749122acb2a5c987ab08943eee001ee186ae69007e08
|
|
BLAKE2b-256 checksum How to use checksums |
88dbcbcdbd316430173debc8c1374c7f46654e0c5e06eb4a26e8976af8804025
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.6
|
Release files / pegasus_client-0.17-py3-none-any.whl
| Download URL | pegasus_client-0.17-py3-none-any.whl |
|---|---|
| Size | 56.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
61a1a8c070f3aa832fd836bcd59d972919a5907fa30c304260ef596116a3be54
|
|
BLAKE2b-256 checksum How to use checksums |
e3ecc3bccedf5f5ba00a42a3dc37abb4e18c3db0f7c393a7c076d951ac306151
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.6
|
Security for pegasus-client 0.17
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.