Skip to main content

Django app implementing HTCPCP-TEA as defined in RFC 7168.

Project description

Django HTCPCP-TEA

Travis CI Build Coverage Documentation Status PyPI - Python Version PyPI - Django Version License

[T]here is a strong, dark, rich requirement for a protocol designed espressoly for the brewing of coffee.

—RFC 2324 Section 1

A Django app that implements the TEA extension to HTCPCP as defined in RFC 7168.

This app extends the Django web framework to simulate the functionality of an HTCPCP server. Both the HTCPCP/1.0 protocol from RFC 2324 and the HTCPCP-TEA protocol from RFC 7168 are supported.

Notable features:

  • Customizable coffee and teapots

  • Support for BREW and WHEN HTTP methods

  • Interactive brewing sessions

  • HTCPCP response codes (e.g. 418 I’m a teapot)

  • User-defined forbidden combinations of beverage additions

Documentation

Documentation for Django HTCPCP-TEA is available on Read the Docs.

References

License

This software is licensed under the MIT License. For more information, read the file LICENSE.

Changes

For complete record of changes, see the commit log of the public git repository.

v0.5.0

Released 2019-07-08

  • Add unit tests for the views module

  • Add formal support for Python 3.7

  • Expand utils unit tests

  • Fix missing Alternates header due to generator exhaustion

  • Fix Server header override when the WSGI implementation does not populate the SERVER_SOFTWARE variable

  • Fix detection of supported teas in the request URI

  • Refactor handling of Alternates header generation

  • Refactor the pots data fixture to include a pot that supports a proper subset of available teas

v0.4.0

Released 2019-07-05

  • Add setting to override the Server header for HTCPCP responses

  • Add support for user-defined forbidden combinations of additions

  • Add additional unit tests for the utils and models modules

  • Add data fixture for demo forbidden combinations of additions

  • Update README description

  • Update package metadata

  • Update reStructuredText formatting in the configuration docs

  • Optimized model listings on the admin site

v0.3.1

Released 2019-06-25

  • Remove Sphinx build directory from package data

v0.3.0

Released 2019-06-24

  • Add Sphinx documentation for installation and configuration

  • Add unit tests for the models module

  • Update links in REAME.rst

  • Fix typo in Travis-CI build matrix

  • Fix error in utils module unit tests

v0.2.2

Released 2019-06-24

  • Fix syntax error in Python 3.4

  • Fix dependency errors for Travis-CI build jobs (123e022)

v0.2.1

Released 2019-06-24

  • Add Travis-CI and Coveralls reporting to README

v0.2.0

Released 2019-06-24

  • Add informative content to README

  • Add data fixture for RFC 2324 additions

  • Add data fixture for RFC 7168 additions

  • Add data fixture for RFC 7168 teas

  • Add data fixture for demo pots

  • Add default coverage configuration

  • Add Travis-CI integration

  • Add script to run Django tests

  • Add tests package

  • Add unit tests for utils module

  • Fix filter override in admin.PotsServingMixin

  • Fix duplicate tea types being recorded in admin counts

  • Refactor template hierarchy

  • Improve context visibility in templates

  • Refactor logic for determining a pots addition and milk support

v0.1.2

Released 2019-06-23

  • Re-release patch version due to packaging mishap

v0.1.1

Released 2019-06-23

  • Add data files to package manifest

v0.1.0

Released 2019-06-21

  • Add licence

  • Add app class

  • Add Pot model

  • Add TeaType model

  • Add Addition model

  • Add initial admin site

  • Add settings module

  • Add initial url config

  • Add initial HTCPCP middleware

  • Add require_htcpcp decorator

  • Add HTCPCP view

  • Add initial templates

  • Add utils module

  • Add setup script

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

django-htcpcp-tea-0.5.0.tar.gz (20.0 kB view details)

Uploaded Source

File details

Details for the file django-htcpcp-tea-0.5.0.tar.gz.

File metadata

  • Download URL: django-htcpcp-tea-0.5.0.tar.gz
  • Upload date:
  • Size: 20.0 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.8

File hashes

Hashes for django-htcpcp-tea-0.5.0.tar.gz
Algorithm Hash digest
SHA256 cd47168fa88b23f4a5fa6028ab38b9cedd120869200d93f60534a5758149f6cb
MD5 c61e40ce8aa10e7ddf0eb725257bdb70
BLAKE2b-256 c85729050f18e88962817bac5cffcddee6e94eec5ba909cad4c2b544c604e02f

See more details on using hashes here.

Supported by

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