--- id: localstack-client version: "2.12" license: Apache License 2.0 license_treatment: permissive maintenance: active --- # localstack-client — A lightweight Python client for LocalStack. License: permissive · Maintenance: active · Downloads: 964.1K/mo ## What it is and what it does localstack-client is a thin Python wrapper around boto3 that automatically configures AWS API endpoints to point to a local LocalStack instance instead of real AWS. It lets you write code using the standard boto3 API—creating S3 buckets, queuing messages to SQS, or any other AWS service operation—but have those calls execute against your local development environment. The package supports multiple usage patterns: you can import it as a drop-in replacement for boto3, instantiate a session directly, or use a patch function to transparently redirect existing boto3 calls. Configuration is handled via environment variables like AWS_ENDPOINT_URL, LOCALSTACK_HOST, and USE_SSL. It has no external runtime dependencies and supports Python 3.8, 3.9, 3.10, 3.11, 3.12, and 3.13. Use it for: - Write integration tests for AWS-dependent code without provisioning real cloud resources or incurring costs. - Develop and debug multi-service cloud applications locally using S3, SQS, and other AWS services. - Mock boto3 calls in pytest fixtures to test code that uses boto3 without modifying the original source. - Prototype and iterate on cloud infrastructure code before deploying to production AWS. - Run CI/CD pipelines that exercise AWS service interactions in an isolated, reproducible local environment. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. A Python client that wraps boto3 to redirect AWS API calls to a local LocalStack instance for development and testing without hitting real AWS. Yes, if you are developing or testing AWS-dependent Python code and have LocalStack running locally. The high install friction is a minor drawback, but active maintenance, permissive license, zero runtime dependencies, and no known vulnerabilities make it solid for local cloud development. Not worth installing if you do not use boto3 or do not have LocalStack set up. ## Install pip install localstack-client uv add localstack-client poetry add localstack-client ## Installing localstack-client Before you install: High install friction due to a source distribution requirement. The package is actively maintained with a recent release, but installation will require a build step rather than a wheel. License in practice: Licensed under Apache License 2.0 (permissive), allowing commercial and private use with minimal restrictions. Quickstart: pip install localstack-client import localstack_client.session as boto3 client = boto3.client('s3') response = client.list_buckets() LocalStack must be installed and running locally; the localstack command needs to be available. Verify before relying: - Specific LocalStack server versions or release cycles that this client version is compatible with. - Whether all AWS services supported by boto3 are fully functional through this wrapper. ## Package facts - License: Apache License 2.0 (permissive) - Python support: unspecified - Install friction: high - Maintenance: active - Downloads: 964.1K/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags local AWS testing, boto3 localstack wrapper, mock AWS services locally, localstack python client, development cloud testing, local S3 SQS testing, aws-local-testing, development-tool [View on SkillFed](https://skillfed.io/packages/localstack-client) · [View on PyPI](https://pypi.org/project/localstack-client/)