Skip to main content

High-level command-line abstraction

Project description

WIP: Scriptor

Run programs with command-line interface with Python


Pypi version build codecov Documentation Status PyPI pyversions

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

Project details


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)

Uploaded Source

Built Distribution

scriptor-0.1.0-py3-none-any.whl (10.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page