semvec/pypi-packages huggingface dataset:
pyramid_bowerstatic 0.3
BowerStatic integration for Pyramid
License: BSD
Keywords: pyramid bowerstatic bower

pyramid_bowerstatic: BowerStatic integration for Pyramid
========================================================

pyramid_bowerstatic integrates BowerStatic_ into Pyramid_.

When you create a pyramid app, make sure to include pyramid_bowerstatic::

    config.include('pyramid_bowerstatic')

Resources can be added to the bowerstatic repository by::

    components = pyramid_bowerstatic.create_components('myapp', os.path.join(os.path.dirname(__file__), 'bower_components'))


And resources can be used in views by::

    request.include(components, 'jquery')


Resource can also be inserted in the view/template directly by using::

   request.get_bowerstatic_url('myapp', 'jquery', 'jquery.js')


.. _BowerStatic: http://bowerstatic.readthedocs.org

.. _Pyramid: http://docs.pylonsproject.org/projects/pyramid


CHANGES
*******

0.3 (2014-11-19)
================

- BowerStatic 0.7 has changed the API for tweens, which is
  changed in version 0.3 of pyramid_bowerstatic.


0.2 (2014-11-13)
================

- With the release of bowestatic 0.6 it can be used as tweens.
  As a consequence bower.wrap is not needed anymore. Which
  makes it pyramid_bowerstatic easier to use.


0.1 (2014-11-08)
================

- Initial public release.
hospital 0.9
Framework around health checks, smoke tests and diagnoses: monitor your applications and services at runtime.
License: BSD
Keywords: diagnosis healthcheck monitoring probe smoketest supervision testing

#################################
hospital: healthchecks for Python
#################################

`hospital` is a Python framework to write health checks, smoke tests or
diagnoses around applications or services.


********
Abstract
********

Health checks are kind of tests, applied to running applications and services:

* write healtchecks just as you would write tests, using assertions;
* collect and run healthchecks with test runners;
* use healthchecks to validate deployments;
* plug healthchecks in supervision and monitoring tools;
* in case of incidents, use healthchecks to diagnose problems.


*******
Example
*******

In your project's root package, have a ``healthchecks`` package or module,
where you assert your (running) application or service is ok:

.. code:: python

   import unittest
   import hospital

   @hospital.healthcheck
   class DocumentationHealthCheck(unittest.TestCase):
       def test_http_200(self):
           url = 'http://hospital.readthedocs.org/en/0.6/'
           hospital.assert_http_response(url, status_code=200)

Then you can collect and run the healthchecks with command line or web
service. Here is an example with command line:

.. code:: console

   $ hospital-cli <YOUR-PACKAGE>.healthchecks


**************
Project status
**************

`hospital` is not full-featured yet. Some important features are in the
`roadmap <https://github.com/python-hospital/hospital/milestones>`_. See also
`vision <http://hospital.readthedocs.org/en/latest/about/vision.html>`_.

Of course, any ideas, feedback or help are welcome :)


*********
Resources
*********

* Documentation: https://hospital.readthedocs.org
* IRC: ``#python-hospital`` on freenode
* Mailing-list: ``pythonhospital@librelist.com``,
  see archives at http://librelist.com/browser/pythonhospital/
* PyPI page: https://pypi.python.org/pypi/hospital
* Code repository: https://github.com/python-hospital/hospital
* Continuous integration: https://travis-ci.org/python-hospital/hospital
* Bugs & feature requests: https://github.com/python-hospital/hospital/issues
* Changelog: https://hospital.readthedocs.org/en/latest/about/changelog.html
* Roadmap: https://github.com/python-hospital/hospital/milestones
multipserve 1.0.6
Script for using with multiples applications Pyramid
License: BSD
Keywords: multipserve pyramid threading

Multi Pserve
============

|Build Status| Little script for you use in many pservers Pyramid

How to
------

Install

::

    pip install multipserve

First, you can use the python script in your root directory for start
servers

::

    mpserve --apps app1 app2 app3 app4

*app’s are directory of applications*

After, multipserve creates pid and log file with name of each
application

::

    app1.pid app1.log

For killing, you can use this:

::

    mpserve (-k|--kill) app1 app2 app3

If app killed successfully

::

    kill app1 with pid 41235

To do
-----

Multi Pserve works but not how I think … I want it to has a web page or
even at the terminal(which I think unlikely/not functional) show the
logs of active servers.

Look `issues`_ for more details.

1. All application now are loaded in –reload mode
2. *multipserve* creates a .log and a .pid files for each application
3. *multipserve* now works with arguments –apps or –kill

.. _issues: https://github.com/marioidival/multipserve/issues

.. |Build Status| image:: https://travis-ci.org/marioidival/multipserve.svg?branch=master
   :target: https://travis-ci.org/marioidival/multipserve
django-aloha-editor 1.1.0
A set of project independent reusable features.
License: BSD

====================
Django Aloha Editor
====================

The Django Aloha Editor is a WYSIWYG editor for all your Django powered websites
By default it always uses the latest version of Aloha Editor http://aloha-editor.org/

.. image:: docs/example.jpg


How it works
============
Django Aloha Editor checks the user permissons, wraps the content with an aloha editor <div> and
saves the edited content with an AJAX call.

Installation
============

#. pip install django-aloha-editor

#. Add the following url to your project's `urls.py` file:

	``url(r'^__alohaeditor__/', include('aloha_editor.urls', namespace='aloha_editor')),``

#. Add ``aloha_editor`` to your ``INSTALLED_APPS`` setting so Django can find the
   template files and template tags associated with Aloha Editor.


Example
=======

views.py
--------

.. code-block:: python

    from django.shortcuts import render_to_response
    from books.models import Book


    def book_detail(request, book_id):
        try:
            book = Book.objects.get(pk=book_id)
        except Book.DoesNotExist:
            raise Http404
        return render_to_response('book_detail.html', {'book': book})


book_detail.html
----------------

.. code-block:: html

    {% load aloha_editor %}
    <html>
    <head>
      {% if user.is_authenticated %}
        {% include "aloha_editor/css.html" %}
        {% include "aloha_editor/js.html" %}
      {% endif %}
    </head>
    <body>
      <h1>{{ book.title }}</h1>
      {% aloha_editor book.description %}
    </body>
    </html>

TODOs and BUGS
==============
You found a bug or have a suggestion for improvement, please let me know!

See: http://github.com/baskoopmans/django-aloha-editor/issues