Metadata-Version: 2.1
Name: gobits
Version: 0.0.2
Summary: Small Python package to add GCP metadata to messages
Home-page: https://github.com/vwt-digital/gobits
Author: VWT Digital
Author-email: support@vwt.digital
License: GPLv3+
Description: # Description
        
        Gobits is a very small module, which acts as a metadata carrier for pub/sub messages. It automatically adds fields that may be useful downstream to determine the origin of a pub/sub message.
        
        # Usage
        
        Cloud function with http trigger:
        
        ```python
        from gobits import Gobits
        
        
        def handler(request):
        
            bits = Gobits(request=request)
        
            message = {
              'gobits': bits,
              'data': 'message-to-send'
            }
        
        ```
        
        Cloud function with storage trigger:
        
        ```python
        from gobits import Gobits
        
        
        def handler(data, context):
        
            bits = Gobits(context=context)
        
            message = {
              'gobits': bits,
              'data': 'message-to-send'
            }
        
        ```
        
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.7
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Scientific/Engineering
Description-Content-Type: text/markdown
