A library for hattrick.org data
Project description
hattrick_libs
This is a python3 client library for the API of the infamous online-strategy-game hattrick (https://www.hattrick.org).
As this was just intended to be a learning-project and to be the ground-work for another hattrick-project of mine initially, https://hattrick-fun-with-flags.app, hattick_libs doesn't aim to be complete nor useful to any other purpose than it was originally built for.
If you are looking for a complete python library for hattrick.org consider also pyCHPP by Pierre Gobin. His project was there before mine and looks quite sophisticated to me. It's implemented in an object-oriented style and thus well readable and clean. Compared to pyCHPP, hattrick_libs is a very basic implementation of the hattrick-API. But consider also this: If you are a learner like myself, hattrick_libs will be a perfect opportunity to get your hands dirty on some cool python stuff without having to learn oop first. Or you decide to implement your own flavor of a hattick library in python and let yourself inspire by both this projects. There is room for all of us. Whatever your decision is: make sure to connect. Refer to the "Contact" section of this document if you can help improve hattrick_libs, have suggestions, if you want to adopt it to your needs or if you just feel like having a chat with another nerdy hattrick manager.
Have fun!:)
Project state
For now the projects state is work in progress. It originally was just my 2023 christmas project after all!;) I'm actively maintaining it though. (information as of 2024-10-15)
Project link
https://github.com/joschobart/hattrick_libs
Installation
pip install hattrick-libs
Usage
In your code directly reference the module you need:
from ht_libs import do_hattrick_request
You find a sample-implementation of hattrick_libs in the __main__.py file.
License
This package is licensed under the Apache License 2.0.
Contact
joschobart on hattrick.org for a chat about bugs, hattrick, (monty) python or discworld.
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 hattrick_libs-0.19.6.tar.gz.
File metadata
- Download URL: hattrick_libs-0.19.6.tar.gz
- Upload date:
- Size: 16.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db09ad26b818078980c5896ee8f4f4def1b7d415c9d6fbb92e6d16f384f45040
|
|
| MD5 |
a6859e23ecd69a6911d3f0832ef5c517
|
|
| BLAKE2b-256 |
edf26f309ebe9684d91ddd3dd717ce853f9b8373d094afbb6b7b25e89956f94a
|
File details
Details for the file hattrick_libs-0.19.6-py3-none-any.whl.
File metadata
- Download URL: hattrick_libs-0.19.6-py3-none-any.whl
- Upload date:
- Size: 18.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f38564b53a5b1103cda6866bec39e7af92e3a3ca4a1388ec4813612b25fa1d27
|
|
| MD5 |
47193566230a08776184975462b0db4b
|
|
| BLAKE2b-256 |
919fa134f515c0ee3159d16ec0f2e4d98de1d4d8d35fe7aac34e87b49f303f4e
|