semvec/pypi-packages huggingface dataset:
django-cache 0.3
Extended HTTP-caching for Django
License: MIT

============
Django-cache
============

Enhanced :code:`cache_page` decorator for `Django`_ views.

.. _Django: https://www.djangoproject.com

.. image:: https://travis-ci.org/renskiy/django-cache.svg?branch=master
    :target: https://travis-ci.org/renskiy/django-cache
.. image:: https://coveralls.io/repos/github/renskiy/django-cache/badge.svg?branch=master
    :target: https://coveralls.io/github/renskiy/django-cache?branch=master

Compatibility
-------------

Django-cache properly works with Django 1.8, 1.9, 1.10 and 1.11 on Python 2.7, 3.4, 3.5 and 3.6.

Advantages
----------

* fixed certain amount of bugs (including `#15855`_)
* support of callable :code:`cache_timeout` and :code:`key_prefix` parameters
* cache age can be limited by client (min cache age is manageable, default is 0)

.. _#15855: https://code.djangoproject.com/ticket/15855

Usage
-----

.. code-block:: python

    from djangocache import cache_page

    @cache_page(cache_timeout=600)
    def view(request):
        pass

Combination with :code:`last_modified` and/or :code:`etag` view decorators
--------------------------------------------------------------------------

If you planning to use :code:`cache_page` among with :code:`last_modified` and/or :code:`etag` the latter must be placed after :code:`cache_page`:

.. code-block:: python

    from djangocache import cache_page
    from django.views.decorators.http import last_modified, etag

    def etag_generator(request, *args, **kwargs):
        return 'ETag!!'

    @cache_page(cache_timeout=600)
    @etag(etag_generator)
    def view(request, *args, **kwargs):
        pass

Django Settings
---------------

``DJANGOCACHE_MIN_AGE`` - used to set minimal age of cache. Default is 0, meaning that client can ask server to skip cache by providing header ``Cache-Control: max-age=0``.

``@cache_page`` params
----------------------

* ``cache_timeout``. Default is ``settings.CACHE_MIDDLEWARE_SECONDS``.
* ``key_prefix``. Default is ``settings.CACHE_MIDDLEWARE_KEY_PREFIX``.
* ``cache_alias``. Default is ``settings.CACHE_MIDDLEWARE_ALIAS``, or ``settings.DEFAULT_CACHE_ALIAS`` if set to ``None``.
* ``cache_min_age``. Default is ``settings.DJANGOCACHE_MIN_AGE``.

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

.. code-block:: bash

    pip install --upgrade django-cache
symbolator 1.0.2
HDL symbol generator
License: MIT
Keywords: HDL symbol

.. image:: http://kevinpt.github.io/symbolator/_static/symbolator_icon.png

==========
Symbolator
==========

Symbolator is a component diagramming tool for VHDL and Verilog. It will parse HDL source files, extract components or modules and render them as an image.

.. code-block:: vhdl

  library ieee;
  use ieee.std_logic_1164.all;

  package demo is
    component demo_device is
      generic (
        SIZE : positive;
        RESET_ACTIVE_LEVEL : std_ulogic := '1'
      );
      port (
        --# {{clocks|}}
        Clock : in std_ulogic;
        Reset : in std_ulogic;
        
        --# {{control|Named section}}
        Enable : in std_ulogic;
        Data_in : in std_ulogic_vector(SIZE-1 downto 0);
        Data_out : out std_ulogic_vector(SIZE-1 downto 0)
      );
    end component;
  end package;


.. parsed-literal::

  > symbolator -i demo_device.vhdl
  Scanning library: .
  Creating symbol for demo_device.vhdl "demo_device"
	    -> demo_device-demo_device.svg

Produces the following:
 
.. image:: http://kevinpt.github.io/symbolator/_images/demo_device-demo_device.svg


Symbolator can render to PNG bitmap images or SVG, PDF, PS, and EPS vector images. SVG is the default.



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

Symbolator requires either Python 2.7 or Python 3.x, Pycairo, and Pango.

The installation script depends on setuptools. The source is written in
Python 2.7 syntax but will convert cleanly to Python 3 when the installer
passes it through 2to3.

The Pango library is used compute the dimensions of a text layout. There is no standard package to get the Pango Python bindings installed. It is a part of the Gtk+ library which is accessed either through the PyGtk or PyGObject APIs, both of which are supported by Symbolator. You should make sure that one of these libraries is available before installing Symbolator. A `Windows installer <http://www.pygtk.org/downloads.html>`_ is available. For Linux distributions you should install the relevant libraries with your package manager.

