semvec/pypi-packages huggingface dataset:
django-dtpanel-htmltidy 0.1.1
Custom panel form Django Debug Toolbar which display HTML Validation errors and warnings
License: BSD

HTML Tidy/Validator Panel for Django Debug Toolbar
========

The Django Debug Toolbar is a configurable set of panels that display various
debug information about the current request/response and when clicked, display
more details about the panel's content.

HTML Tidy or HTML Validatory is custom panel for Django Debug Panel which
validate your HTML and display warning and errors as panel.

Panel code based on PyTidyLib

Installation & Configuration
-----------------

1. Install and configure `django-debug-toolbar` app

1. Add the `debug_toolbar_htmltidy` directory to your Python path.

1. Add `debug_toolbar_htmltidy` to your `INSTALLED_APPS` in `settings.py` file:
***
        INSTALLED_APPS += (
            'debug_toolbar_htmltidy',
        )

1. Add the following panel to your Django Debug Toolbar panels
   configuration tuple in `settings.py` file:

***
        DEBUG_TOOLBAR_PANELS = (
	    ...
	    'debug_toolbar_htmltidy.panels.HTMLTidyDebugPanel',
        )

1. Include in file which specified in `ROOT_URLCONF` setting in `settings.py`
   url to `HTMLTidyDebugPanel` media:

***
    	url(r'^', include('debug_toolbar_htmltidy.urls'))


Running the Tests
-----------------

The HTML Tidy Panel for Django Debug Toolbar includes a test suite
::

    python setup.py test


Tests result
=================

	Django	Debug Toolbar	Status
	------------------------------
	1.1.1	0.8.5			passed
	1.1.1	0.8.4			passed
	1.1.1	0.8.3			passed
	1.1.1	0.8.2			passed
	1.1.1	0.8.1			failed
	1.1.1	0.8.0			failed
	1.2		0.8.5			passed
	1.2		0.8.4			passed
	1.2		0.8.3			passed
	1.2		0.8.2			passed
	1.2		0.8.1			failed
	1.2		0.8.0			failed
	1.3		0.8.5			passed
	1.3		0.8.4			passed
	1.3		0.8.3			passed
	1.3		0.8.2			passed
	1.3		0.8.1			failed
	1.3		0.8.0			failed


