Skip to main content

Downloads Circle CI CodeCov Requirements Status

論及 ronkyuu - mention, reference to, touching upon

Python package to help with parsing, handling and other manipulations of the IndieWeb Toolkit items, such as:

  • 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
  • Take a source URL and a resource URL that is supposed to be a rel=me for the source and verify that it is.

See the examples/ directory for sample command line tools.

Because Ronkyuu uses BeautifulSoup4 for it's amazing HTML wrangling ability, you have the option of enabling faster parsing via the lxml package instead of the default html5lib package.

import ronkyuu

ronkyuu.webmention.setParser('lxml')

Contributors

  • bear (Mike Taylor)
  • kartikprabhu (Kartik Prabhu)

WebMentions

findMentions(sourceURL, targetURL, ...)

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(html)

Search the given html content for all <link /> elements and return any discovered WebMention URL.

discoverEndpoint(sourceURL, ...)

Discover any WebMention endpoint for a given sourceURL.

sendWebmention(sourceURL, targetURL, webmention)

Send to the targetURL a WebMention for the sourceURL. The WebMention will be discovered if it is not given in the optional webmention parameter.

RelMe

findRelMe(sourceURL)

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(profileURL, resourceURL, profileRelMes, resourceRelMes)

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 parameter.

Validators

URLValidator class

TODO: fill in details of how to use

Requires

Python v3.9+ -- see Pipfile for the full list

The Makefile takes advantage of Pipenv (which will use pyenv if installed) to manage the Python dependencies.

For testing we use httmock to mock the web calls.

Release files for ronkyuu 0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ronkyuu 0.9
File Size Uploaded
ronkyuu-0.9.tar.gz 77.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ronkyuu 0.9
File Interpreter ABI Platform
ronkyuu-0.9-py3-none-any.whl Python 3 none any Details

Total release size: 88.6 kB

Release files / ronkyuu-0.9.tar.gz

Download URL ronkyuu-0.9.tar.gz
Size 77.0 kB
Tags Source
SHA-256 checksum
How to use checksums
bb7d9f69d76b2e1c57a665ebc2baf7002ceaa311782b54652a1e6f97b61f0ed9
BLAKE2b-256 checksum
How to use checksums
e609908acf1dbe0623cccd33d9d0f8505605ee260bf64f36e935bf428ee87783
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

Release files / ronkyuu-0.9-py3-none-any.whl

Download URL ronkyuu-0.9-py3-none-any.whl
Size 11.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
06bc8bb80e31b7a1f050d61f7206fe9326249d0aed8860c49cebb73758541eea
BLAKE2b-256 checksum
How to use checksums
d7793276b4d0f7544354d5c29f7d24b21c72e66f7e309761bf8e33c6af3fa63d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

Release history Release notifications | RSS feed

This release

0.9 This release

2 release files

0.7

2 release files

0.6

2 release files

0.5

2 release files

0.4

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3

2 release files

0.2.11

1 release file

0.2.10

1 release file

0.2.9

2 release files

0.2.7

1 release file

0.2.6

1 release file

0.2.4

1 release file

0.2.3

1 release file

0.2.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page