File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22import shlex
33
44from localstack .config import is_env_not_false
5- from localstack . extensions .utils import ProxiedDockerContainerExtension
5+ from localstack_extensions .utils import ProxiedDockerContainerExtension
66from rolo import Request
77from werkzeug .datastructures import Headers
88
Original file line number Diff line number Diff line change 11import requests
22import httpx
33from localstack .utils .strings import short_uid
4- from localstack . extensions .utils import (
4+ from localstack_extensions .utils import (
55 get_frames_from_http2_stream ,
66 get_headers_from_frames ,
77)
Original file line number Diff line number Diff line change @@ -3,27 +3,6 @@ LocalStack Extensions Utils
33
44A utility library providing common functionality for building [ LocalStack Extensions] ( https://github.com/localstack/localstack-extensions ) .
55
6- ## Features
7-
8- This library provides reusable utilities for LocalStack extension development:
9-
10- ### ProxiedDockerContainerExtension
11-
12- A base class for creating LocalStack extensions that run Docker containers and proxy requests to them through the LocalStack gateway.
13-
14- Features:
15- - Automatic Docker container lifecycle management
16- - HTTP/1.1 request proxying via the LocalStack gateway
17- - HTTP/2 support for gRPC traffic
18- - Configurable host and path-based routing
19-
20- ### HTTP/2 Proxy Support
21-
22- Utilities for proxying HTTP/2 and gRPC traffic through LocalStack:
23-
24- - ` TcpForwarder ` : Bidirectional TCP traffic forwarding
25- - ` apply_http2_patches_for_grpc_support ` : Patches to enable gRPC proxying
26-
276## Installation
287
298``` bash
@@ -41,7 +20,7 @@ pip install "git+https://github.com/localstack/localstack-extensions.git#egg=loc
4120### Creating a Docker-based Extension
4221
4322``` python
44- from localstack.extensions .utils import ProxiedDockerContainerExtension
23+ from localstack_extensions .utils import ProxiedDockerContainerExtension
4524from werkzeug.datastructures import Headers
4625
4726class MyExtension (ProxiedDockerContainerExtension ):
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ # LocalStack Extensions utilities package
Original file line number Diff line number Diff line change 1- from localstack . extensions .utils .docker import (
1+ from localstack_extensions .utils .docker import (
22 ProxiedDockerContainerExtension ,
33 ProxyResource ,
44)
5- from localstack . extensions .utils .h2_proxy import (
5+ from localstack_extensions .utils .h2_proxy import (
66 TcpForwarder ,
77 apply_http2_patches_for_grpc_support ,
88 get_headers_from_data_stream ,
Original file line number Diff line number Diff line change 77
88from localstack import config
99from localstack .config import is_env_true
10- from localstack . extensions .utils .h2_proxy import (
10+ from localstack_extensions .utils .h2_proxy import (
1111 apply_http2_patches_for_grpc_support ,
1212)
1313from localstack .utils .docker_utils import DOCKER_CLIENT
File renamed without changes.
Original file line number Diff line number Diff line change @@ -37,4 +37,4 @@ dev = [
3737]
3838
3939[tool .setuptools .packages .find ]
40- include = [" localstack *" ]
40+ include = [" localstack_extensions *" ]
You can’t perform that action at this time.
0 commit comments