semvec/pypi-packages huggingface dataset:
commandline 0.1.4dev
Exposes your APIs to the command line.
License: BSD
Keywords: command line commandline script

Command Line Interface Helper
=================================

This is a helper module for making intuitive command line programs with 
zero effort. It takes a function signature like::

 example_function(string1, string2='something', string3='something else')

and turns it into a simple command-line app with usage::

 example_program string1 [string2 [string3]]

All you have to do is::

 if __name__ == "__main__":
    import commandline
    commandline.run_as_main(example_function)

Limitations
============

Note that it currently can't print help information for arguments other than 
their default values, but it will print your docstring for you if that's of 
any use.

Help for arguments will probably come with python3000's function annotations. 
http://www.python.org/dev/peps/pep-3107/

Argument types are inferred from the default arguments. 
Currently supported are: int, float, bool, str, commandline.Choice

If things don't have a default argument, I can't infer the type so assume str.



    >>> import commandline
    >>> commandline.TESTMODE=1
    >>> def test1(arg1=1, arg2=2, arg3=3):
    ...     print [arg1, arg2, arg3]
    ...
    >>> commandline.run_as_main(test1, [])
    [1, 2, 3]
    >>> commandline.run_as_main(test1, ['6'])
    [6, 2, 3]
    >>> commandline.run_as_main(test1, ['--arg1=6', '--arg2=7', '--arg3=8'])
    [6, 7, 8]
    >>> commandline.run_as_main(test1, ['6', '7', '8'])
    [6, 7, 8]
    
    >>> commandline.run_as_main(test1, ['6', '7', '8', '9'], 'test.py')
    Usage: test.py [arg1 [arg2 [arg3]]] [Options]
    <BLANKLINE>
    (Please put options last, and no more args than shown.)
    Unexpected argument(s): 9
    
    >>> commandline.run_as_main(test1, ['--arg1=6', '7', '8'], 'test.py')
    Usage: test.py [arg1 [arg2 [arg3]]] [Options]
    <BLANKLINE>
    (Please put options last, and no more args than shown.)
    Unexpected argument(s): 7, 8
    
    >>> def test2(arg1=1, arg2=2, arg3=3):
    ...     return [arg1, arg2, arg3]
    ...
    >>> commandline.run_as_main(test2, ['6', '7', '8'])
    [6, 7, 8]
    
    >>> def nodefault(arg1, arg2, arg3):
    ...     return [arg1, arg2, arg3]
    >>> # If we have no default arguments, we assume you want strings:
    >>> commandline.run_as_main(nodefault, ['6', '7', '8'])
    ['6', '7', '8']
    >>> commandline.run_as_main(nodefault, [], 'test.py')
    Usage: test.py arg1 arg2 arg3 [Options]
    <BLANKLINE>
    The following compulsory arguments are missing: arg1, arg2, arg3
django-vcstorage 0.1.1
A Django app that provides file storage backends for Mercurial, Git and Bazaar by using anyvc.
License: BSD

This is a Django application which provides storage classes that use `anyvc`_ 
to commit the uploaded files to one of the following version control systems: 
Bazaar, Mercurial, Git. Besides it's based on Django's usual FileSystemStorage 
backend.

Make sure you've got a current development version of anyvc installed.

.. _anyvc: http://bitbucket.org/RonnyPfannschmidt/anyvc/
TracPiwik 0.1.1
Trac plugin to enable your trac environment to be logged by Piwik
License: BSD
Keywords: trac plugin piwik

=======================
Piwik Statistics Plugin
=======================

This plugin will enable your trac environment to be logged by Piwik_. It is
mostly based on the excellent TracGoogleAnalytics_.

.. note:: You need at least Piwik 0.4 and Trac 0.11


Download and Install
--------------------

The easiest way to install is using EasyInstall_:

::

  sudo easy_install TracPiwik

To enable the plugin add this to the ``[components]`` section in your ``trac.ini``:

::

  [components]
  tracext.piwik.* = enabled

Configuration
-------------

Mandatory Configuration
~~~~~~~~~~~~~~~~~~~~~~~
 * **Site ID**: Piwik's Site ID. You can find the Site ID either on the
   *Site* tab in Piwik's settings module or in the JavaScript code::

     var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 1);

   In this example, the Site ID is *1*.

 * **Base URL**: The base URL of your Piwik installation. If the URL of
   your Piwik installation would be ``http://www.example.com/piwik/``, 
   you'd enter ``www.example.com/piwik`` (without ``http://`` and the trailing
   slash).

Advanced Configuration
~~~~~~~~~~~~~~~~~~~~~~
 * **admin_logging**: Disabling this option will prevent all logged in
   ``TRAC_ADMIN``'s from showing up on your Piwik reports.
 * **authenticated_logging**: Disabling this option will prevent all 
   authenticated users from showing up on your Piwik reports.
 * **extensions**: Enter any extensions of files you would like to be tracked
   as a download. For example to track all MP3s and PDFs enter ``mp3|pdf``.
   Outbound link tracking must be enabled for downloads to be tracked.

Source Code
-----------

If you wish to be on the bleeding edge and get the latest available code:

::

  hg clone http://bitbucket.org/piquadrat/tracpiwik/

Bugs and/or New Features
------------------------

Please submit bugs or feature requests to::

  http://bitbucket.org/piquadrat/tracpiwik/issues/


.. _EasyInstall: http://peak.telecommunity.com/DevCenter/EasyInstall
.. _Piwik: http://piwik.org/
.. _TracGoogleAnalytics: http://google.ufsoft.org/wiki/TracGoogleAnalytics