SensorAtlas
SensorAtlas is a Django App that serves an OGC SensorThings API implementation in Python.
Detailed documentation is in the "docs" directory.
Quick start
The following steps will explain how to add Sensor Atlas to an existing django application. If you do not have a django application, create one and install Sensor Atlas to get started.
NOTE: Sensor Atlas requires that django uses a PostGIS backend for its Database Settings.
-
Install
sensorAtlas(e.g.pip install <path-to-file>/sensorAtlas-0.1.tar.gz) -
Add "sensorAtlas" to your INSTALLED_APPS setting like this (note
rest_frameworkmust be included inINSTALLED_APPS):
INSTALLED_APPS = [
...
'rest_framework,
'sensorAtlas',
]
- Also include the following Django Rest Framework settings in your settings.py file:
REST_FRAMEWORK = {
'DEFAULT_VERSIONING_CLASS': 'rest_framework.versioning.URLPathVersioning',
'URL_FIELD_NAME': 'selfLink',
'ORDERING_PARAM': '$orderby',
'DEFAULT_PAGINATION_CLASS': 'sensorAtlas.pagination.SensorThingsPagination',
'PAGE_SIZE': 100,
'TEST_REQUEST_DEFAULT_FORMAT': 'json'
}
- Include the sensorAtlas URLconf in your project urls.py
urlpatternslike this::
urlpatterns = [
...
path('api/', include('sensorAtlas.urls')),
]
-
Run
python manage.py makemigrations sensorAtlas && python manage.py migrateto create the sensorAtlas models. -
Start the development server with
python manage.py runserverand visit http://127.0.0.1:8000/api/v1.0/
Tests
python setup.py test
Metadata
Release files for sensorAtlas 0.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 | |
|---|---|---|---|
| sensorAtlas-0.1.tar.gz | 76.1 kB | Details |
Release files / sensorAtlas-0.1.tar.gz
| Download URL | sensorAtlas-0.1.tar.gz |
|---|---|
| Size | 76.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a3d44ecb829425c93b101b441664fab35722e1b0c986dc6e6a327cc4bcf85712
|
|
BLAKE2b-256 checksum How to use checksums |
d1e5491d47d15ba265dc54953e8ef9d8ec9230f6f744972a5da705a9474af173
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|