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!

Create simple, nested, command-line interfaces.

Project Description

Create simple, nested, command-line interfaces with Clams (Command Line Applications Made Simple).


pip install clams


A simple example with hello and goodbye subcommands. This can be found at /demo/

from clams import arg, Command

salutation = Command('salutation')

@arg('name', nargs='?')  # same interface as argparse's ``add_argument``
def handler(name):
    print 'Hello %s' % (name or 'Nick')

@arg('name', nargs='?')
def handler(name):
    print 'Goodbye %s' % (name or 'Nick')

if __name__ == '__main__':


$ cd demo

$ ./ hello
Hello Nick
$ ./ hello Jason
Hello Jason

$ ./ goodbye "my friend."
Goodbye my friend.


Clams documentation is available on ReadTheDocs and can be found locally in the /docs directory.

Issue Reporting and Contact Information

If you have any problems with this software, please take a moment to report them at or by email to

If you are a security researcher or believe you have found a security vulnerability in this software, please contact us by email at


Contributions are always welcome, whether it’s reporting a bug or sending a pull request. If you want to help, but don’t know where to start, email me at and I’ll try to point you in the right direction.

Release History

This version
History Node


History Node


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
(6.5 kB) Copy SHA256 Hash SHA256
Wheel py2 Oct 11, 2015
(6.6 kB) Copy SHA256 Hash SHA256
Source None Oct 11, 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