Skip to content

Utilities to aid the implementation of various IndieWeb specifications and functionalities. Built with Python.

License

Notifications You must be signed in to change notification settings

jamesvandyne/indieweb-utils

 
 

Repository files navigation

Python indieweb-utils Library

Documentation Status

indieweb-utils is a Python library that provides building blocks for people implementing IndieWeb applications. This library contains implementations for some specifications that may be useful in IndieWeb applications.

This project is under active development.

The documentation for this project is available at indieweb-utils.readthedocs.io.

License

This project is licensed under the MIT license.

Dependencies

This project uses the following dependencies:

  • BeautifulSoup4 for HTML parsing
  • mf2py for microformats parsing
  • requests for making HTTP requests

Running Tests

Quality is maintained ensuring each merged passes testing, typing, linting, and formatting requirements.

To check locally install the development dependencies and run the suite using tox.

$ pip install -r requirements_dev.txt
$ tox

Alternatively, you can run just a single check by passing the environment to tox.

Unit Tests

Tests use pytest.

$ tox -e py39  # Run all tests
$ tox -e py39 tests/test_indieweb_utils.py::TestPostTypeDiscovery  # Run a single test

Linting

Linting is checked with black, isort, and flake8.

$ tox -e lint

Black and isort errors can be fixed automatically. Use the fmt to fix those errors automatically.

$ tox -e fmt

Typing

Types are validated with mypy.

$ tox -e typecheck

Contributing

This project welcomes contributions from anyone who wants to improve the library.

This library would benefit from the addition of new helper functions that would assist someone building an IndieWeb application. Assistance with documentation, building test cases, and fixing any bugs listed on the Issues page is also welcome.

If you have another idea on how to improve this library, let us know.

Feel free to create an issue or pull request on GitHub and your contribution will be reviewed.

Contributors

About

Utilities to aid the implementation of various IndieWeb specifications and functionalities. Built with Python.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%