This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Tools for webmention.org.

Project Description
webmention-tools
===============

Some simple tools in python to deal with webmentions.



Currently:

- webmentiontools.send implements WebmentionSend
that sends webmentions.
- webmentiontools.urlinfo implements UrlInfo() that
will rerurn usefull information about a web page, like
title, the existance of an "in-reply-to" link,
the author name, the author image, etc.
- webmentiontoold.webmentionio provides a class to query
webmention.io

There is also the corresponting command line tool,
webmention-tools (which is also a simple example on how
to use the library.

Check bin/demp.py on how to use the library to query
webmention.io and present information for all URLs that
mentioned http://indiewebcamp.com/webmention


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

pip install webmentiontools

Usage:
========

Command line:

webmention-tools send `source` `target`
webmention-tools urlinfo `url`

or

Python code to send a webmention:

from webmentiontools.send import WebmentionSend
source = 'URL of page sending the webmention'
target = 'URL of page to receive the webmention'
mention = WebmentionSend(source, target)
mention.send()

Python code to get info about a webpage.

from webmentiontools.urlinfo import UrlInfo
url = 'a link to a web page'
i = UrlInfo(url)
if i.error:
print 'There was an error getting %s' % url
else:
print 'in-reply-to link: %s' % i.inReplyTo()
print 'publication date: %s' % i.pubDate()
print 'page title: %s' % i.title()
print 'image link: %s' % i.image()
Release History

Release History

This version
History Node

0.4.0

History Node

0.3.7

History Node

0.3.6

History Node

0.3.4

History Node

0.3.3

History Node

0.3.2

History Node

0.3.1

History Node

0.3

History Node

0.2

History Node

0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
webmentiontools-0.4.0.tar.gz (6.0 kB) Copy SHA256 Checksum SHA256 Source May 10, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting