Python is a programming language and web server runtime environment used for many IndieWeb projects.
Examples of indieweb community members who are using Python on their personal sites (alphabetical order):
- ... Probably others. Too soon to tell!
Generally useful libraries being developed by IndieWeb participants in Python.
- ronkyuu, a collection of tools for sending webmentions and verifying rel=me.
- webmention-tools, utilities to send webmentions and query Webmention.io
- mf2py, a microformats2 parser
- Bleeding-edge development currently being done on Kartik's fork. Will be folded into the master in the future.
- mf2util is a microformats2-specific parsing utility. Useful for reading the relevant properties for comments and reply-contexts. Also has some special handling for date/times that converts them into Python datetime or date objects.
- ninka is a small library to handle indieauth endpoint discovery and auth token validation
- python-indieweb is an example Flask app that implements IndieAuth, webmentions, micropub-endpoint and token-endpoint.
- granary fetches and converts silo data (Facebook, Flickr, Google+, Instagram, and Twitter via their APIs) to/from ActivityStreams, microformats2 HTML and JSON, Atom, and more. Also available as a REST service.
Non-IndieWeb-specific libraries that may still be of interest.
- Requests: By far the best way to interact with any HTML endpoint.
- BeautifulSoup: sits of top of other HTML parsing libraries (lxml or html5lib) and provides a nice interface for wading through HTML, even horribly broken HTML.
- Bleach: sanitizer and autolinker. Useful for removing dangerous code from e.g., for displaying remote content. Excludes almost everything by default.
IndieWeb projects built with Python:
- Bridgy (open source) runs on Google AppEngine
- Red Wind
Python does not have PHP's ubiquity, and finding hosting can be a little bit more of a challenge. See web_hosting for more details.
- Google AppEngine (webapp, Django)
- Heroku (Flask, Django)
- VPS running a WSGI server like uWSGI or gunicorn.