TODOs and BUGS
==============
See: [issue tracker on github](https://github.com/joymax/django-dtpanel-htmltidy/issues)
django-cache-stockpile 0.1.0
A simple django ORM caching layer.
License: BSD

===============
Stockpile Cache
===============

Stockpile provides limited automatic caching and invalidation for Django models
through the ORM. Objects fetched through `.objects.get(pk=..)` or
`.objects.get(id=..)` are cached by the primary key. In addition, there is
a way to get objects with the methods `.objects.pk_in(id_list)` and
`.objects.id_in(id_list)`.


Requirements
------------

Stockpile requires Django 1.3.  It was written and tested on Python 2.6.


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

Get it from [pypi](http://pypi.python.org/pypi/django-cache-stockpile):

```bash
pip install django-cache-stockpile
```

or [github](http://github.com/streeter/django-cache-stockpile):

```bash
pip install -e git://github.com/streeter/django-cache-stockpile.git#egg=django-cache-stockpile
```


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

```bash
git clone git://github.com/streeter/django-cache-stockpile.git
cd django-cache-stockpile
pip install -r requirements.txt
python runtests.py
```
sy 0.3
Simple tools for system administration tasks
License: BSD

**Documentation:** http://sy.afajl.com

**Source:** http://github.com/afajl/sy

This library is a set of easy to use modules to help with automation of 
system administration tasks::

  import sy.path, sy.net.intf, sy.net.ip, sy.cmd

  # Replace lines in '/etc/hosts' that match nis.*
  sy.path.replace_lines('/etc/hosts', 'nis.*', '10.2.3.1 ldap')
  1

  # Fetch information about the interface hme0
  hme0 = sy.net.intf.get('hme0')

  # Get the IP of hme0
  hme0.ipaddress
  '192.168.2.2'

  # Check if hme0 is up
  hme0.is_up
  True

  # Find files named '*.pl' but time out after 10 seconds
  out, err = sy.cmd.do('find /mnt -name {}', '*.pl', timeout=10)
 
  # Check if port 22 is answering on bart
  if not sy.net.ip.port_is_open('bart', 22):
     sy.log.warning('Ssh is down on bart') 
  


The library is heavily inspired by `Werkzeug`_ which is a great WSGI utility 
collection.

.. _Werkzeug: http://werkzeug.pocoo.org/

Developing
==========

.. _pip: http://pip.openplans.org/
.. _virtualenv: http://pypi.python.org/pypi/virtualenv
.. _fabric: http://docs.fabfile.org/0.9.1/
.. _nose: http://somethingaboutorange.com/mrl/projects/nose/0.11.2/
.. _sphinx: http://sphinx.pocoo.org/
.. _git: http://git-scm.com

The repository path for ``sy`` is located at 
http://github.com/afajl/sy. Clone with `git`_ by typing::

    $ git clone http://github.com/afajl/sy.git

The requirements for developing are listed in ``dev-reqs.pip`` that
can be install with `pip`_ with:: 

    $ pip install -r dev-reqs.pip

The library currently targets python 2.4.4 - 2.6.

Testing
-------

To run the test suite use `nose`_::

    $ nosetests -a '!host' tests

The ``!host`` parameter tells the suite to not run tests that change the hosts
configuration (like reconfiguring network interfaces).

There currently isn't any automated way to run the testsuite on virtual machines.
This feature is greatly needed to be able to test all parts of the library and
to test it on different versions and operating systems.


Documentation
-------------

The documentation is built with `sphinx`_ and is locate under the ``docs`` folder.
django-rte 0.4.0
Rich text editor for Django
License: BSD

django-rte
==========
A rich-text-tinymce-widget with model field for Django.


Requirements
------------
Django >= 1.3


Installation
------------
::

    pip install django-rte


Configuration
-------------
First include ``rte`` in your ``INSTALLED_APPS``::

    INSTALLED_APPS = (
        ...
        'rte',
        ...
    )

Now you can either go with the default base configuration or you can define your
own.  Either way you can always overwrite attributes by passing a config dict to
either the model field or the widget. If you want to set a different base
configuration you just need to place a new config file ``'rte/tiny.config.js'``.

Language is automatically detected for you, should you need to explicitly set a
different language you need to do this in the field or widget config dict and
not in the ``'rte/tine.config.js'`` file.


Examples
--------
Example model usage::

    from rte import RTEField

    class MyModel(models.Model):
        content = RTEField()


Example Widget usage::

    from rte import TinyWidget

    def MyForm(forms.Form):
        content = forms.TextField(widget=TinyWidget(config={'language': 'en'}))
django-aislug 0.2.2
Intelligent slug computing
License: BSD

django-aislug
=============

A slug field that automatically calculates its value from another attribute or
method.

Requirements
------------
django-aislug depends on `django-stringfield <https://github.com/aino/django-stringfield>`_.

Installation
------------
Using pip to install will install django-aislug and all of its dependencies::

    pip install django-aislug

Options
-------
All options that are available for ``django.db.models.CharField`` are also
available to ``AISlugField``. There are some additional options:

* ``populate_from``: Property or method on the model that is the base for the
  computed slug.

  * Default ``'title'``

* ``slugify``: User defined slugify callback function to compute the slug from
  ``populate_from``

* ``invalid``: List or function that returns a list of invalid values

  * Default: ``[]``

* ``update``: If ``False`` the slug will not be updated from ``populate_from``
  on subsequent saves.

  * Default: ``False``

* ``unique_for``: A list of fields to make this slug unique for.

  * Default: ``[]``