Differences between revisions 12 and 20 (spanning 8 versions)
Revision 12 as of 2022-05-02 15:40:39
Size: 794
Comment:
Revision 20 as of 2023-01-06 18:57:19
Size: 1676
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
The '''Python programming language''' is an interpreted, duck-typed language.
Line 4: Line 6:

----



== 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
}}}
Line 13: Line 46:
 * [[Python/PyProject|pyproject.toml]]
Line 15: Line 49:
 * [[Python/TypeAnnotation|Type Annotation]]
Line 20: Line 55:
 * [[Python/MoinMoin|MoinMoin]]
 * [[Python/Flask|Flask]]
 * [[Python/Gunicorn|Gunicorn]]
Line 21: Line 59:
 * [[Python/MoinMoin|MoinMoin]]  * [[Python/Werkzeug|Werkzeug]]
Line 27: Line 65:
 * [[Python/ContextManagers|Context managers]]
 * [[Python/DunderMethods|Dunder Methods]]
Line 28: Line 68:
 * [[Python/DunderMethods|Dunder Methods]]


== Libraries ==

 * [[Python/Codecs|codecs]]
 * [[Python/Typing|typing]]
Line 34: Line 80:
 * [[Python/Pdfminer|pdfminer (PDF)]]
 * [[Python/HtmlParser|html.parser (HTML)]]
 * [[Python/XmlSax|xml.sax (XML)]]
 * [[Python/XmlDomMinidom|xml.dom.minidom (XML)]]
 * [[Python/LxmlEtree|lxml.etree (XML)]]
=== 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]]

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)