====== Python ======
{{ :python_wiki:python_logo.png?nolink&100|}}
For information on installing/configuring Python versions and packages (pip), see the [[linux_wiki:python|Linux wiki's Python page]].
----
===== Code Snippets =====
Other code snippets can be found here: https://gitlab.com/whowe/python-snippets
\\
* [[ python template ]]
* [[ if __name__ main ]]
* [[ argument parser ]]
* [[ clear screen ]]
* [[ config parser ]]
* [[ exceptions|exceptions (try,except) ]]
* [[ list comprehensions ]]
* [[ list of dictionaries with a list inside ]]
* [[ logging ]]
* [[ main program loop ]]
* [[ os env variables ]]
* [[ print status messages ]]
* [[ requests|requests (http library)]]
* [[ send email ]]
* [[ sort list of dictionaries by value ]]
* [[ string matching ]]
* [[ string normalization ]]
* [[ test port ]]
----
===== Frameworks =====
**Django**
* [[ Django Install ]]
* [[ Django Configuration ]]
* [[ Django API ]]
**Flask**
* Flask Install
* Flask Configuration
* Flask API
----
===== Scripts =====
* [[ FreeIPA Import Group Memberships|FreeIPA: Import Group Memberships ]]
* [[ Spacewalk Describe|Spacewalk: Describe ]]
* [[ Spacewalk List Groups|Spacewalk: List Groups ]]
----
===== External Resources =====
* [[ https://automatetheboringstuff.com/2e/|Automate the Boring Stuff ]]
* [[ https://learnpythonthehardway.org/book/ex0.html|Learn Python the Hard Way ]]
* [[ http://www.pyregex.com/|PyRegex (Online Python Regular Expressions Tester) ]]
* [[ http://python-regex.com/|Python Regex (Online Python Regular Expressions Tester) ]]
* [[ https://devguide.python.org/#status-of-python-branches|Python End of Life Dates ]]
* [[ https://python-release-cycle.glitch.me/|Python Release Cycle ]]
----