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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c9d9ea77c5fe047cd4931660111780b39878a2a84d0d20d9970c0e206c6b05e3
|
|
| MD5 |
962a71d8c413f4722a6edf48c899d7f4
|
|
| BLAKE2b-256 |
0b667d1f192af7d46445198ed7c76b94e75ef440c6da08fcb457a4e75daf90c1
|
Provenance
The following attestation bundles were made for swimrankings-0.1.1.tar.gz:
Publisher:
publish.yml on MauroDruwel/Swimrankings
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
swimrankings-0.1.1.tar.gz -
Subject digest:
c9d9ea77c5fe047cd4931660111780b39878a2a84d0d20d9970c0e206c6b05e3 - Sigstore transparency entry: 272736316
- Sigstore integration time:
-
Permalink:
MauroDruwel/Swimrankings@2c9dea71058ff988676e776433a911005361587f -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/MauroDruwel
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2c9dea71058ff988676e776433a911005361587f -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2627a2ca867a5dc4362aad8415d24af79997e65de89aeb45c3ba9f1a97faebbb
|
|
| MD5 |
11ce46fb911ed146a3136166882d5dda
|
|
| BLAKE2b-256 |
46c98081c9b36e7fd96ef7b7213a8c0fcdea76709f944afbf450f25651f87b94
|
Provenance
The following attestation bundles were made for swimrankings-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on MauroDruwel/Swimrankings
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
swimrankings-0.1.1-py3-none-any.whl -
Subject digest:
2627a2ca867a5dc4362aad8415d24af79997e65de89aeb45c3ba9f1a97faebbb - Sigstore transparency entry: 272736325
- Sigstore integration time:
-
Permalink:
MauroDruwel/Swimrankings@2c9dea71058ff988676e776433a911005361587f -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/MauroDruwel
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2c9dea71058ff988676e776433a911005361587f -
Trigger Event:
release
-
Statement type: