Skip to main content

Django Lambda Gateway Interface

Project description

django-lgi - Django Lambda Gateway Interface

django-lgi is a python module that interprets HTTP API requests sent to your Django project in Lambda.

Features

Installation

pip install django-lgi

Usage

Create lgi.py file in Django project root. Remember to replace mysite.settings with dotted path to your settings module.

import os

from lgi import get_lgi_application

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mysite.settings")

application = get_lgi_application()

Set lambda handler to mysite.lgi.application.

Examples

  • Djambda - example project setting up Django application in AWS Lambda managed by Terraform.

Related Projects

Testing

To run the test suite, first, create and activate a virtual environment. Then run tests.

$ flit install -s
$ cd tests
$ ./runtests.py

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

django-lgi-0.1.2.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

django_lgi-0.1.2-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file django-lgi-0.1.2.tar.gz.

File metadata

  • Download URL: django-lgi-0.1.2.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.23.0

File hashes

Hashes for django-lgi-0.1.2.tar.gz
Algorithm Hash digest
SHA256 5b265c194a756107fd8fa49e79837ee0d86305f39eebfa3e30928ec15aae346a
MD5 96a3a8b5285fd25093cea412637c9b17
BLAKE2b-256 4bae801e3379a7a417d386a0e645c7eefcd5cc78034738d4a30b9e3b9ffd4086

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_lgi-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.23.0

File hashes

Hashes for django_lgi-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8274a117e0d24832208d8544d3edd1ed3d9346fc9443aaea96e31d2bb529b4bd
MD5 ab52a32be79cd2b44d9d85a3fb259e0c
BLAKE2b-256 17a85fc6b533e29aeb2f674cca755f58a8803c54a7c396dc7511d8ece2161314

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