python client to Surfline API
Project description
pysurfline
Get the surf forecast for any spot listed on Surfline.
Quickly get the forecast data as a pandas Dataframe and plot surf forecast with matplotlib to visualize the conditions of your favorite surf spot.
- Surf (surf min, surf max)
- Wind (speed, direction)
- Swell (height, period, direction)
- Tide (height, direction)
- sunlightTimes (sunrise, sunset)
Distribution | |
Tests | |
Code | |
Documentation |
Installation
Install with pip
pip install pysurfline
Example
-
Get the surf forecasts for a given
SpotId
and get data as a pandas Dataframe.import pysurfline spotId = "5842041f4e65fad6a7708cfd" spotforecasts = pysurfline.get_spot_forecasts(spotId) df = spotforecasts.get_dataframe()
-
Visualize the surf report for a given
SpotId
.import pysurfline spotId = "5842041f4e65fad6a7708cfd" spotforecasts = pysurfline.get_spot_forecasts(spotId) pysurfline.plot_surf_report( spotforecasts, barLabels = True, )
Documentation
The documentation can be found here.
Disclaimer
This package is not official and not affiliated with Surfline in any way.
API responses may change at any time and the developement of this package may not be able to keep up with those changes.
If you find any issues, please open an issue or submit a pull request.
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
Built Distribution
File details
Details for the file pysurfline-0.2.0.tar.gz
.
File metadata
- Download URL: pysurfline-0.2.0.tar.gz
- Upload date:
- Size: 11.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f4141ca9b7d4c22fa8e3496adc171a660edffcfe60fbbe91eb8253b4ddd648d |
|
MD5 | 58e6052dbdd32f52a129e6a68d0d8ac4 |
|
BLAKE2b-256 | cccc02c6bc81a797961074c786dcde79c32e566c02388cfd4d851ddde0d2804b |
File details
Details for the file pysurfline-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: pysurfline-0.2.0-py3-none-any.whl
- Upload date:
- Size: 12.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9a04d391bfe0a6710c1e6a533b4fa67e941c5904e2ac404d81832efb050ebcf |
|
MD5 | 441f02db75c104ac11108499fe9de6f6 |
|
BLAKE2b-256 | 4186a10007ca81cda3cf339b66af61fac2766446e6a72c56238d05d2699270a5 |