Skip to main content

Django Emulate AWS Env

https://badge.fury.io/py/django-emulate-aws-env.svg https://travis-ci.org/danielholmes/django-emulate-aws-env.svg?branch=master https://codecov.io/gh/danielholmes/django-emulate-aws-env/branch/master/graph/badge.svg

Emulates the conditions of an AWS “Serverless” environment (API Gateway + Lambda) in your test and development environments (such as those deployed by Zappa).

Quickstart

Install Django Emulate AWS Env:

pip install django-emulate-aws-env

Add the Django Emulate AWS Env middleware. This should be the highest possible priority in your list and just in your development and test environments:

MIDDLEWARE = [
    'emulate_aws_env.middleware.modify_request',
    ...
]

Or if you’re using a dedicated settings file for tests/development:

from .base import *

...

MIDDLEWARE = ['emulate_aws_env.middleware.modify_request'] + MIDDLEWARE

Features

The API Gateway service has the following restrictions which aren’t present in the default environment used to test Django projects:

The provided middleware modifies the request to these restrictions.

Running Tests

Does the code actually work?

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ tox

Credits

Tools used in rendering this package:

History

0.1.0 (2017-05-05)

  • First release on PyPI.

Metadata

Release files for django-emulate-aws-env 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-emulate-aws-env 0.2.0
File Size Uploaded Provenance Actions
django-emulate-aws-env-0.2.0.tar.gz 5.9 kB Without provenance Details for django-emulate-aws-env-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-emulate-aws-env 0.2.0
File Interpreter ABI Platform Actions
django_emulate_aws_env-0.2.0-py2.py3-none-any.whl Python 3, Python 2 none any Details for django_emulate_aws_env-0.2.0-py2.py3-none-any.whl

Total release size: 11.3 kB

Release files / django-emulate-aws-env-0.2.0.tar.gz

Download URL django-emulate-aws-env-0.2.0.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ac0671de117901165b874454a0fb4e8f79aa7022d1b2312cf0e8674433c4cdb4
BLAKE2b-256 checksum
How to use checksums
2c977d8dce231f6fd898ff0ede28bd7829f2b11442c39f5e7250703154fd54e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / django_emulate_aws_env-0.2.0-py2.py3-none-any.whl

Download URL django_emulate_aws_env-0.2.0-py2.py3-none-any.whl
Size 5.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
cc20f38505ff9a96749c671ef077ed1f02634df501e8f10628ed84ab83b885f2
BLAKE2b-256 checksum
How to use checksums
177a2752ab60204b563849d1d3e7c86540f9de004d58e248de1d9d3bc1455ece
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-emulate-aws-env 0.2.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.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page