Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Simple tool for creating commands & sub-commands

Project Description

Simple tool for creating pluggable commands and sub-commands.

Usage example:

# in of your project specify argsrun entry point in console scripts
# and provided commands as follows:

      # ...
        'console_scripts': [
            'myproj = argsrun:main',  # argsrun will handle main command
        'myproj': [                   # ...and lookup for this subcommands
            'main = myproj:main',
            'run = myproj.module:run',

In case you have several packages/projects and you want them to share same entry point, you can easily do it like follows:

# my-frontend-app/

setup(name="MySite Frontend",
        'console_scripts': [
            'mysite = argsrun:main',
        'mysite': [
            'serve-frontend = frontend:serve',

# my-backend-app/

setup(name="MySite Admin backend",
        'console_scripts': [
            'mysite = argsrun:main',
        'mysite': [
            'serve-admin = backend:serve',

 # In my-frontend-app/frontend/

 import argsrun

 def handler(options):
     # Run frontend app

 def parser_setup(ap):
     ap.add_argument('--port', help="Port to bind to")

 main = argsrun.Entry(handler, parser_setup)

Release History

This version
History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(5.1 kB) Copy SHA256 Hash SHA256
Wheel py3 Jun 15, 2015
(4.0 kB) Copy SHA256 Hash SHA256
Source None Jun 15, 2015

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers