How To Install python3-xsdata on Debian 12
Introduction
In this tutorial we learn how to install python3-xsdata
on Debian 12.
What is python3-xsdata
python3-xsdata is:
xsData is a complete XML data binding library for Python allowing developers to access and use XML documents as simple objects rather than using DOM.
It ships with a code generator for XML Schema definitions and WSDL 1.1 with SOAP 1.1 bindings. It produces simple dataclasses with type hints that don’t depend on the library itself in order to reduce the learning curve for users that have to write the binding models manually.
The included xml parser and serializer are highly optimized and adaptable with handlers based on native Python and lxml. The parser configuration offers the ability to skip unknown properties and to process xinclude statements.
xsData is constantly tested against the W3C XML Schema 1.1 test suite.
This package installs the library for Python 3.
There are three methods to install python3-xsdata
on Debian 12. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install python3-xsdata Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install python3-xsdata
using apt-get
by running the following command:
sudo apt-get -y install python3-xsdata
Install python3-xsdata Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install python3-xsdata
using apt
by running the following command:
sudo apt -y install python3-xsdata
Install python3-xsdata Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install python3-xsdata
using aptitude
by running the following command:
sudo aptitude -y install python3-xsdata
How To Uninstall python3-xsdata on Debian 12
To uninstall only the python3-xsdata
package we can use the following command:
sudo apt-get remove python3-xsdata
Uninstall python3-xsdata And Its Dependencies
To uninstall python3-xsdata
and its dependencies that are no longer needed by Debian 12, we can use the command below:
sudo apt-get -y autoremove python3-xsdata
Remove python3-xsdata Configurations and Data
To remove python3-xsdata
configuration and data from Debian 12 we can use the following command:
sudo apt-get -y purge python3-xsdata
Remove python3-xsdata configuration, data, and all of its dependencies
We can use the following command to remove python3-xsdata
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge python3-xsdata
Dependencies
python3-xsdata have the following dependencies:
References
Summary
In this tutorial we learn how to install python3-xsdata
package on Debian 12 using different package management tools: apt
, apt-get
and aptitude
.