semvec/pypi-packages huggingface dataset:
python-hdcloud 1.0.1
Client library for the HD Cloud API
License: BSD

Python bindings to the HD Cloud API
===================================

This is a cloud for the `HD Cloud API <http://hdcloud.com/api/v1/help/>`_.

You'll need an HD Cloud account to use this library. You can either use your
account's username/password, or you can use a developer token from your user
profile page and use those credentials instead.

Usage
-----

First create an instance with your creds::

    >>> from hdcloud import HDCloud
    >>> hdcloud = HDCloud(USERNAME, PASSWORD)
    
Then call methods::
    
    >>> hdcloud.jobs.all()
    [<Job: 12345 - completed>]
    
    >>> hdcloud.jobs.get(id=12345)
    <Job: 12345 - completed>
    
For details, `see the documentation <http://packages.python.org/python-hdcloud/>`_ 
and/or HD Cloud's `API documentation <http://hdcloud.com/api/v1/help/>`_.

Contributing
------------

Development takes place `on GitHub <http://github.com/jacobian/python-hdcloud>`_;
please file bugs/pull requests there.

Development on this project was funded by `Discovery <http://discovery.com/>`_ -
thanks!
htmlfilter 0.2
White list HTML filter
License: BSD
Keywords: html,filter,white list,parser,clean,tags

About
-----

Very simple white list HTML filter.

Use it with a WYSIWYG editor on the client side.


Usage
-----

::
	from htmlfilter import HTMLFilter
	hf = HTMLFilter()
	cleaned_html = hf.filter(dirty_html)


Rules file
----------

The filter is instanciated with a predefined set of rules.
http://github.com/samueladam/htmlfilter/blob/master/htmlfilter/rules.py

You can create your own rules file::

	# file: my_rules.py
	TAGS = {
		'a': ('href', 'name',),
		'p': ('class',),
	}

	# define filters on attributes data (tag_attr)
	def p_class(data):
	    if data not in ('class1', 'class2',):
	        data = ''
	    return data
	

And use them this way::

	from htmlfilter import HTMLFilter
	import my_rules

	hf = HTMLFilter(rules=my_rules)
	cleaned_html = hf.filter(dirty_html)
mutant 0.1
Mutation testing for Python
License: BSD

What is mutant?
===============

Mutant is a simple mutation testing framework for Python. It is currently only a proof of concept.

What is mutation testing?
-------------------------

Mutation testing is a method for determining how complete your unit tests are. A small mutation is introduced into your code (e.g. a '<' is changed to a '<=') and then your tests are run. If your tests still pass then the code which was changed was (probably) not being completely tested.

How does mutant work?
---------------------

Given a module, mutant will iterate over all of its top-level functions, modifying their bytecode to introduce mutations and then making sure that the module's doctests fail.

To run: ::

  $ python mutant.py <MODULE-NAME>
redish 0.0.1
Pythonic Redis abstraction built on top of redis-py
License: BSD

============================================================================
redish - Pythonic Redis abstraction built on top of redis-py
============================================================================

:Version: 0.0.1

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

Braindump::

    >>> from redish.client import Client
    >>> x = Client()

    # Key/Value
    >>> x["foo"] = {"name": "George"}
    >>> x["foo"]
    {'name': 'George'}
    >>> del(x["foo"])
    >>> x["foo"]
    Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    File "redish/client.py", line 52, in __getitem__
        raise KeyError(key)
    KeyError: 'foo'

    # Sets

    >>> s = x.Set("myset")
    >>> map(s.add, ["opera", "firefox", "ie", "safari"])
    [True, True, True, True]
    >>> "opera" in s
    True
    >>> s.remove("safari")
    >>> "safari" in s
    False
    >>> list(s)
    ['opera', 'ie', 'firefox']
    >>> s2 = x.Set("myset2")
    >>> map(s2.add, ["opera", "firefox", "mosaic"])
    [True, True, True]
    >>> s.difference(s2)
    set(['opera', 'firefox', 'mosaic'])

    # Sorted Set

    >>> z = x.SortedSet("myzset")
    >>> z.add("foo", 0.9)  
    True
    >>> z.add("bar", 0.1)
    True
    >>> z.add("baz", 0.3)
    True
    >>> z[0:3]
    ['bar', 'baz', 'foo']



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

You can install ``redish`` either via the Python Package Index (PyPI)
or from source.

To install using ``pip``,::

    $ pip install redish


To install using ``easy_install``,::

    $ easy_install redish


If you have downloaded a source tarball you can install it
by doing the following,::

    $ python setup.py build
    # python setup.py install # as root

Examples
========

.. Please write some examples using your package here.