Licensing
---------

Symbolator is licensed for free commercial and non-commercial use under the terms of the MIT license. The Symbolator Sphinx extension is derived from the Graphviz extension and is BSD licensed.


Download
--------

You can access the Symbolator Git repository from `Github
<https://github.com/kevinpt/symbolator>`_. You can install direct from PyPI with the "pip"
command if you have it available.

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

The full documentation is available online at the `main Symbolator site
<http://kevinpt.github.io/symbolator/>`_.
hdlparse 1.0.4
HDL parser
License: MIT
Keywords: HDL parser


========
Hdlparse
========

Hdlparse is a simple package implementing a rudimentary parser for VHDL and Verilog. It is not capable of fully parsing the entire language. Rather, it is meant to extract enough key information from a source file to create generated documentation.

This library is used by the `Symbolator <https://github.com/kevinpt/symbolator>`_ diagram generator.

For VHDL this library can extract component, subprogram, type, subtype, and constant declarations from a package. For Verilog it can extract module declarations (both 1995 and 2001 syntax).


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

Hdlparse requires either Python 2.7 or Python 3.x and no additional libraries.

The installation script depends on setuptools. The source is written in
Python 2.7 syntax but will convert cleanly to Python 3 when the installer
passes it through 2to3.


Download
--------

You can access the Hdlparse Git repository from `Github
<https://github.com/kevinpt/hdlparse>`_. You can install direct from PyPI with the "pip"
command if you have it available.

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

Hdlparse is a Python library. You must have Python installed first to use it. Most modern Linux distributions and OS/X have it available by default. There are a number of options available for Windows. If you don't already have a favorite, I recommend getting one of the `"full-stack" Python distros <http://www.scipy.org/install.html>`_ that are geared toward scientific computing such as Anaconda or Python(x,y).

You need to have the Python setuptools installed first. If your OS has a package manager, it may be preferable to install setuptools through that tool. Otherwise you can use Pip:

.. code-block:: sh

  > pip install setuptools

The easiest way to install Hdlparse is from `PyPI <https://pypi.python.org/pypi/hdlparse>`_.

.. code-block:: sh

  > pip install --upgrade hdlparse

This will download and install the latest release, upgrading if you already have it installed. If you don't have ``pip`` you may have the ``easy_install`` command available which can be used to install ``pip`` on your system:

.. code-block:: sh

  > easy_install pip


You can also use ``pip`` to get the latest development code from Github:

.. code-block:: sh

  > pip install --upgrade https://github.com/kevinpt/hdlparse/tarball/master

If you manually downloaded a source package or created a clone with Git you can install with the following command run from the base Hdlparse directory:

.. code-block:: sh

  > python setup.py install

On Linux systems you may need to install with root privileges using the *sudo* command.

After a successful install the Hdlparse library will be available.


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

The full documentation is available online at the `main Hdlparse site
<http://kevinpt.github.io/hdlparse/>`_.
timeutils 0.3.2
A set of methods and classes to accurately measure elapsed time.
License: MIT

.. image:: https://img.shields.io/pypi/status/timeutils.svg
    :target: https://gitlab.com/cmick/timeutils

.. image:: https://badge.fury.io/py/timeutils.svg
    :target: https://badge.fury.io/py/timeutils

.. image:: https://readthedocs.org/projects/timeutils/badge
   :target: http://timeutils.readthedocs.io

.. image:: https://img.shields.io/pypi/pyversions/timeutils.svg
   :target: https://pypi.python.org/pypi/timeutils

.. image:: https://img.shields.io/pypi/l/timeutils.svg
   :target: https://gitlab.com/cmick/timeutils/blob/master/LICENSE

timeutils
=========

timeutils is a Python package providing a set of methods and classes to
accurately measure elapsed time.

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

The documentation is hosted on http://timeutils.readthedocs.io

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

Latest from the `source <https://gitlab.com/cmick/timeutils>`_::

    git clone https://gitlab.com/cmick/timeutils.git
    cd timeutils
    python setup.py install

Using `PyPI <https://pypi.python.org/pypi/timeutils>`_::

    pip install timeutils

Examples
--------

.. code :: pycon

    >>> from timeutils import Stopwatch
    >>> sw = Stopwatch(start=True)
    >>> sw.elapsed_seconds
    16.282313108444214
    >>> str(sw.stop())
    '0:01:30.416023'
    >>> sw.elapsed.human_str()
    '1 min, 30 secs'