Metadata-Version: 2.1
Name: httpie-lambda
Version: 0.4
Summary: AWS Lambda invoke transport plugin for HTTPie
Home-page: https://github.com/IlyaSukhanov/httpie-lambda
Author: Ilya Sukhanov
Author-email: ilya@sukhanov.net
License: MIT license
Keywords: HTTPie
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
License-File: LICENSE
Requires-Dist: lambda-requests (>=1.4)
Requires-Dist: httpie (>=2.5.0)
Provides-Extra: testing
Requires-Dist: pip (~=20.3) ; extra == 'testing'
Requires-Dist: flake8 ; extra == 'testing'
Requires-Dist: tox ; extra == 'testing'
Requires-Dist: coverage ; extra == 'testing'
Requires-Dist: pytest ; extra == 'testing'
Requires-Dist: pyflakes ; extra == 'testing'
Requires-Dist: pytest-cov ; extra == 'testing'
Requires-Dist: bandit ; extra == 'testing'
Requires-Dist: black (~=21.5b1) ; extra == 'testing'
Requires-Dist: isort ; extra == 'testing'
Requires-Dist: wheel ; extra == 'testing'
Requires-Dist: twine ; extra == 'testing'

===============================
HTTPie-Lambda
===============================


.. image:: https://img.shields.io/pypi/v/httpie_lambda.svg
        :target: https://pypi.python.org/pypi/httpie_lambda

A `HTTPie`_ plugin for interacting with AWS Lambdas.

Invoke AWS Lambda directly with all the user-friendliness of `HTTPie`_ and without
having to utilize API Gateway.

.. _`HTTPie`: https://httpie.io/

Quick Start
------------

Installation
````````````

.. code-block:: shell

    pip intall httpie-lambda

Usage
`````

Usage is consistent with HTTPie, simply use `http+lambda` as protocol:

.. code-block:: shell

	> http http+lambda://flaskexp-test/health
	HTTP/1.1 200 OK
	Content-Length: 21
	Content-Type: application/json
	X-Request-ID:

	{
		"status": "UP"
	}

For more comprehensive example such as POST refer to `HTTPie usage`_ documentation.

Specify a region or AWS credentials profile:

.. code-block:: shell

	> env AWS_DEFAULT_REGION=us-west-2 AWS_PROFILE=sukhanov http http+lambda://flaskexp-test/health
	HTTP/1.1 200 OK
	Content-Length: 21
	Content-Type: application/json
	X-Request-ID:

	{
		"status": "UP"
	}


For more information on AWS Authentication configuration see `lambda-requests`_. 

.. _`HTTPie usage`: https://httpie.io/docs#main-features
.. _`lambda-requests`: https://github.com/IlyaSukhanov/lambda-requests

