semvec/pypi-packages huggingface dataset:
roundup-cli 0.1
A Command Line Interface for Roundup
License: BSD

roundup-cli
===========

roundup-cli is a simple command line interface for the `Roundup Issue Tracker`_.
It uses the XML-RPC interface to communicate with Roundup.

Configuration
-------------

roundup-cli will look for a configuration file in this order `roundup.cf`,
`~/.roundup.cfg`. The format is based on `configparser`_.

A section describe parameters for a roundup instance. `url`, `username` and
`password` are required entries like this::

    [foo]
    url = http://localhost:8000/roundup
    username = foo
    password = bar

Any other entries will be used to display the corresponding roundup class. It
must be a comma separated list of field names, the first field will be used for
short display::

    issue = title,priority,status,superseder,nosy,assignedto,keyword
    user = username,realname,organisation,address
    msg = author,date,content


Nutshell
--------

Here a simple scenario::

    $ roundup-cli
    None: use foo
    demo: get issue1
     title: Add issue creation to roundup-cli
     priority: feature
     status: in-progress
     superseder:
     nosy: admin,demo
     assignedto: admin
     keyword:
    issue1@demo: show messages
     messages:
    -------------------------------------------------------------------------------
     msg1
     author: demo
     date: <Date 2011-11-25.20:58:30.768>
     content: It will be great to create issue from roundup-cli
    -------------------------------------------------------------------------------
     msg2
     author: admin
     date: <Date 2011-11-25.20:59:06.176>
     content: Agree, I start working on it.
    -------------------------------------------------------------------------------
    issue1@demo: search issue status:in-progress
     issue1: Add issue creation to roundup-cli


For more information please visit the `roundup-cli website`_.

.. _Roundup Issue Tracker: http://www.roundup-tracker.org/
.. _configparser: http://docs.python.org/library/configparser.html
.. _roundup-cli website: http://code.google.com/p/roundup-cli/
html2data 0.4.3
A simple way to transform a HTML file or URL to structured data.
License: BSD
Keywords: html2data html data xpath crawler transform

.. -*- mode: rst; coding: utf-8 -*-

Welcome to Html2Data
====================

:Author: * Daniel Perez Rada <dperezrada@gmail.com>

Description
===========
A simple way to transform a HTML file or URL to structured data.  You only need to define the xpath to the element. Optionaly you can define functions to be applied after. You can easily write XPATH using the firebug extension, copy XPATH (I recommend edit the XPATH given by firebug, making it shorter).

Example
=======
Import
------
::

>>> from html2data import HTML2Data

Create instance
---------------
::

	>>> html = """<!DOCTYPE html><html lang="en"><head>
	    	<meta charset="utf-8" />
	    	<title>Example Page</title>
	    	<link rel="stylesheet" href="css/main.css" type="text/css" />
			</head>
			<body>
	    		<h1><b>Title</b></h1>
	    		<div class="description">This is not a valid HTML
			</body>
		</html>"""
	>>> h2d_instance = HTML2Data(html = html) #You can also create it from a url = url

Using XPATH config
--------------------
One you have the object 
::

	>>> config = [
            {'name': 'header_title', 'xpath': '//head/title/text()'},
            {'name': 'body_title', 'xpath': '//h1/b/text()'},
            {'name': 'description', 'xpath': '//div[@class="description"]/text()'},
        ]

	>>> h2d_instance.parse(config = config)
	{'header_title': 'Example Page', 'body_title': 'Title', 'description': 'This is not a valid HTML'}

Using CSS SELECTOR config
-------------------------
::

	>>> config = [
	        {'name': 'header_title', 'css': 'head title'},
	        {'name': 'body_title', 'css': 'h1 b '},
	        {'name': 'description', 'css': 'div.description'},
	    ]

	>>> h2d_instance.parse(config = config)
	{'header_title': 'Example Page', 'body_title': 'Title', 'description': 'This is not a valid HTML'}


Real life example
-----------------
::

	import urllib2

	from html2data import HTML2Data

	response = urllib2.urlopen('http://sil.senado.cl/cgi-bin/sil_ultproy.pl')
	html = response.read()

	config = [
	    {'name': 'fecha', 'css': 'td:nth-child(1)'},
	    {'name': 'id', 'css': 'td:nth-child(2) a'},
	    {'name': 'nombre', 'css': 'td:nth-child(3)'},
	    {'name': 'estado', 'css': 'td:nth-child(4)'},
	]

	html_instance = HTML2Data(html = html)
	rows = html_instance.parse_one(css = 'td td tr', multiple = True, text = False)
	for row_element in rows:
	    row_in_html = HTML2Data(tree = row_element)
	    print row_in_html.parse(config = config)

You will get something like:
::

	{'nombre': 'Reforma Constitucional que restablece obligatoriedad del voto.', 'fecha': '24/11/2011', 'estado': 'En tramitación', 'id': '8062-07'}
	..
	{'nombre': 'Prohíbe el anatocismo.', 'fecha': '02/11/2011', 'estado': 'En tramitación', 'id': '8007-03'}


Requirement
===========

 * lxml 2.0+
 * httplib2

Tests
=====
Requirement
-----------

 * ludibrio
 * nose

Run
---

    >> nosetests
django-pusher 0.1.1
a reusable app that wraps the api for pusher.com to allow registration of namespaces and auth callbacks
License: BSD

Django Pusher
=============

Django Pusher is an application that makes it easier to utilize pusher.com with reusable applications. It solves
the problem of authentication of private/presence channels as well as helping to prevent namespace clashes.

Usage
-----

Django Pusher provides a pusher object gotten by::

    from django_pusher.push import pusher

``pusher`` Mimics the Generic Python Library provided by pusher.com except it adds a ``register`` and ``unregister`` command.
sphinxfeed 0.3
Sphinx extension for generating RSS feeds
License: BSD

sphinxfeed
==========

This Sphinx extension is derived from Dan Mackinlay's `sphinxcontrib.feed
<http://bitbucket.org/birkenfeld/sphinx-contrib/src/tip/feed/>`_ package.

It relies on the `feedformatter <http://code.google.com/p/feedformatter/>`_
package instead of Django utils to generate the feed.

Usage
-----

#. Install ``sphinxfeed`` using ``easy_install`` / ``pip`` /
   ``python setup.py install``

#. Add ``sphinxfeed`` to the list of extensions in your ``conf.py``::
   
       extensions = [..., 'sphinxfeed']

#. Customise the necessary configuration options to correctly generate the
   feed::

       feed_base_url = 'http://YOUR_HOST_URL'
       feed_author = 'YOUR NAME'