A tool to acquire, store, and serve tide data. Designed to have pluggable backends for multiple tide services. So far NOAA is the only source.
Installation
Use pip to install from PyPI:
pip install django-tides
Add django_tides to your settings.py file:
INSTALLED_APPS = (
...
'django_tides',
...
)
Additional Requirements
beautifulsoup4 to parse the XML served by NOAA
django-tastypie to generate the API
GeoDjango is used to store point data for tide stations. I use PostGIS as my database backend.
Acquiring Data
django-tides comes with a management function:
./manage.py update_tides
This will pull all tide data for all available backends. Use this with care as it will use a lot of bandwidth.
Endpoints
django-tides exposes two endpoints for now:
/tides/api/water-level/
Provides the water level at a specific station over time. Example:
/tides/api/water-level/?format=json&time__gte=2013-07-04%2000:00&time__lte=2013-07-15%2000:00&limit=10&station__source_id=8447355
/tides/api/station/
Provides a list of stations within proximity of a given point. Example:
/tides/api/station/?format=json&limit=10&offset=0&lat=41.77873679916478&lon=-70.47317504882812
Contributing
Think this needs something else? To contribute to django-tides create a fork on Bitbucket. Clone your fork, make some changes, and submit a pull request.
Bugs are great contributions too! Feel free to add an issue on Bitbucket.
Metadata
Release files for django-tides 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 | |
|---|---|---|---|
| django-tides-0.1.tar.gz | 7.0 kB | Details |
Release files / django-tides-0.1.tar.gz
| Download URL | django-tides-0.1.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
75b227e335824c51f635d55eea308429238b31ca39904c3328e139523c613ea0
|
|
BLAKE2b-256 checksum How to use checksums |
b9353f8e8d0116859463fdcc48f1aa507940aeb4d79ee65b17363f8d75057d86
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |