Differences between revisions 3 and 21 (spanning 18 versions)
Revision 3 as of 2021-11-18 08:26:53
Size: 316
Comment:
Revision 21 as of 2023-01-07 04:04:11
Size: 1832
Comment:
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:

The '''Python programming language''' is an interpreted, duck-typed language.
Line 9: Line 11:
== Programming paradigms == == Example ==
Line 11: Line 13:
A hello world program looks like:

{{{
def main():
    print("Hello, world")

if __name__ == "__main__":
    main()
}}}

If using Python 2, the print command is instead a statement.

{{{
print "Hello, world"
}}}

To run the program, try:

{{{
python hello.py
# or
chmod 755 hello.py
./hello.py
}}}

----



== Tool chain ==

 * [[Python/Installation|Installation]]
 * [[Python/Pip|pip]]
 * [[Python/PyProject|pyproject.toml]]
 * [[Python/Venv|venv]]
 * [[Python/Unittest|unittest]]
 * [[Python/TypeAnnotation|Type Annotation]]



== Applications and Servers ==

 * [[Python/MoinMoin|MoinMoin]]
 * [[Python/Flask|Flask]]
 * [[Python/Gunicorn|Gunicorn]]
 * [[Python/UWSGI|uWSGI]]
 * [[Python/Werkzeug|Werkzeug]]



== Language ==

 * [[Python/Builtins|Built-ins]]
 * [[Python/ContextManagers|Context managers]]
 * [[Python/DunderMethods|Dunder Methods]]
Line 17: Line 74:
 * [[Python/DunderFiles|Dunder Files]]  * [[Python/Codecs|codecs]]
 * [[Python/ContextLib|contextlib]]
 * [[Python/Collections|collections]]
 * [[Python/CollectionsAbc|collections.abc]]
 * [[Python/Typing|typing]]
Line 21: Line 82:
== Tool chain == == Parsers ==
Line 23: Line 84:
 * [[Python/Venv|venv]]
 * [[Python/Unittest|unittest]]
=== Configuration Files ===

 * [[Python/ConfigParser|ConfigParser]]

=== HTML ===

 * [[Python/HtmlParser|html.parser]]
 * [[Python/BeautifulSoup|Beautiful Soup]]

=== PDF ===

 * [[Python/Pdfminer|pdfminer]]

=== XML ===

 * [[Python/XmlSax|xml.sax]]
 * [[Python/XmlDomMinidom|xml.dom.minidom]]
 * [[Python/LxmlEtree|lxml.etree]]



== Creating Libraries ==

 * [[Python/DunderFiles|Dunder Files]]
 * [[Python/SetupFiles|Setup Files]]

Python

The Python programming language is an interpreted, duck-typed language.


Example

A hello world program looks like:

def main():
    print("Hello, world")

if __name__ == "__main__":
    main()

If using Python 2, the print command is instead a statement.

print "Hello, world"

To run the program, try:

python hello.py
# or
chmod 755 hello.py
./hello.py


Tool chain

Applications and Servers

Language

Libraries

Parsers

Configuration Files

HTML

PDF

XML

Creating Libraries


CategoryRicottone

Python (last edited 2025-12-23 05:22:18 by DominicRicottone)