Pythonic replacement for GNU Make
Project description
Jeeves Shell
A Pythonic replacement for GNU Make, with re-usability and modularity added as a bonus.
Jeeves transforms your shell experience by enabling you to create custom Python-based shell commands to manage and automate your development workflows.
Features
- Custom Shell Commands: Construct commands to build, compile, lint, format, test, deploy, and propel your projects forward.
- Python-Powered: Use Python for readable and maintainable workflows.
- Rich Integrations: Stylish command output with
rich
andsh
. - Plugin System: Share your setup across projects.
Quick Start
Install with pip:
pip install 'jeeves-shell[all]'
Or with poetry:
poetry add --group dev --extras=all jeeves-shell
Example
Create a file named jeeves.py
in the root of your project.
import rich
import sh
def hi():
"""Hello world."""
user_name = sh.whoami()
machine = sh.uname('-a')
rich.print(f'Hello [b]{user_name}[/b]!')
rich.print(f'This code is running on: [b]{machine}[/b].')
And then execute in your shell:
j hi
this should print something along the lines of:
Hello john-connor!
This code is running on: Cyberdyne T800!
Learn More
Read the tutorial!
Credits
This project was generated with wemake-python-package
.
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
jeeves_shell-2.3.2.tar.gz
(5.5 kB
view hashes)
Built Distribution
Close
Hashes for jeeves_shell-2.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cac709f7b48be146c0d41f238be137b9de9e74016139427daa6a95a9c497879e |
|
MD5 | 79e41f466fd87af1e90294563daf1ee0 |
|
BLAKE2b-256 | 5f21887006aaf7f1db06b60e55e2670be9424625fe6a88cf9d76c720f0f7e12e |