djangae.contrib.metadata
This is a utility for fetching data about your App Engine application from the Google Metadata server
Usage
from djangae.contrib.metadata import MetadataEndpoints, get_metadata_item
project_number: str = get_metadata_item(MetadataEndpoints.PROJECT_NUMBER)
- Returned values are cached for fast repeated access.
- All values are returned as strings.
Available values
MetadataEndpoints
is a Django TextChoices
enum, which contains descriptive labels of the possible values.