---
metadata:
  - name: generator
    content: Diplodoc Platform v5.64.0
alternate:
  - https://www.yandex.ru/dev/direct/doc/en/python3-xml.md
  - https://www.yandex.ru/dev/direct/doc/ru/python3-xml.md
  - href: https://www.yandex.ru/dev/direct/doc/en/python3-xml.md
    type: text/markdown
    title: Markdown version
  - href: https://www.yandex.ru/dev/direct/doc/en/llms.txt?revision=r21714029
    rel: describedby
sourcePath: en/examples/python3-xml.md
title: Python examples for XML
description: A collection of Python 2 or 3 examples in XML format using the Requests and PyXB libraries.
---
> **Documentation Index:** Fetch the complete configuration index at https://www.yandex.ru/dev/direct/doc/en/llms.txt?revision=r21714029


# Python examples for XML

Python 2 or 3 using XML with the Requests and PyXB libraries

- [Get statistics for any dates](https://www.yandex.ru/dev/direct/doc/en/python3_pyxb_stat1.md)
- [Get statistics for a selection of rows](https://www.yandex.ru/dev/direct/doc/en/python3_pyxb_stat2.md)

## Installing additional libraries{#python-modules}
You can use the pip utility for installing libraries (Flask, Requests, Suds, PyXB, and others):
```
pip install %package_name%
```

The pip utility is included in Python 2 beginning with version 2.7.9, and in Python 3 beginning with version 3.4. If you are using an earlier version of Python, you need to install pip. For example, you can use the script [https://bootstrap.pypa.io/get-pip.py](https://bootstrap.pypa.io/get-pip.py).

For more information, see [https://packaging.python.org/tutorials/installing-packages/](https://packaging.python.org/tutorials/installing-packages/).

