Webmention Manager
Project description
[![Downloads](https://img.shields.io/pypi/v/ronkyuu.svg)](https://pypi-hypernode.com/pypi/ronkyuu/)
[![Requirements Status](https://requires.io/github/bear/ronkyuu/requirements.svg?branch=master)](https://requires.io/github/bear/ronkyuu/requirements/?branch=master)
論及 ronkyuu - mention, reference to, touching upon
Python package to help with parsing, handling and other manipulations of the IndieWeb Toolkit items, such as:
* [Webmention](http://indiewebcamp.com/webmention)
* Discovery of mentions in a publisher's post, the handling of finding what the Webmention callback is for the reference and also handling of incoming Webmention requests are handled.
* [RelMe](http://microformats.org/wiki/rel-me)
* Take a source URL and a resource URL that is supposed to be a rel=me for the source and verify that it is.
Roadmap
=======
Working
* Mention discovery in a post
* Discovery of Webmention callback for a link
* POST of Webmention to discovered callback
* Receipt of a Webmention POST
* support for RelMe verification
See the examples/ directory for sample command line tools.
Contributors
============
* bear (Mike Taylor)
* kartikprabhu (Kartik Prabhu)
WebMentions
===========
findMentions()
--------------
Find all <a /> elements in the html returned for a post.
If any have an href attribute that is not from the one of the items in domains, append it to our lists.
findEndpoint()
--------------
Search the given html content for all <link /> elements and return any discovered WebMention URL.
discoverEndpoint()
------------------
Discover any WebMention endpoint for a given URL.
sendWebmention(sourceURL, targetURL, webmention=None)
-----------------------------------------------------
Send to the targetURL a WebMention for the sourceURL.
The WebMention will be discovered if not given in the optional webmention parameter.
RelMe
=====
findRelMe()
-----------
Find all <a /> elements in the given html for a post.
If any have an href attribute that is rel="me" then include it in the result.
confirmRelMe()
--------------
Determine if a given resourceURL is authoritative for the profileURL.
The list of rel="me" links will be discovered if not provided in the optional profileRelMes parameter or the resourceRelMes paramter.
Validators
==========
URLValidator class
TODO: fill in details of how to use
Requires
========
Python v2.6+ but see requirements.txt for a full list
For testing we use [httmock](https://pypi-hypernode.com/pypi/httmock/) to mock the web calls.
[![Requirements Status](https://requires.io/github/bear/ronkyuu/requirements.svg?branch=master)](https://requires.io/github/bear/ronkyuu/requirements/?branch=master)
論及 ronkyuu - mention, reference to, touching upon
Python package to help with parsing, handling and other manipulations of the IndieWeb Toolkit items, such as:
* [Webmention](http://indiewebcamp.com/webmention)
* Discovery of mentions in a publisher's post, the handling of finding what the Webmention callback is for the reference and also handling of incoming Webmention requests are handled.
* [RelMe](http://microformats.org/wiki/rel-me)
* Take a source URL and a resource URL that is supposed to be a rel=me for the source and verify that it is.
Roadmap
=======
Working
* Mention discovery in a post
* Discovery of Webmention callback for a link
* POST of Webmention to discovered callback
* Receipt of a Webmention POST
* support for RelMe verification
See the examples/ directory for sample command line tools.
Contributors
============
* bear (Mike Taylor)
* kartikprabhu (Kartik Prabhu)
WebMentions
===========
findMentions()
--------------
Find all <a /> elements in the html returned for a post.
If any have an href attribute that is not from the one of the items in domains, append it to our lists.
findEndpoint()
--------------
Search the given html content for all <link /> elements and return any discovered WebMention URL.
discoverEndpoint()
------------------
Discover any WebMention endpoint for a given URL.
sendWebmention(sourceURL, targetURL, webmention=None)
-----------------------------------------------------
Send to the targetURL a WebMention for the sourceURL.
The WebMention will be discovered if not given in the optional webmention parameter.
RelMe
=====
findRelMe()
-----------
Find all <a /> elements in the given html for a post.
If any have an href attribute that is rel="me" then include it in the result.
confirmRelMe()
--------------
Determine if a given resourceURL is authoritative for the profileURL.
The list of rel="me" links will be discovered if not provided in the optional profileRelMes parameter or the resourceRelMes paramter.
Validators
==========
URLValidator class
TODO: fill in details of how to use
Requires
========
Python v2.6+ but see requirements.txt for a full list
For testing we use [httmock](https://pypi-hypernode.com/pypi/httmock/) to mock the web calls.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ronkyuu-0.3.5.tar.gz
(56.4 kB
view details)
Built Distribution
ronkyuu-0.3.5-py2-none-any.whl
(11.5 kB
view details)
File details
Details for the file ronkyuu-0.3.5.tar.gz
.
File metadata
- Download URL: ronkyuu-0.3.5.tar.gz
- Upload date:
- Size: 56.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b728e23cbc5795ef1f78f9fd06d83dbe75f05d0d88174c48661af331e5d82bc |
|
MD5 | cbade619ec98284b94980cb54f178310 |
|
BLAKE2b-256 | 79f1246733b151b533a1d3736a3aa211343bef51e96a89530d5c537962cb213b |
File details
Details for the file ronkyuu-0.3.5-py2-none-any.whl
.
File metadata
- Download URL: ronkyuu-0.3.5-py2-none-any.whl
- Upload date:
- Size: 11.5 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7075536e2627ffcda856f8156f9b6a4dc09e4fd217aa77cc5f4a9a7a2bd82cd5 |
|
MD5 | 9fc66673ac1c644b1bbfd08aee2cedbb |
|
BLAKE2b-256 | ae048f1b7a6d661d124cd487dafca6a6eb84840f820f544591a0891178cac1fa |