A wrapper for the tides API
Project description
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
Release history Release notifications | RSS feed
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)
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 279d98531eb8ea4a462323dcb710a4166aa227f0a4fe4c65723ec06ef8e76eb9 |
|
MD5 | a5e23762f41974921ca15f800612b574 |
|
BLAKE2b-256 | f5c28d35016b95f7c46d2e321f053bcd8b200c3e42660108900e2a58e844cd7f |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | efbf217985a0de210875b71059888126582ce127e72f77137459f0e97bdbc166 |
|
MD5 | 62718d9f7054b9b2f5b4a515b528b0ec |
|
BLAKE2b-256 | 6389d910d7ef0a78661c68f5a4f32f886f4f649a85abc4ad0d0336d1afdbc4dc |