Skip to main content

Simplified invokation of typer apps from any directory.

Project description

typer-invoke

pypi Project License - MIT

Simplified invocation of typer apps from any directory.

The idea is that you place typer apps in a directory in your project and then you can invoke them from any directory.

Why?

The main use case is for project management that require custom scripts for various tasks. Wrapping those scripts as typer apps makes them easier to use. Making typer easier to use makes those scripts even easier to use.

An alternative to:

VS Invoke

The main driver for this project is as a replacement for Invoke, which I've been using for a while and found the following limitations:

  • --help and --list options are clunky, in that they need to be placed right after the inv command, ex:
    inv --help some.task
    
    Here a more common pattern is used and --help acts as both help and list:
    inv some task --help
    
  • Lack of support. Some issues and features have been piling up for a while, and I'm not sure if they will ever be addressed. Seems like the project has had new development recently, though.
    Typer is widely used and has a lot of support.

Other advantages (in my opinion):

  • Prettier Developer experience counts. Other than more common usage patterns, Typer supports rich and Markdown formatting.
  • No dot . namespace Invoke uses a dot . namespace for tasks, which is not very common when running scripts.
    Typer follows a normal CLI pattern. Namespaces are Typer apps and are separated by a space.

Invoke is the inspiration for this project, hence the name typer-invoke and keeping the inv command name.

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

typer_invoke-0.1.0.tar.gz (17.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

typer_invoke-0.1.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file typer_invoke-0.1.0.tar.gz.

File metadata

  • Download URL: typer_invoke-0.1.0.tar.gz
  • Upload date:
  • Size: 17.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.5

File hashes

Hashes for typer_invoke-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a4d191c422b071faf1d3c9c5785f7ddb6e37f6128cd655e621664695c68f61ff
MD5 dd5a2ad02cbe12ee6994aff2cc9c5756
BLAKE2b-256 7ac5f1087fc82a2c47ee134d56292c2fb1a3dfa89bb580f1670a29f3c75e0537

See more details on using hashes here.

File details

Details for the file typer_invoke-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: typer_invoke-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.5

File hashes

Hashes for typer_invoke-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2354b845c3f8319e8b71282c255d07b48ef580746d5ee13a8893fea4753c03e5
MD5 2a958b85e03686b2d0272d92347636cd
BLAKE2b-256 f1517e21d51d2fdfaa35e9e0bea5f07806f7b9f4a40e109cf88537790742fcf0

See more details on using hashes here.

Supported by

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