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.0.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.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django-lgi-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 95ac6b462903236efa2be598dc9bed1121ddaa0c617b2414711219f2125c8c88
MD5 d3c8bc205bf43aa055dddd1eddbefce9
BLAKE2b-256 9b420af9f1cdbda9a67fc3ceab8250dc5f158c6bf59859899f96dce1a9e3da72

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_lgi-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e1823133c4acf944b7154cceb1235d61ee1a52c3bde1966c6dc34bcffb8a7140
MD5 0eba7b1ae475ac826077d1f7e0995b68
BLAKE2b-256 3036fbe838dba1ffc8f2c5c5c3069d4c4d4949c403735b47d27217161b60b90b

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