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.1.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_lgi-0.1.1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for django-lgi-0.1.1.tar.gz
Algorithm Hash digest
SHA256 953d66b658e06a22d953db884470db56b8a25007bed4f1a4509ca5114ca8909e
MD5 c62a28eba900db0e82bb6626bbf7c729
BLAKE2b-256 98a3db8423ddc007bae62604916366f397701a2b25a7f34c603f8d7311cf05fa

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for django_lgi-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b75df9bf2ca99ab8c83fc98541dc6789dea6b54d8975530afe06f5bc7d3ec97f
MD5 8915e9499a4ba840455e61c5b9d05ecf
BLAKE2b-256 2b8f80c9383d3bbcce3ea3bc939a92872a16cb0646b5c195080fac6fb208c39d

See more details on using hashes here.

Supported by

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