Constarium
← Search

Data · dataset · 2024

stravalib/stravalib: ✨ Stravalib Release -- v2.0 ✨

Listed in e-cienciaDatos

v2.0.0 Attention users: breaking changes + many enhancements!

Description

Major Changes in This Release Breaking: Added support for Pydantic 2.x; 1.x behavior is no longer supported. Refer to Pydantic s V2 migration guide if you use extensions of Stravalib model classes or Pydantic s serialization mechanisms (parse_obj(), dict(), json()).

Removed deprecated (de-)serialization methods deserialize(), from_dict(), and to_dict(). Use Pydantic s serialization mechanisms. Renamed unithelper module to unit_helper.

Read the rest (4 more)

Helper functions like feet() and miles() now return a Pint Quantity object. Introduced new types for distances, velocities, durations, and time zones. activity.distance now returns a Distance type. Retrieve distance in meters with activity.distance or as a Quantity using activity.distance.quantity.

Please see the migration guide in our docs for more details on the changes. Added Add: naive_datetime() test to the pydantic-v2 branch. (@bmeares, #522) Add: custom types that pass static type checks (@jsamoocha, #534) Add: Strava type hierarchy for Activity type (@jsamoocha, #505) Add: Athlete stats (@jsamoocha, #507) Add: Summary segments (@jsamoocha, #509) Add:

Summary

SegmentEffort superclass (@jsamoocha, #518) Add: test for latlon values (@lwasser, #516) Add: correct type returns following clubs/{id} & clubs/{id}/activities spec (@lwasser, #519) Fixed Fix: Update enhanced types doc (@jsamoocha, #546) Fix: Replace invariant with covariant container types (@lwasser, @jsamoocha, #510) Fix: generated model using Pydantic v2 (@jsamoocha, #495) Fix: Gear and Athlete type hierarchies (+ naive_datetime typing fixes) (@jsamoocha, #526) Fix: docstrings in model.py (@lwasser, #484) Fix: return types -- athlete clubs endpoint (@lwasser, #517) Fix: Updates for activities/id endpoint 🙈 (@lwasser, #520) Fix: Activities/{id}/zones & Laps (@lwasser, #524) Fix: Rename unithelper.py --> unit_helper.py (@lwasser, #535) Fix: Update & check photos endpoint (@lwasser) Fix: Photos endpoint cleanup (@lwasser, #540) Fix: Activity Comment check / cleanup (@lwasser, #541) Fix: Migrate to covariant types to fix typing (@lwasser, #530) Fix: Typing upgrade to Python 3.10+ (@lwasser, #547) Fix(docs): Cleanup API docs & add migration guide (@jsamoocha, @lwasser, #537) Fix(docs): Clean up reference docs (@lwasser, #537, #545) Removed Remove: backward compatibility mixin (@jsamoocha, #503) Remove: deprecated client methods (@lwasser, #514) Contributors to this release @jsamoocha, @lwasser, @bmeares @bmeares made their first contribution in github.com/stravalib/stravalib/pull/522 :sparkles: Full Changelog: github.com/stravalib/stravalib/compare/v1.7...v2.0

Links

Where it is published

Catalogue records · 1
Provenance · 1 source records, 5 field assertions
SourceKeyLast seenRaw
e-cienciaDatosdoi:10.5281/ZENODO.73482609 d agoJSON v1
FieldAssertionExtractorEvidence
created_datesource · edatos consorciomadrono esconnector:edatos_consorciomadrono_es@1.0.0
descriptionsource · edatos consorciomadrono esconnector:edatos_consorciomadrono_es@1.0.0/description
publication_datesource · edatos consorciomadrono esconnector:edatos_consorciomadrono_es@1.0.0
titlesource · edatos consorciomadrono esconnector:edatos_consorciomadrono_es@1.0.0/name
updated_datesource · edatos consorciomadrono esconnector:edatos_consorciomadrono_es@1.0.0