Skip to main content

Webmention Manager

Project description

ronkyuu
=======
論及 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

Pending
* MicroPub support

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


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.1.tar.gz (55.1 kB view details)

Uploaded Source

Built Distribution

ronkyuu-0.3.1-py2-none-any.whl (11.3 kB view details)

Uploaded Python 2

File details

Details for the file ronkyuu-0.3.1.tar.gz.

File metadata

  • Download URL: ronkyuu-0.3.1.tar.gz
  • Upload date:
  • Size: 55.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ronkyuu-0.3.1.tar.gz
Algorithm Hash digest
SHA256 0f7e004048ea857702893167df205fca5191ca7aeda8917d5f5432a69eaf4c78
MD5 41a833f3bb23904b60b31e7850e681a4
BLAKE2b-256 8f1de27f8df914bd019a8b7636cdddbbee1d8e7f311d1fb5a8709f7f74a15838

See more details on using hashes here.

File details

Details for the file ronkyuu-0.3.1-py2-none-any.whl.

File metadata

File hashes

Hashes for ronkyuu-0.3.1-py2-none-any.whl
Algorithm Hash digest
SHA256 3d7a5c63dca050001a9420b09188e4b28f7b8616cf1cdf82f634f260af28c161
MD5 f700142d19ae65b69727c64635ae919f
BLAKE2b-256 f33f70543e29cf20ec840b552c2042011983df69a6c123a52705a97832835881

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page