High-level command-line abstraction
Project description
WIP: Scriptor
Run programs with command-line interface with Python
What is it?
Scriptor is a high-level library for command-line. Scriptor makes it easy to integrate other CLI programs to your Python application.
Core features:
- Run programs sync or async using same syntax
- High-level program abstraction
- Easy program parametrization
Install it from PyPI:
pip install scriptor
Why Scriptor?
Scriptor abstracts subprocess
and asyncio.subprocess
to the same syntax making it easy to use both of them and
switch between.
More Examples
There is also a query language for arbitrary search queries:
>>> from scriptor import Program
>>> python = Program("python")
>>> # Call the program (and wait for finish)
>>> python("myscript.py")
Same with async:
>>> from scriptor import Program
>>> python = Program("python")
>>> # Call the program (and wait for finish)
>>> await python.call_async("myscript.py")
See more from the documentation.
If the library helped you, consider buying a coffee for the maintainer ☕.
Author
- Mikael Koli - Miksus - koli.mikael@gmail.com
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
scriptor-0.1.0.tar.gz
(42.1 kB
view hashes)
Built Distribution
scriptor-0.1.0-py3-none-any.whl
(10.6 kB
view hashes)