semvec/pypi-packages huggingface dataset:
djangocms-layouttools 0.1.4
Adds layout Section and other plugins to django CMS.
License: MIT

================
Django CMS LayoutTools
================


|pypi| |build| |coverage|

**Django CMS LayoutTools** is a set of plugins for `django CMS <http://django-cms.org>`_
that allows you to design content sections on cms webpages that have specified 
container properties (e.g., container-fluid) and css styling such as backgrounds.
It uses Bootstrap3 container classes by default, but doesn't necessarily require
Bootstrap to be a useful tool for sectioning and styling content. A Section plugin
is provided now, but further plugins may be created at a later date.

It uses images/files managed by `Django Filer <https://github.com/divio/django-filer>`_.


Contributing
============

This is a an open-source project. We'll be delighted to receive your
feedback in the form of issues and pull requests. See the github repo 
`contribution guidelines https://github.com/mci/djangocms-layouttools>`_.


Documentation
=============

See ``REQUIREMENTS`` in the `setup.py <https://github.com/mci/djangocms-layouttools/blob/master/setup.py>`_
file for additional dependencies:

* Python 2.7, 3.3 or higher
* Django 1.8 or higher
* Django Filer 1.2.4 or higher

Make sure `django Filer <http://django-filer.readthedocs.io/en/latest/installation.html>`_
is installed and configured appropriately.


Installation
------------

For a manual install:

* run ``pip install djangocms-layouttools``
* add ``djangocms_layouttools`` to your ``INSTALLED_APPS``
* run ``python manage.py migrate djangocms_layouttools``


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

TBD


Running Tests
-------------

You can run tests by executing::

    virtualenv env
    source env/bin/activate
    pip install -r tests/requirements.txt
    python setup.py test


.. |pypi| image:: https://badge.fury.io/py/djangocms-layouttools.svg
    :target: http://badge.fury.io/py/djangocms-layouttools
.. |build| image:: https://travis-ci.org/mci/djangocms-layouttools.svg?branch=master
    :target: https://travis-ci.org/mci/djangocms-layouttools
sigma-console-menu 0.1
Sigma console menu
License: MIT

## Sigma console menu

A simple menu for console apps in Python

Quick tutorial

```python
# Create a new menu
ui = SigmaConsoleMenu()

# Create a new page
# Page has `id` and `title`, `id` is needed to connect them together
page1 = Page(0, "Menu 1")

# Next step is to create options that you want to display
# Option has `text` and `action`
# `action` can be int or function
# If action is int then it is `id` of page that you want to link
# Otherwise is calling a passed function
option1 = MenuOption("Go to menu 2", 1)
option2 = MenuOption("Something 1", lambda: print("Something 1 was called"))
option3 = MenuOption("Something 2", lambda: print("Something 2 was called"))

# Then you have to add options to the page
page1.add_options(option1, option2, option3)

# Creating 2nd page
page2 = Page(1, "Menu 2")
o1 = MenuOption("Something on page 2", lambda: print("Something on page 2 was called"))

# You can link pages in a circular motion
o2 = MenuOption("Back to Menu 1", 0)

page2.add_options(o1, o2)

# And then add pages to the main menu
ui.add_pages(page1, page2)

ui.run()
```