dicttoxml2


Namedicttoxml2 JSON
Version 2.1.0 PyPI version JSON
download
home_pagehttps://github.com/Ousret/dicttoxml
SummaryConverts a Python dictionary or other native data type into a valid XML string.
upload_time2022-08-13 20:58:38
maintainer
docs_urlNone
authorRyan McGreal
requires_python>=3.7, <4
licenseGPL-2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <h1 align="center">Dict to XML</h1>

<p align="center">
  <a href="https://pypi.org/project/dicttoxml2">
    <img src="https://img.shields.io/pypi/pyversions/dicttoxml2.svg?orange=blue" />
  </a>
  <a href="https://codecov.io/gh/Ousret/dicttoxml">
      <img src="https://codecov.io/gh/Ousret/dicttoxml/branch/master/graph/badge.svg" />
  </a>
  <a href="https://pepy.tech/project/dicttoxml2/">
    <img alt="Download Count Total" src="https://pepy.tech/badge/dicttoxml2/month" />
  </a>
</p>

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](https://pypi.python.org/pypi/dicttoxml2), 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
======

* Author: Ryan McGreal
* Email: [ryan@quandyfactory.com](mailto:ryan@quandyfactory.com)
* Repository: [http://github.com/quandyfactory/dicttoxml](http://github.com/quandyfactory/dicttoxml)

Maintainer
==========

* Author: Ahmed TAHRI
* Email: [ahmed.tahri@cloudnursery.dev](mailto:ahmed.tahri@cloudnursery.dev)
* Repository: [http://github.com/Ousret/dicttoxml](http://github.com/Ousret/dicttoxml)

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>


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Ousret/dicttoxml",
    "name": "dicttoxml2",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7, <4",
    "maintainer_email": "",
    "keywords": "",
    "author": "Ryan McGreal",
    "author_email": "ryan@quandyfactory.com",
    "download_url": "https://files.pythonhosted.org/packages/0b/24/7a6d37b2770843e34685e470fd711955cb0f77c354c73d8ca64b02420bce/dicttoxml2-2.1.0.tar.gz",
    "platform": null,
    "description": "<h1 align=\"center\">Dict to XML</h1>\n\n<p align=\"center\">\n  <a href=\"https://pypi.org/project/dicttoxml2\">\n    <img src=\"https://img.shields.io/pypi/pyversions/dicttoxml2.svg?orange=blue\" />\n  </a>\n  <a href=\"https://codecov.io/gh/Ousret/dicttoxml\">\n      <img src=\"https://codecov.io/gh/Ousret/dicttoxml/branch/master/graph/badge.svg\" />\n  </a>\n  <a href=\"https://pepy.tech/project/dicttoxml2/\">\n    <img alt=\"Download Count Total\" src=\"https://pepy.tech/badge/dicttoxml2/month\" />\n  </a>\n</p>\n\nConverts a Python dictionary or other native data type into a valid XML string. \nThis is a fork that support Python 3.9 and forward versions and drop all EOL (<=3.6) versions altogether.\nIt is mostly backward-compatible, act as a drop-in replacement.\n\nInstallation\n============\n\n**This module should work in Python 3.7+.**\nThe dicttoxml module is [published on the Python Package Index](https://pypi.python.org/pypi/dicttoxml2), so you can install it using `pip`.\n\n    pip install dicttoxml2\n\nThat should be all you need to do.\n\nBasic Usage\n===========\n\nOnce installed, import the library into your script and convert a dict into xml by running the `dicttoxml` function:\n\n    >>> import dicttoxml2\n    >>> xml = dicttoxml2.dicttoxml(some_dict)\n\nAlternately, you can import the `dicttoxml()` function from the library.\n\n    >>> from dicttoxml2 import dicttoxml\n    >>> xml = dicttoxml(some_dict)\n\nThat's it!\n\nAuthor\n======\n\n* Author: Ryan McGreal\n* Email: [ryan@quandyfactory.com](mailto:ryan@quandyfactory.com)\n* Repository: [http://github.com/quandyfactory/dicttoxml](http://github.com/quandyfactory/dicttoxml)\n\nMaintainer\n==========\n\n* Author: Ahmed TAHRI\n* Email: [ahmed.tahri@cloudnursery.dev](mailto:ahmed.tahri@cloudnursery.dev)\n* Repository: [http://github.com/Ousret/dicttoxml](http://github.com/Ousret/dicttoxml)\n\nCopyright and Licence\n=====================\n\nCopyright 2012 by Ryan McGreal. \n\nReleased under the GNU General Public Licence, Version 2:  \n<http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>\n\n",
    "bugtrack_url": null,
    "license": "GPL-2.0",
    "summary": "Converts a Python dictionary or other native data type into a valid XML string.",
    "version": "2.1.0",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "adef69fb04366e9aea0a4b250f543680",
                "sha256": "b58df16e614f09f100536b51f2ac1345652cfb44c89c2d7c2be685e2e32e03c6"
            },
            "downloads": -1,
            "filename": "dicttoxml2-2.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "adef69fb04366e9aea0a4b250f543680",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7, <4",
            "size": 12478,
            "upload_time": "2022-08-13T20:58:36",
            "upload_time_iso_8601": "2022-08-13T20:58:36.605127Z",
            "url": "https://files.pythonhosted.org/packages/ba/0f/2cbc69586728aab2bb7b82315423298eb96dfd2fb751ee88430585c55fdb/dicttoxml2-2.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "787ea4b80cd6234a41c016e8efa7ff40",
                "sha256": "67cb729f337dd752808c021b70c8df8a34f84b9e111a5dbaa37e000eeaf4d462"
            },
            "downloads": -1,
            "filename": "dicttoxml2-2.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "787ea4b80cd6234a41c016e8efa7ff40",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7, <4",
            "size": 22698,
            "upload_time": "2022-08-13T20:58:38",
            "upload_time_iso_8601": "2022-08-13T20:58:38.502595Z",
            "url": "https://files.pythonhosted.org/packages/0b/24/7a6d37b2770843e34685e470fd711955cb0f77c354c73d8ca64b02420bce/dicttoxml2-2.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-08-13 20:58:38",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "Ousret",
    "github_project": "dicttoxml",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "dicttoxml2"
}
        
Elapsed time: 0.02050s