Skip to main content

A wrapper for the tides API

Project description

CircleCI Sonarcloud Status Sonarcloud Status Sonarcloud Status Sonarcloud Status Sonarcloud Status Sonarcloud Status Sonarcloud Status

Tides

This module acts as a wrapper around the Tidal Data providers such as Admiralty (UK Tide provider).

Usage

Using tides is pretty straightforward. You will need to have your TideProvider's (currently on only Admiralty is implemented) access token set as an environment variable named TIDE_KEY.

tides = Tides('admiralty')
tides.provider.get_tides(station="Leith")

The TideProvdier interface defines the following methods:

def get_all_stations():

def get_station_by_id():

def get_station_by_name():

def get_tides():

def next_tide():

def time_to_next_tide():

Install

$pip install tides

Contributing

See the Contributing Guide

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tides-0.1.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

tides-0.1.0-py2.py3-none-any.whl (4.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file tides-0.1.0.tar.gz.

File metadata

  • Download URL: tides-0.1.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.9

File hashes

Hashes for tides-0.1.0.tar.gz
Algorithm Hash digest
SHA256 279d98531eb8ea4a462323dcb710a4166aa227f0a4fe4c65723ec06ef8e76eb9
MD5 a5e23762f41974921ca15f800612b574
BLAKE2b-256 f5c28d35016b95f7c46d2e321f053bcd8b200c3e42660108900e2a58e844cd7f

See more details on using hashes here.

File details

Details for the file tides-0.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: tides-0.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.9

File hashes

Hashes for tides-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 efbf217985a0de210875b71059888126582ce127e72f77137459f0e97bdbc166
MD5 62718d9f7054b9b2f5b4a515b528b0ec
BLAKE2b-256 6389d910d7ef0a78661c68f5a4f32f886f4f649a85abc4ad0d0336d1afdbc4dc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page