Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

Dict to XML

Download Count Total

Converts a Python dictionary or other native data type into a valid XML string. This is a fork that support Python 3.9 and forward versions and drop all EOL (<=3.6) versions altogether. It is mostly backward-compatible, act as a drop-in replacement.

Installation

This module should work in Python 3.7+. The dicttoxml module is published on the Python Package Index, so you can install it using pip.

pip install dicttoxml2

That should be all you need to do.

Basic Usage

Once installed, import the library into your script and convert a dict into xml by running the dicttoxml function:

>>> import dicttoxml2
>>> xml = dicttoxml2.dicttoxml(some_dict)

Alternately, you can import the dicttoxml() function from the library.

>>> from dicttoxml2 import dicttoxml
>>> xml = dicttoxml(some_dict)

That's it!

Author

Maintainer

Copyright and Licence

Copyright 2012 by Ryan McGreal.

Released under the GNU General Public Licence, Version 2:
http://www.gnu.org/licenses/old-licenses/gpl-2.0.html

Metadata

Release files for dicttoxml2 2.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dicttoxml2 2.1.0
File Size Uploaded
dicttoxml2-2.1.0.tar.gz 22.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dicttoxml2 2.1.0
File Interpreter ABI Platform
dicttoxml2-2.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 35.2 kB

Release files / dicttoxml2-2.1.0.tar.gz

Download URL dicttoxml2-2.1.0.tar.gz
Size 22.7 kB
Tags Source
SHA-256 checksum
How to use checksums
67cb729f337dd752808c021b70c8df8a34f84b9e111a5dbaa37e000eeaf4d462
BLAKE2b-256 checksum
How to use checksums
0b247a6d37b2770843e34685e470fd711955cb0f77c354c73d8ca64b02420bce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Release files / dicttoxml2-2.1.0-py3-none-any.whl

Download URL dicttoxml2-2.1.0-py3-none-any.whl
Size 12.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b58df16e614f09f100536b51f2ac1345652cfb44c89c2d7c2be685e2e32e03c6
BLAKE2b-256 checksum
How to use checksums
ba0f2cbc69586728aab2bb7b82315423298eb96dfd2fb751ee88430585c55fdb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Release history Release notifications | RSS feed

This release

2.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page