https://github.com/awslabs/aurora-dsql-django
Adapter for using Aurora DSQL as database for Django apps
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (16.1%) to scientific vocabulary
Keywords
Repository
Adapter for using Aurora DSQL as database for Django apps
Basic Info
- Host: GitHub
- Owner: awslabs
- License: apache-2.0
- Language: Python
- Default Branch: version-0
- Homepage: https://pypi.org/project/aurora-dsql-django/
- Size: 75.2 KB
Statistics
- Stars: 7
- Watchers: 8
- Forks: 2
- Open Issues: 2
- Releases: 1
Topics
Metadata Files
README.md
Aurora DSQL adapter for Django
This is the adapter for enabling development of Django applications using Aurora DSQL.
Requirements
Boto3
Aurora DSQL Django adapter needs boto3 to work. Follow the Boto3 installation guide to install Boto3
Required Python versions
auroradsqldjango requires Python 3.8 or later.
Please see the link below for more detail to install Python:
AWS credentials
Aurora DSQL Django adapter generates the IAM db auth token for every connection. DB auth token is generated using AWS credentials. You must have configured valid AWS credentials to be able to use the adapter. If not the connection to the cluster will not succeed.
Getting Started
First, install the adapter using pip:
pip install aurora_dsql_django
Define Aurora DSQL as the Engine for the Django App
Change the DATABASES variable in settings.py of your Django app. An example
is show below
python
DATABASES = {
'default': {
'HOST': '<your_cluster_id>.dsql.<region>.on.aws',
'USER': 'admin', # or another user you have defined
'NAME': 'postgres',
'ENGINE': 'aurora_dsql_django',
'OPTIONS': {
'sslmode': 'require',
'region': 'us-east-2',
# (optional) Defaults to 'default' profile if nothing is set
'aws_profile': 'user aws custom profile name'
# (optional) Default is 900 seconds i.e., 15 mins
'expires_in': <token expiry time time in seconds>
# (optional) If sslmode is 'verify-full' then use sslrootcert
# variable to set the path to server root certificate
# If no path is provided, the adapter looks into system certs
# NOTE: Do not use it with 'sslmode': 'require'
'sslrootcert': '<root certificate path>'
}
}
}
For more info follow the Aurora DSQL with Django example
Development
Setup
Assuming that you have Python installed, set up your environment and installed the dependencies
like this instead of the pip install aurora-dsql-django defined above:
$ git clone https://github.com/awslabs/aurora-dsql-django
$ cd aurora-dsql-django
$ python -m venv venv
...
$ source venv/bin/activate
$ pip install -r requirements.txt
$ pip install -e .
Running Tests
You can run the unit tests with this command:
$ pytest --cov=aurora_dsql_django aurora_dsql_django/tests/unit/ --cov-report=xml
You can run the integration tests with this command:
$ export CLUSTER_ENDPOINT=<your cluster endpoint>
$ export DJANGO_SETTINGS_MODULE=aurora_dsql_django.tests.test_settings
$ pytest -v aurora_dsql_django/tests/integration/
Documentation
Sphinx is used for documentation. You can generate HTML locally with the following:
$ pip install -r requirements-docs.txt
$ pip install -e .
$ cd docs
$ make html
Getting Help
Please use these community resources for getting help. * Open a support ticket with AWS Support. * If you think you may have found a bug, please open an issue.
Opening Issues
If you encounter a bug with the Aurora DSQL Django adapter, we would like to hear about it. Please search the existing issues and see if others are also experiencing the issue before opening a new issue. When opening a new issue please follow the template.
The GitHub issues are intended for bug reports and feature requests. For help and questions with using Aurora DSQL Django adapter, please make use of the resources listed in the Getting Help section. Keeping the list of open issues lean will help us respond in a timely manner.
License
This library is licensed under the Apache 2.0 License.
Owner
- Name: Amazon Web Services - Labs
- Login: awslabs
- Kind: organization
- Location: Seattle, WA
- Website: http://amazon.com/aws/
- Repositories: 914
- Profile: https://github.com/awslabs
AWS Labs
GitHub Events
Total
- Issues event: 1
- Watch event: 8
- Issue comment event: 5
- Public event: 1
- Push event: 4
- Pull request review event: 4
- Pull request review comment event: 2
- Pull request event: 3
- Fork event: 2
- Create event: 5
Last Year
- Issues event: 1
- Watch event: 8
- Issue comment event: 5
- Public event: 1
- Push event: 4
- Pull request review event: 4
- Pull request review comment event: 2
- Pull request event: 3
- Fork event: 2
- Create event: 5
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 0
- Total pull requests: 2
- Average time to close issues: N/A
- Average time to close pull requests: about 2 months
- Total issue authors: 0
- Total pull request authors: 2
- Average comments per issue: 0
- Average comments per pull request: 1.0
- Merged pull requests: 1
- Bot issues: 0
- Bot pull requests: 1
Past Year
- Issues: 0
- Pull requests: 2
- Average time to close issues: N/A
- Average time to close pull requests: about 2 months
- Issue authors: 0
- Pull request authors: 2
- Average comments per issue: 0
- Average comments per pull request: 1.0
- Merged pull requests: 1
- Bot issues: 0
- Bot pull requests: 1
Top Authors
Issue Authors
Pull Request Authors
- dependabot[bot] (1)
- imforster (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- pypi 242 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 2
- Total maintainers: 2
pypi.org: aurora-dsql-django
Django adapter for Aurora DSQL
- Documentation: https://aurora-dsql-django.readthedocs.io/
- License: Apache License 2.0
-
Latest release: 0.1.0
published about 1 year ago