Skip to main content

LocalStack Extension: httpbin

Project description

LocalStack httpbin extension

Install LocalStack Extension

A simple HTTP Request & Response Service directly in LocalStack using httpbin. Get the full httpbin experience directly in LocalStack without connecting to httpbin.org!

The httpbin API is served through the hostname http://httpbin.localhost.localstack.cloud:4566.

Install

Install the extension by running:

localstack extensions install localstack-extension-httpbin

Usage

Opening http://httpbin.localhost.localstack.cloud:4566 in the browser will show you the flasgger UI: Screenshot at 2023-07-27 14-33-03

And you can call the API endpoints just as you would httpbin.org. Screenshot at 2023-07-27 14-34-15

Development

Install local development version

To install the extension into localstack in developer mode, you will need Python 3.10, and create a virtual environment in the extensions project.

In the newly generated project, simply run

make install

Then, to enable the extension for LocalStack, run

localstack extensions dev enable .

You can then start LocalStack with EXTENSION_DEV_MODE=1 to load all enabled extensions:

EXTENSION_DEV_MODE=1 localstack start

Licensing

  • httpbin is licensed under the ISC license: https://github.com/postmanlabs/httpbin/blob/master/LICENSE
  • The httpbin source code is vendored with this extension, slight modifications were made to make it compatible with the latest Python and Werkzeug version. The modifications retain the ISC license
  • The extension code is licensed under the Apache 2.0 License

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

localstack_extension_httpbin-0.1.2.tar.gz (97.8 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file localstack_extension_httpbin-0.1.2.tar.gz.

File metadata

File hashes

Hashes for localstack_extension_httpbin-0.1.2.tar.gz
Algorithm Hash digest
SHA256 f6c940238a7cae2b8ad575b8550aaafcff29241261e117b84127ac1587c5c829
MD5 02e32269dd3308770e8d4ee445efa91c
BLAKE2b-256 78727f71a47ff4845665860bec3aea15b07de861aa529a564ac3fbb090a2ea8e

See more details on using hashes here.

File details

Details for the file localstack_extension_httpbin-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for localstack_extension_httpbin-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8f1f54132733f6fc1faa22fc164c23f9c6fe6969e0a691c146e33b115aff7b22
MD5 751e1a702149f2341af84d952c551367
BLAKE2b-256 bba818b3117989aa2d033cfaf97683343ab66b010d635978a0f6da9549e2ab1c

See more details on using hashes here.

Supported by

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