Skip to main content

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.

Release files for hattrick_libs 0.19.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hattrick_libs 0.19.8
File Size Uploaded
hattrick_libs-0.19.8.tar.gz 63.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hattrick_libs 0.19.8
File Interpreter ABI Platform
hattrick_libs-0.19.8-py3-none-any.whl Python 3 none any Details

Total release size: 81.6 kB

Release files / hattrick_libs-0.19.8.tar.gz

Download URL hattrick_libs-0.19.8.tar.gz
Size 63.4 kB
Tags Source
SHA-256 checksum
How to use checksums
61525a20914255be10f8771f6f235072ad85719d5cd8b85fa2e5f2b1fddaaddd
BLAKE2b-256 checksum
How to use checksums
d281cc8ffc1a3acf6bc4a45956570fa96b2b6e77d029ef56294b40d1a4e8f631
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / hattrick_libs-0.19.8-py3-none-any.whl

Download URL hattrick_libs-0.19.8-py3-none-any.whl
Size 18.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
75d561853f2a15dc52e273006c07809a28ff369c7c9da654f0b88f05961a73c3
BLAKE2b-256 checksum
How to use checksums
310e1a7dc6080e5804b75fa74a660b4579f99d599a27f514470baf5c85d5ca47
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page