Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente |
technique:python:accueil [2020/02/28 16:51] – francoisa | technique:python:accueil [2025/01/13 17:06] (Version actuelle) – francoisa |
---|
* [[https://inforef.be/swi/python.htm|Débuter avec Python avec Gerard Schimmen]] | * [[https://inforef.be/swi/python.htm|Débuter avec Python avec Gerard Schimmen]] |
* [[https://python.doctor/|Doctor Python]] | * [[https://python.doctor/|Doctor Python]] |
| * [[https://www.pierre-giraud.com/python-apprendre-programmer-cours/|Apprendre le Python]] - Cours de Pierre Giraud |
| |
===== Python en mode développement ===== | ===== Python en mode développement ===== |
| |
* [[:technique:python:pip_virtualenv|Python pip et virtualenv]] | * [[.:pip_virtualenv|Python pip et virtualenv]] |
* [[:technique:python:flask|Python et Flask]] | * [[.:flask|Python et Flask]] |
* [[:technique:python:heroku_dev|Python et Heroku]] | * [[.:quart|Python et quart]] |
| * [[.:python_sql_api|Python Flask, SQL et API avec Flask_restful]] |
| * [[.:heroku_dev|Python et Heroku]] |
| * [[.:mail_python|Envoi de mail avec Python]] |
| * [[.:python_debug|Python et mode debug : pdb]] |
| * [[.:bash_multithreading|Python, bash et multithreading]] |
| * [[.:python_sqlite|python et sqlite]] |
| |
===== Editeurs de code ===== | ===== Editeurs de code ===== |
* Packages utiles : [[https://www.alsacreations.com/outils/lire/1744-editeur-code-source-atom-io.html|https://www.alsacreations.com/outils/lire/1744-editeur-code-source-atom-io.html]] | * Packages utiles : [[https://www.alsacreations.com/outils/lire/1744-editeur-code-source-atom-io.html|https://www.alsacreations.com/outils/lire/1744-editeur-code-source-atom-io.html]] |
* Packages recommandés pour python : french-menu, autocomplete-python, minimap, script (Ctrl+Shift+B) | * Packages recommandés pour python : french-menu, autocomplete-python, minimap, script (Ctrl+Shift+B) |
| * [[https://vscodium.com/|VSCodium]] : Paquet libre de Virtual Studio Code (fourni par Microsoft) + ses extensions comme "Python" + "Ruff" pour de l'aide au formattage automatique. |
| |
===== Modules ===== | ===== Modules ===== |
* [[https://wsgi.readthedocs.io/en/latest/index.html|https://wsgi.readthedocs.io/en/latest/index.html]] | * [[https://wsgi.readthedocs.io/en/latest/index.html|https://wsgi.readthedocs.io/en/latest/index.html]] |
| |
API | ==== API ==== |
| |
* [[:technique:python:api_python|Interroger une API en Python]] (ex Mailgun) | * [[.:api_python|Interroger une API en Python]] (ex Mailgun) |
| |
| ==== Charset et Encodage (Unicode, UTF-8, ASCII) ==== |
| |
| * [[https://sebsauvage.net/python/charsets_et_encoding.html|https://sebsauvage.net/python/charsets_et_encoding.html]] |
| * [[http://sdz.tdct.org/sdz/comprendre-les-encodages.html|http://sdz.tdct.org/sdz/comprendre-les-encodages.html]] |
| * [[http://sametmax.com/lencoding-en-python-une-bonne-fois-pour-toute/|http://sametmax.com/lencoding-en-python-une-bonne-fois-pour-toute/]] |
| * [[https://docs.python.org/fr/3.8/howto/unicode.html|https://docs.python.org/fr/3.8/howto/unicode.html]] |
| * [[https://www.crummy.com/software/BeautifulSoup/|https://www.crummy.com/software/BeautifulSoup/]] (pour créer du [[https://stackoverflow.com/questions/701704/convert-html-entities-to-unicode-and-vice-versa|HTML propre]]) |
| * [[https://www.peterbe.com/plog/unicode-to-ascii|https://www.peterbe.com/plog/unicode-to-ascii]] (pour simplifier de l'Unicode en ASCII) |
| |
| **Règles de base** |
| |
| - Le texte brut n’existe pas. |
| - Utilisez UTF8. Maintenant. Partout. |
| - Dans votre code, spécifiez l’encoding du fichier et déclarez vos chaînes comme ‘unicode’. |
| - À l’entrée, connaissez l’encoding de vos données, et décodez avec decode(). |
| - A la sortie, encodez dans l’encoding attendu par le système qui va recevoir les données, ou si vous ne pouvez pas savoir, en UTF8, avec encode(). |
| |
| ==== Python et Dates ==== |
| |
| * [[.:datetime|Gestion des dates avec datetime]] |
| |
===== Python et LibreOffice ===== | ===== Python et LibreOffice ===== |
| |
* [[https://help.libreoffice.org/6.3/fr/text/sbasic/python/python_dialogs.html|https://help.libreoffice.org/6.3/fr/text/sbasic/python/python_dialogs.html]] | * [[https://help.libreoffice.org/6.3/fr/text/sbasic/python/python_dialogs.html|https://help.libreoffice.org/6.3/fr/text/sbasic/python/python_dialogs.html]] |
| |
| Python et Selenium |
| |
| * [[.:selenium|Selenium pour Web scrapping et tests]] |
| |
| |