Differences between revisions 6 and 15 (spanning 9 versions)
Revision 6 as of 2021-11-20 21:35:58
Size: 466
Comment:
Revision 15 as of 2022-09-24 03:34:50
Size: 1373
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:
== Servers == == Example ==
Line 11: Line 13:
 * [[Python/UWSGI|uWSGI]]
 * [[Python/MoinMoin|MoinMoin]]
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
}}}

----
Line 16: Line 42:
== Programming paradigms == == Tool chain ==

 * [[Python/Installation|Installation]]
 * [[Python/Pip|pip]]
 * [[Python/Venv|venv]]
 * [[Python/Unittest|unittest]]



== Applications and Servers ==

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



== Language ==
Line 23: Line 68:
== Libraries == == Parsers ==
Line 25: Line 70:
 * [[Python/DunderFiles|Dunder Files]]  * [[Python/HtmlParser|html.parser (HTML)]]
 * [[Python/BeautifulSoup|Beautiful Soup (HTML)]]
 * [[Python/Pdfminer|pdfminer (PDF)]]
 * [[Python/XmlSax|xml.sax (XML)]]
 * [[Python/XmlDomMinidom|xml.dom.minidom (XML)]]
 * [[Python/LxmlEtree|lxml.etree (XML)]]
Line 29: Line 79:
== Tool chain == == Creating Libraries ==
Line 31: Line 81:
 * [[Python/Pip|pip]]
 * [[Python/Venv|venv]]
 * [[Python/Unittest|unittest]]
 * [[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

Parsers

Creating Libraries


CategoryRicottone

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