semvec/pypi-packages huggingface dataset:
Otto 1.2
WSGI-compliant HTTP publisher.
License: BSD
Keywords: wsgi publisher router

.. role:: mod(emphasis)
.. role:: term(emphasis)


Overview
========

Otto is an HTTP publisher which uses a routes-like syntax to map URLs
to code. It supports object traversal.

You can use the publisher to write web applications. It was designed
with both small and large applications in mind. We have tried to
incorporate elements of existing publishers to allow diverse and
flexible application patterns while still being in concordance with
the :term:`Zen Of Python`.

Here's a variation of a familiar theme::

  import otto
  import webob
  import wsgiref.simple_server

  app = otto.Application()

  @app.connect("/*path/:name")
  def hello_world(request, path=None, name=u'world'):
      return webob.Response(u"An %d-deep hello %s!" % (len(path), name))

  wsgiref.simple_server.make_server('', 8080, app).serve_forever()

This release is compatible with Python 2.4+.

See the `documentation <https://otto.readthedocs.org/en/latest/>`_ for this release.



Changes
=======

1.2 (2009-11-16)
----------------

Features
########

- Route matches that come before object mapping are passed on to the
  mapper on instantiation; these matches are then not passed to the
  controller.

Backwards incompatibilities
###########################

- The object mapper takes the place of the *traverser*; on
  instantiation it gets the part of the match dictionary that comes
  before the asterisk.

- The empty asterisk is now mapped to the empty string. This does not
  change the high-level interface.

1.1 (2009-11-12)
----------------

Features
########

- The leading slash is now optional in a route path definition.

- The ``Route`` class now provides the ``match`` method.

Backwards incompatibilities
###########################

- The ``Publisher.route`` method was renamed to ``connect``. This
  method now takes a route object. This change was also applied for
  the ``Router`` class.

1.0 (2009-11-12)
----------------

- Initial public release.
GridImage 0.2
A simple command-line tool for generating an image for background tiling to confirm a CSS grid.
License: BSD

GridImage
=========

Usage: gridimage [options] line-height column-width gutter-width

Options:
  -h, --help            show this help message and exit
  -g COLOR, --gutter-color=COLOR
                        use COLOR for gutter line (default #fcc)
  -b COLOR, --baseline-color=COLOR
                        use COLOR for text baseline (default #999)
  -f FILE, --output-file=FILE
                        output grid image to FILE (format autodetected from
                        extension) %l, %c, %g replaced with line-height,
                        col-
                        width, gutter-width (default grid_%l_%c_%g.png)