Tools for implementing a webmention enpoint.
Project description
went stands for webmention endpoint tools.
import went
try:
webmention = went.Webmention(source_url, target=target_url)
# or webmention = went.Webmention(source_html, target=target_url)
except (went.NoContent, went.NoURLInSource):
webmention = None
webmention.date == '2015-02-26'
webmention.url == 'http://someone.com/blog/hello.html'
webmention.name == 'Hello world'
webmention.html == '<a href="http://otherpage.com/">to see my <i>hello world</i> go to this other page</a>'
webmention.body == '[to see my _hello world_ go to this other page](http://otherpage.com/)'
webmention.via == 'twitter.com' # bridgy-specific
webmention.like == False # like and like-of become this.
webmention.author.name == 'Someone'
webmention.author.url == 'http://someone.com/'
webmention.author.photo == 'http://someone.com/photo.jpg'
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
went-0.2.0.tar.gz
(3.6 kB
view details)
Built Distribution
went-0.2.0-py3-none-any.whl
(5.1 kB
view details)
File details
Details for the file went-0.2.0.tar.gz
.
File metadata
- Download URL: went-0.2.0.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c39c1f403fb653e59e5d8448210ac95c5bed3fdb6313b59f71c7d3375da457b5 |
|
MD5 | 747d199df1209cec24dff2e4576a997b |
|
BLAKE2b-256 | 913640b7b6ba0a0a6bcce7a5aa35e655621dbb60982730b17f1baa0a69f64543 |
File details
Details for the file went-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: went-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a5063ebde661ae21925a5387c042f0fb51fd3744e96b3c64ef9bef0ad3702fe |
|
MD5 | 68fc51e3031d9dd160813a4984a463f0 |
|
BLAKE2b-256 | 9ad997f142820ced679e7f2264c1df3db6f317512dbb7c7c0c866511b7349a64 |