xmltoxsd


Namexmltoxsd JSON
Version 0.1.1 PyPI version JSON
download
home_page
SummaryA library for converting XML documents to XSD schemas.
upload_time2024-02-14 05:09:12
maintainer
docs_urlNone
author
requires_python>=3.6
licenseMIT License Copyright (c) 2024 Mustansir Godhrawala Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords xml xsd schema conversion
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # XMLtoXSD Library

The `xmltoxsd` library is a Python tool designed to convert XML documents into XSD (XML Schema Definition) schemas automatically. It simplifies the process of generating XSD schemas from XML files, making it easier for developers to validate their XML data.

## Features

- **Automatic Type Inference**: Automatically determines the data types for XML elements and attributes.
- **Support for Complex XML Structures**: Handles nested elements and attributes with ease.
- **Customizable `minOccurs` Attribute**: Allows users to specify default values for `minOccurs` attribute in the generated XSD.

## Installation

Install `xmltoxsd` using pip:

```bash
pip install xmltoxsd
```

## Quick Start
Here's how to quickly get started with xmltoxsd:
```
from xmltoxsd import XSDGenerator

generator = XSDGenerator()
xsd_schema = generator.generate_xsd("path/to/your/xml_file.xml")
print(xsd_schema)
```

## Usage
To generate an XSD schema from an XML file:
```
with open("output.xsd", "w") as f:
    f.write(xsd_schema)
```

## Contributing
We welcome contributions to the xmltoxsd library. Please read our CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

## License
This project is licensed under the MIT License - see the LICENSE file for details.

## Support
If you have any questions or encounter issues using the library, please open an issue on my GitHub repository.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "xmltoxsd",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "XML,XSD,schema,conversion",
    "author": "",
    "author_email": "Mustansir Godhrawala <mustansirgodhrawala9@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/b0/d9/10cb01b155ccb15808c85cc25696470831912570bf655b78a17d7df8179f/xmltoxsd-0.1.1.tar.gz",
    "platform": null,
    "description": "# XMLtoXSD Library\n\nThe `xmltoxsd` library is a Python tool designed to convert XML documents into XSD (XML Schema Definition) schemas automatically. It simplifies the process of generating XSD schemas from XML files, making it easier for developers to validate their XML data.\n\n## Features\n\n- **Automatic Type Inference**: Automatically determines the data types for XML elements and attributes.\n- **Support for Complex XML Structures**: Handles nested elements and attributes with ease.\n- **Customizable `minOccurs` Attribute**: Allows users to specify default values for `minOccurs` attribute in the generated XSD.\n\n## Installation\n\nInstall `xmltoxsd` using pip:\n\n```bash\npip install xmltoxsd\n```\n\n## Quick Start\nHere's how to quickly get started with xmltoxsd:\n```\nfrom xmltoxsd import XSDGenerator\n\ngenerator = XSDGenerator()\nxsd_schema = generator.generate_xsd(\"path/to/your/xml_file.xml\")\nprint(xsd_schema)\n```\n\n## Usage\nTo generate an XSD schema from an XML file:\n```\nwith open(\"output.xsd\", \"w\") as f:\n    f.write(xsd_schema)\n```\n\n## Contributing\nWe welcome contributions to the xmltoxsd library. Please read our CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.\n\n## License\nThis project is licensed under the MIT License - see the LICENSE file for details.\n\n## Support\nIf you have any questions or encounter issues using the library, please open an issue on my GitHub repository.\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2024 Mustansir Godhrawala  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "A library for converting XML documents to XSD schemas.",
    "version": "0.1.1",
    "project_urls": {
        "homepage": "https://github.com/Mustangodhra/xmltoxsd"
    },
    "split_keywords": [
        "xml",
        "xsd",
        "schema",
        "conversion"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1514ce8fba9a3498c6b76fa99f37c2062b93e406799679f7a4b76e895ca800ca",
                "md5": "cc42683683d2028d48cc3a3614df89d4",
                "sha256": "7bf2cbb7ca0631c7190b6dc4408dfe476d4c0bdadf132bb51fcff20037fb9439"
            },
            "downloads": -1,
            "filename": "xmltoxsd-0.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "cc42683683d2028d48cc3a3614df89d4",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 6046,
            "upload_time": "2024-02-14T05:09:10",
            "upload_time_iso_8601": "2024-02-14T05:09:10.357613Z",
            "url": "https://files.pythonhosted.org/packages/15/14/ce8fba9a3498c6b76fa99f37c2062b93e406799679f7a4b76e895ca800ca/xmltoxsd-0.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b0d910cb01b155ccb15808c85cc25696470831912570bf655b78a17d7df8179f",
                "md5": "8ecfc940c0a640658711c548b39a2472",
                "sha256": "e713191111c17c2f9b7cde15a47aef8e10a9e3bf4806fbe2d04a3a9f4d746ef4"
            },
            "downloads": -1,
            "filename": "xmltoxsd-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "8ecfc940c0a640658711c548b39a2472",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 6772,
            "upload_time": "2024-02-14T05:09:12",
            "upload_time_iso_8601": "2024-02-14T05:09:12.321961Z",
            "url": "https://files.pythonhosted.org/packages/b0/d9/10cb01b155ccb15808c85cc25696470831912570bf655b78a17d7df8179f/xmltoxsd-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-14 05:09:12",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Mustangodhra",
    "github_project": "xmltoxsd",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "xmltoxsd"
}
        
Elapsed time: 0.19071s