semvec/pypi-packages huggingface dataset:
machete 0.0.5.100
A command-line tool to create projects                   from templates, to start your python work.
License: MIT

machete
=======

.. image:: https://img.shields.io/pypi/v/machete.svg
    :target: http://badge.fury.io/py/machete

.. image:: https://travis-ci.org/lovato/machete.png
    :target: https://travis-ci.org/lovato/machete

.. image:: https://img.shields.io/pypi/pyversions/machete.svg

.. image:: https://img.shields.io/pypi/l/machete.svg

A command-line tool to create projects from templates, to start your python work.

To install it
-------------

::

    $ sudo pip install machete

Availability
------------

Production module is available from https://pypi.python.org/pypi/machete/, and development branch is also published by Travis-CI to https://testpypi.python.org/pypi/machete/

Both can be downloaded and installed via the pip command.

Usage
-----

First, create your target directory, and cd to it.

Note: This directory must be empty. If you need to re-run machete, please empty the current folder first.

::

    usage: machete [-h] -t <template_name> [--chicken]

    machete vX

    optional arguments:
      -h, --help            show this help message and exit
      -t <template_name>, --template <template_name>
                            Select one of the available templates. Allowed values
                            are: app, bootstrap or flask.
      --chicken             Chicken mode (optional). Does NOT CHANGE anything.


Contributions
-------------

Bug reports, fixes, or features? Feel free to open an issue or pull request any time.

License
--------

Copyright (c) 2014 Marco Lovato Licensed under MIT_.

.. _MIT: http://opensource.org/licenses/MIT
PyVXML 0.2
PyVXML Project for VXML2.0
License: MIT
Keywords: vxml vxml2.0 pyvxml

PyVXML Project
=======================

Sample Uses:
-----------

from PyVXML import PyVXML

vxml = PyVXML(version='2.0')
vxml.start_form(fid='subscriptionmsg')
vxml.start_block()
vxml.start_prompt(bargein='true')
vxml.start_audio(src='http://example.com/prompts/voicechat/mainmenu/Thanks.wav')
vxml.end_audio()
vxml.end_prompt()
vxml.start_disconnect()
vxml.end_block()
vxml.end_form()

vxml_xml = vxml.generate()
custom-user-roles 1.1.0
Simple role-based user permissions for Django.
License: MIT

Basic Usage
------------

Add ``userroles`` do `INSTALLED_APPS`

::

    INSTALLED_APPS = (
        ...
        'userroles',
    )


Add the ``USER_ROLES`` setting

::

    USER_ROLES = (
        'manager',
        'moderator',
        'client',
    )


Define your Custom User model (optional)

::

    AUTH_USER_MODEL = 'custom_user.EmailUser'


Add subroles for any of the roles defined in the `USER_ROLES` setting (optional)

::

    MANAGER_ROLES = (
        'staff_manager', 'business_manager'
    )


Subroles can have sub-subroles and so on. But be careful not to repeat the names!


The `role_required` decorator provides similar behavior to Django's `login_required` and `permission_required` decorators.  If the user accessing the view does not have the required roles, they will be redirected to the login page.

::

    from userroles.decorators import role_required

    @role_required('manager', 'moderator')
    def view(request):
        ...


or

::

    from userroles.decorators import role_required
    from userroles import roles

    @role_required(roles.manager, roles.moderator)
    def view(request):
        ...


If user has a subrole of the required role, it passes de user test as well!