Skip to content

Stravalib Version 1.3

Compare
Choose a tag to compare
@lwasser lwasser released this 22 Apr 14:08

Final 1.3 release

This release contains all of the features and deprecations of 1.3rc0 plus a few other bug fixes

v 1.3 bug fixes

Added

Fixed

  • Fix: Move to numpy style docstrings & add black (@lwasser, #365)

Deprecated

  • The activity_type parameter in the client method update_activity() is deprecated and should be replaced by sport_type.

Contributors to this path on the release candidate

@jsamoocha, @lwasser, @think-nice-things

v1.3.0rc0

Added

  • Adds Strava API changes, and datamodel-code-generator bug fix (@jsamoocha, #333)
  • Add: Replace full legacy model with extensions from the generated pydantic model (@jsamoocha, #324)
  • Add: Add support for lazy loading related entities (@jsamoocha, #322)
  • Add: Add support for nested model attributes(@jsamoocha, #316)
  • Add: replaces implementations for the classes Club, Gear, ActivityTotals, AthleteStats, and Athlete by the generated Pydantic model & backwards compatibility (@jsamoocha, #315)
  • Add: Workflow for updating strava model when the API changes (@jsamoocha, #302)
  • Add: pydantic_autodoc to sphinx build and reconfigure api structure - p1 (@lwasser, #326)

Fixed

Deprecated

  • The BaseEntity methods deserialize(), from_dict(), and to_dict() are deprecated and will raise a DeprecationWarning when they're used. They should be replaced by the pydantic methods parse_obj() and dict() or json().

Removed

  • The complete attributes module
  • All the abstract entity types (e.g. IdentifiableEntity, LoadableEntity) from the model module
  • Constants used for activity types such as Activity.RIDE
  • HeartrateActivityZone, PowerActivityZone, PaceActivityZone as subtypes of BaseActivityZone (the latter is retained)
  • Everything related to segment leaderboards as this is not supported by Strava anymore

Contributors to this release

@jsamoocha, @lwasser, @oliverkurth, @think-nice-things