You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

format.py 716B

123456789101112131415161718192021
  1. # format.py
  2. # ~~~~~~~~~
  3. # This module implements the Format class.
  4. # :authors: Justin Karneges, Konstantin Bokarius.
  5. # :copyright: (c) 2015 by Fanout, Inc.
  6. # :license: MIT, see LICENSE for more details.
  7. # The Format class is provided as a base class for all publishing
  8. # formats that are included in the Item class. Examples of format
  9. # implementations include JsonObjectFormat and HttpStreamFormat.
  10. class Format(object):
  11. # The name of the format which should return a string. Examples
  12. # include 'json-object' and 'http-response'
  13. def name(self):
  14. pass
  15. # The export method which should return a format-specific hash
  16. # containing the required format-specific data.
  17. def export(self):
  18. pass