django-albertson
Homepage: https://github.com/FocusLab/django-albertson
Integration library for Django and Albertson.
Use
DjangoSettingsMixin
dj_albertson.mixins.DjangoSettingsMixin
This mixin provides automatic loading of default settings for a CounterPool from the django settings module.
Below is an example use:
from albertson import CounterPool
from dj_albertson.mixins import DjangoSettingsMixin
class MyCounter(DjangoSettingsMixin, CounterPool):
'''
That's it, your done!
'''
Once you’ve added this mixin to your counter pool classes, the following settings will be used:
- ALBERTSON_AWS_ACCESS_KEY
The AWS access key id that will be used to access DynamoDB. This is the setting that will be used if both AWS_ACCESS_KEY_ID and ALBERTSON_AWS_ACCESS_KEY are provided.
- ALBERTSON_AWS_SECRET_KEY
The AWS secet key that will be used to access DynamoDB. This is the setting that will be used if both AWS_SECRET_ACCESS_KEY and ALBERTSON_AWS_SECRET_KEY are provided.
- AWS_ACCESS_KEY_ID
A more generic form of ALBERTSON_AWS_ACCESS_KEY
- AWS_SECRET_ACCESS_KEY
A more generic form of ALBERTSON_AWS_SECRET_KEY
- ALBERTSON_DEFAULT_READ_UNITS
The default read throughput that will be set on newly created tables.
default: 3
- ALBERTSON_DEFAULT_WRITE_UNITS
The default write throughput that will be set on newly created tables.
default: 5
- ALBERTSON_AUTO_CREATE_TABLE
A flag to control how Albertson should behave when it tries to use a table that doesn’t exist. If set to True, Albertson will create a new table. If set to False, Albertson will allow the underlying boto exception to bubble up through the stack.
default: True
Metadata
Release files for django-albertson 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-albertson-0.1.1.tar.gz | 3.6 kB | Without provenance | Details for django-albertson-0.1.1.tar.gz |
Release files / django-albertson-0.1.1.tar.gz
| Download URL | django-albertson-0.1.1.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ec7820c2f1e56af49578473f7c8819ec4f73fa5fad56b0cf45088991f302c024
|
|
BLAKE2b-256 checksum How to use checksums |
f2e827bcb75a03101dbe59659071263914a6c67aa1d0d8b66dce813e5522db05
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-albertson 0.1.1
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.