No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-18 16:06:42 +01:00
examples examples/async.py 2026-11-18 16:06:42 +01:00
tests Hello tox. 2026-11-18 14:55:32 +01:00
.gitignore Better .gitignore 2026-11-18 14:56:13 +01:00
fib.py annotations 2026-11-18 15:13:40 +01:00
pyproject.toml Hello tox. 2026-11-18 14:55:32 +01:00
README.md Packaging / building / uploading. 2026-11-18 12:08:07 +01:00
requirements.txt requirements.in no longer usefull as we have a pyproject.toml 2026-11-18 11:58:44 +01:00

How to install

git clone https://git.afpy.org/mdk/2026-11
cd 2026-11
pip install .

How to build

pip install build
python -m build

How to upload

Testez avec https://test.pypi.org/

pip install twine
twine upload dist/*

Nommage

Les fonctions : en_snake_case, get_HTTP_status Les classes : EnCamelCase Les attributs privés : _préfixés_par_un_underscore, par convention. Les attributés manglés : __préfixés_par_deux_underscores, ~innutiles. Les dunder : __quadruple_underscore__ : appartient à Python (on a pas le droit d’en inventer), c’est des protocoles.

  • __init__ « dunder init »
  • __repr__ « dunder repr »

Types modifiables (prévus pour être modifiés)

list, dict, set, function, …

Types immuables (pour les modifier il faut bidouiller dans la RAM : mauvaise idée)

int, str, bool, float, frozenset, type, …