HTTPie-Lambda
Invoke AWS Lambda from the command line with all the convenience of HTTPie and without having to utilize API Gateway.
Quick Start
Installation
pip intall httpie-lambda
Usage
Usage is consistent with HTTPie, simply use http+lambda as protocol and the name of the lambda as host portion of the URL.
To call health endpoint of the Lambda function named flaskexp-test:
> 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:
> 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.
How does its work
Lambda is invoked with payload that emulates AWS API Gateway simple proxy format. This enables calling of lambda as an HTTP service without having to utilize AWS API Gateway itself.
Metadata
Release files for httpie-lambda 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| httpie-lambda-1.0.tar.gz | 3.2 kB | Without provenance | Details for httpie-lambda-1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| httpie_lambda-1.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for httpie_lambda-1.0-py2.py3-none-any.whl |
Total release size: 6.7 kB
Release files / httpie-lambda-1.0.tar.gz
| Download URL | httpie-lambda-1.0.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8c102c0728506357b9989a26e988d4e987f379997c364ae10a931dd88f5c8043
|
|
BLAKE2b-256 checksum How to use checksums |
f4dabff94c3334c1820fc2728aed431c228cd294d5969f0eaef89d0c10f6c636
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|
Release files / httpie_lambda-1.0-py2.py3-none-any.whl
| Download URL | httpie_lambda-1.0-py2.py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
eae46d7a273cb6d1216e56b6ad77b4f78ef40a1823eb5c7c8d711b8b4282b954
|
|
BLAKE2b-256 checksum How to use checksums |
0c045b9a3779de5ad306bb03b5816c9445793e274bacc9e4ba06a410f3cf9e29
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|
Security for httpie-lambda 1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.