Skip to content

MauroDruwel/Swimrankings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

17 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

SwimRankings Python Library

A modern Python library for interacting with swimrankings.net, providing easy access to athlete data, search functionality, and more.

Features

  • πŸŠβ€β™€οΈ Athlete Search: Search for athletes by name, gender, and other criteria
  • πŸ“ˆ Detailed Data: Fetch personal bests, profile information, and more
  • πŸ“Š Type Hints: Full type annotation support for better IDE experience
  • πŸ” Flexible Filtering: Filter athletes by gender, country, club, etc.
  • πŸš€ Async Support: Coming soon!

Installation

pip install swimrankings

Quick Start

from swimrankings import Athletes

# Search for athletes by name
athletes = Athletes(name="Druwel")
for athlete in athletes:
    print(f"{athlete.full_name} ({athlete.birth_year}) - {athlete.country}")

# Get detailed information including personal bests
athlete = athletes[0]
details = athlete.get_details()

print(f"Personal bests: {len(details.personal_bests)}")
for pb in details.personal_bests:
    print(f"  {pb.event} ({pb.course}): {pb.time}")

Documentation

πŸ“– Complete Documentation - Full API reference, examples, and guides

For detailed usage examples, API reference, error handling, and contributing guidelines, please visit the complete documentation.

License

MIT License - see LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

About

πŸŠβ€β™‚οΈ SwimRankings is a lightweight yet powerful Python library designed to streamline access to competitive swimming data from swimrankings.net. Whether you're a coach, athlete, analyst, or developer, this tool empowers you to retrieve race results, swimmer profiles, meet details, and performance times with just a few lines of code.

Topics

Resources

License

Stars

4 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages