semvec/pypi-packages huggingface dataset:
chameleon.genshi 1.0b4
Genshi template engine based on Chameleon
License: BSD

Overview
========

This package provides a fast Genshi template implementation based on
the Chameleon template compiler. It's largely compatible with
``genshi.template``.

Compiler notes
--------------

1. Match templates defined in included templates are not applied to
the calling document.

Development
-----------

If you want to use the code directly from trunk (recommended only for
development and testing usage), provide ``chameleon.genshi==dev`` as your
dependency.

The code is maintained in a subversion repository::

  svn://svn.repoze.org/svn/chameleon.genshi

Want to contribute? Join #repoze on Freenode IRC.
koansys.django.authradius 1.0.3
Django can authenticate against a RADIUS server
License: BSD
Keywords: authentication

========
 README
========

Allow Django to authenticate against a RADIUS server. 

Introduction
============

RADIUS is a protocol commonly used by ISPs for authenticating dial-in
and other remote users; it's also used by routers and other network
hardware.  Popular servers include FreeRADIUS, GNU RADIUS, and the
delightfully-name Steel Belted RADIUS.  

Motivation
==========

This little package was developed because my place of work uses RSA
SecurID token authentication, and it can be accessed via RADIUS --
much more easily than their proprietary protocol.

All the heavy lifting here is doing by Wichert Akkerman's "pyrad"
package; this just wraps it up for easy consumption by Django.

The code was based on the example at
http://docs.djangoproject.com/en/dev/topics/auth/#other-authentication-sources

This code tries hard to catch any error which might throw an exception
so that failure of the backend (misconfigured RADIUS server, bad
import, etc) returns None indicating auth faiure.

On successful authentication, the User object is returned. If this
user is new to Django, a new User is created in the Django database.


Non-Features
============

Traditionally, upon authentication, the RADIUS server can return
various attribute/value pairs such as allocated IP address and
subnetmask, in addition to the Success code.  ADIUS can also handle
"accounting" the focus here simply on authentication.

Usage
=====

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

In your settings.py or local_settings.py, define the following
variables:

RADIUS_SERVER

  The IP address (or resolvable DNS name) of the server providing the
  RADIUS server.  Example: "127.0.0.1"

RADIUS_AUTHPORT

  UDP port that RADIUS is listening on for authentication requests.
  The old RFC standard port is 1645, but the more current one
  is 1812. Specify it as an integer. Example: 1812

RADIUS_SECRET

  The shared secret that both the client and server use to encode the
  packets.  Example: "The owls are not what they seem."


Auth backends
-------------

Specify this egg in your zc.buildout configuration, or another build
mechanism; you can also just use the bare code.

In your settings.py (or local_settings.py) file specify the module and
class path in the authentication stack.  Beware that RADIUS typically
exhibits a 20-second or so timeout if it can't auth to the server, so
you may want to put it after other authentication backends you may be
using.  Example::

  AUTHENTICATION_BACKENDS = (
      'django.contrib.auth.backends.ModelBackend',
      'authbackends.authsawsbackend.AuthSawsBackend',
      'koansys.django.authradius.AuthRadius',
    )





To Do
=====

Tests. Sorry.


=========
 CHANGES
=========

1.0.3 2009-02-25
================

Correct usage example, oops.

1.0.2 2009-02-25
================

Re-Fix URL info, add address.
 
1.0.1 2009-02-25
================

Fix URL info, upload to googlecode, post to pypi.

1.0.0 2009-02-25
================

Creating public egg code from internal private cholesterol-free code.
bud.nospam 1.0.1
ROT 13 encrypt text to prevent spam
License: BSD
Keywords: web spam

Overview
========

This package provides a function for ROT 13 encoding text to make it
email address displayed on the web harder to automatically harvest by
spammers.

Usage
=====

This package provides three simple functions::

  bud.nospam.rot_13_encrypt('some text')
  bud.nospam.js_obfuscated_text('someemail@example.com')
  bud.nospam.js_obfuscated_mailto('someemail@example.com','Some Name')
 
Typically you will pass a string to the js_obfuscated_text() function,
and insert the output into a web page. This function will ROT 13 encrypt
the text, and embedd it with the necessary Javascript to decrypt the text.

The js_obfuscated_mailto() is a convenience method for wrapping the
text in an anchor tag with a mailto: attribute.

Credit
======

This package was inspired by the TextMate ROT13 function, see
`the original TextMate blog post
<http://blog.macromates.com/2006/obfuscating-email-addresses/>`_ for
further discussion.

Code
====

The latest version is available in a `Mercurial repository
<http://tripbagger.com/hg.repo/bud.nospam/>`_. Clone a copy with::

  hg clone http://tripbagger.com/hg.repo/bud.nospam/


Changelog
=========

1.0.1 02-24-2009
----------------

* Fix initial release, was missing HISTORY.txt.

1.0 - 02-24-2009
----------------

* Initial release
generator_tools 0.3.6
generator_tools enable copying and pickling generators
License: BSD
Keywords: generators

The generator tools package enables copying and pickling running generators in
CPython ( you don't need Stackless Python ). 

Usage
-----

from generator_tools.copygenerators import*
from generator_tools.picklegenerators import*

def f(start):
        i = start
        while i<start+10:
                yield i
                i+=1

>>> f_gen = f(5)
>>> f_gen.next()   # or next(f_gen) in Python 3.0
5
>>> f_gen.next()
6
>>> g_gen = copy_generator(f_gen)
>>> h_gen = copy_generator(f_gen)
>>> g_gen.next()
7
>>> h_gen.next()
7
>>> pickler = GeneratorPickler("test.pkl")
>>> pickler.pickle_generator(g_gen)
>>> k_gen = pickler.unpickle_generator()
>>> list(g_gen) == list(k_gen)
True