Skip to main content

A modern Python library for interacting with swimrankings.net

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

swimrankings-0.1.1.tar.gz (120.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

swimrankings-0.1.1-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

Details for the file swimrankings-0.1.1.tar.gz.

File metadata

  • Download URL: swimrankings-0.1.1.tar.gz
  • Upload date:
  • Size: 120.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for swimrankings-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c9d9ea77c5fe047cd4931660111780b39878a2a84d0d20d9970c0e206c6b05e3
MD5 962a71d8c413f4722a6edf48c899d7f4
BLAKE2b-256 0b667d1f192af7d46445198ed7c76b94e75ef440c6da08fcb457a4e75daf90c1

See more details on using hashes here.

Provenance

The following attestation bundles were made for swimrankings-0.1.1.tar.gz:

Publisher: publish.yml on MauroDruwel/Swimrankings

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file swimrankings-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: swimrankings-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 15.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for swimrankings-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2627a2ca867a5dc4362aad8415d24af79997e65de89aeb45c3ba9f1a97faebbb
MD5 11ce46fb911ed146a3136166882d5dda
BLAKE2b-256 46c98081c9b36e7fd96ef7b7213a8c0fcdea76709f944afbf450f25651f87b94

See more details on using hashes here.

Provenance

The following attestation bundles were made for swimrankings-0.1.1-py3-none-any.whl:

Publisher: publish.yml on MauroDruwel/Swimrankings

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page