Stravalib

Latest version: v1.7

Safety actively analyzes 623092 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 7

1.7

Added
- Add: Strava API change - Route objects have a new waypoints attribute (bot, 480)

Fixed
- Fix: Docs - add contributing section to top bar for easier discovery and a few small syntax fixes in the docs (lwasser)
- Fix: Manifest.in file - remove example dir (lwasser, 307)
- Fix: Codecov report wasn't generating correctly (lwasser, 469)
- Fix: Add sport type to create_activity and create type validator method. NOTE: this fix contains a breaking change in `Client.create_activity()` activity_type is now an optional keyword argument rather than a required positional argument (lwasser, 279)
- Fix: Fixes the Strava API update bot (jsamoocha, 477)
- Fix: Cleanup dependencies to only use pyproject toml (lwasser, 466)
- Fix: use parse_obj rather than deserialize internally where possible (lwasser, 358)

Removed
- Remove: functional test suite from stravalib (lwasser, 457)
- Remove: `client.delete_activity` method is no longer supported by Strava (lwasser, 238)
- Remove/Add: Drop Python 3.9, add Python 3.12 (lwasser, 487)

Breaking Changes
If you have been using the `client.delete_activity` method then your code will
no longer work as this method was removed due to being deprecated by Strava. We also are dropping support for Python 3.9 (end of life / no more security fixes in October 2024 and now only getting security fixes) in this release and adding support for 3.12.

Contributors to this release

jsamoocha, lwasser, stravalib bot :)

1.6

Added
- Add: Support for Strava's new read rate limits (jsamoocha, 446)
- Add: Improved handling of unexpected activity types (jsamoocha, 454)

Fixed
- Fix: Forgot to update model CI build to follow new src layout (lwasser, 438)
- Fix: Type annotation on field that are of type timedelta are now correct (enadeau, 440)
- Fix: Correct type for ActivityPhoto sizes attribute (jsamoocha, 444)
- Fix: codespell config - ignore resources dir in tests (lwasser, 445)
- Fix: Ignore documentation autogenerated api stubs (lwasser, 447)

Breaking Changes

A potentially breaking change is that the RateLimiter's `__call__()` method now has
an additional `method` argument representing the HTTP method used for that request.
Existing custom rate limiters from users must be updated to this change.

Contributors to this release

jsamoocha endeau, lwasser,

1.5

Added

- Stravalib now includes types annotation, the package is PEP 561 compatible (enadeau, 423)
- Add: Add nox to run tests, build docs, build package wheel/sdist(lwasser, 395, 397)
- Type annotation for all files in the library (enadeau, 384, 415)
- Add blacken-docs and codespell to pre-commit & apply on docs (lwasser, 391)

Fixed

- Allow parsing of activity with segment of type other that Run and Ride (JohnScolaro, 434)

Changed

- Infra: Replace flake8 and isort by ruff (enadeau, 430)

Removed

- Remove python 3.8 support following NEP-29 (enadeau, 416)

Contributors to this release

endeau, lwasser, JohnScolaro

1.4

Fixed

- Apply flake8 and numpy docstrings to limiter & protocol (lwasser, 326)
- Update client's stream method to warn when using unofficial parameters (enadeau, 385)
- Fix docstring in SleepingRateLimitRule (enadeau)
- Fix: rename `SubscriptionCallback.validate` -> `SubscriptionCallback.validate_token` to avoid conflict with `pydantic.BaseModel` (lwasser, 394)
- Fix: docstrings in model.py, documentation errors, findfonts warning suppression by removing opengraph (temporarily), typing updates (lwasser, 387)
- Fix: read the docs is breaking due to pydantic json warnings, also update python version on build and sync pr previews (lwasser, 412)
- Fix: update master to main in all builds (lwasser)

Added

- Type annotation to client file (enadeau, 384)
- Add: issue templates for easier debugging / guide users (lwasser, 408)
- Fix: read the docs is breaking due to pydantic json warnings, also update python version on build and sync pr previews (lwasser, 412)
- Fix: update master to main in all builds (lwasser)

Contributors to this release

endeau, lwasser, jsamoocha

1.3.3

Fixed

- Fix: pins pydantic to v1 in pyproject.toml dependencies (jsamoocha, 382)

1.3.2

Added

- Add: type checking to limiter, protocol and exc file (enadeau , 374)

Fixed

- Fix: two minor mistakes in documentation (enadeau , 375)
- Fix: pins pydantic to v1.10.6 (lwasser, 380)

Contributors to this release

enadeau, lwasser

- Fix two minor mistakes in documentation (enadeau , 375)
- Add type checking to limiter, protocol and exc file (enadeau , 374)
- Apply flake8 and numpy docstrings to all modules limiter & protocol (lwasser, 326)

Page 1 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.