{"id":20374823,"url":"https://github.com/gisce/libcomxml","last_synced_at":"2025-04-12T07:17:29.312Z","repository":{"id":2254960,"uuid":"3210245","full_name":"gisce/libComXML","owner":"gisce","description":"Python object XML serialization","archived":false,"fork":false,"pushed_at":"2017-10-24T09:49:32.000Z","size":398,"stargazers_count":3,"open_issues_count":1,"forks_count":4,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-04-12T07:17:22.634Z","etag":null,"topics":["hacktoberfest","python","serialization","xml"],"latest_commit_sha":null,"homepage":"http://libcomxml.readthedocs.org","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gisce.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGES.rst","contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-01-18T16:41:49.000Z","updated_at":"2021-10-21T22:27:40.000Z","dependencies_parsed_at":"2022-08-19T19:31:31.229Z","dependency_job_id":null,"html_url":"https://github.com/gisce/libComXML","commit_stats":null,"previous_names":[],"tags_count":39,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gisce%2FlibComXML","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gisce%2FlibComXML/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gisce%2FlibComXML/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gisce%2FlibComXML/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gisce","download_url":"https://codeload.github.com/gisce/libComXML/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248530606,"owners_count":21119601,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hacktoberfest","python","serialization","xml"],"created_at":"2024-11-15T01:27:14.444Z","updated_at":"2025-04-12T07:17:29.292Z","avatar_url":"https://github.com/gisce.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"=========\nlibComXML\n=========\n\n.. image:: https://travis-ci.org/gisce/libComXML.png?branch=master\n    :target: https://travis-ci.org/gisce/libComXML\n    :alt: Build Status\n    \n.. image:: https://coveralls.io/repos/github/gisce/libComXML/badge.svg?branch=master\n    :target: https://coveralls.io/github/gisce/libComXML?branch=master\n\n\nThis library permits XML generation from Python objects\n\n.. code-block:: xml\n\n    \u003cCATALOG\u003e\n      \u003cCD\u003e\n        \u003cTITLE\u003eEmpire Burlesque\u003c/TITLE\u003e\n        \u003cARTIST\u003eBob Dylan\u003c/ARTIST\u003e\n        \u003cCOUNTRY\u003eUSA\u003c/COUNTRY\u003e\n        \u003cCOMPANY\u003eColumbia\u003c/COMPANY\u003e\n        \u003cPRICE\u003e10.90\u003c/PRICE\u003e\n        \u003cYEAR\u003e1985\u003c/YEAR\u003e\n      \u003c/CD\u003e\n      \u003cCD\u003e\n        \u003cTITLE\u003eHide your heart\u003c/TITLE\u003e\n        \u003cARTIST\u003eBonnie Tyler\u003c/ARTIST\u003e\n        \u003cCOUNTRY\u003eUK\u003c/COUNTRY\u003e\n        \u003cCOMPANY\u003eCBS Records\u003c/COMPANY\u003e\n        \u003cPRICE\u003e9.90\u003c/PRICE\u003e\n        \u003cYEAR\u003e1988\u003c/YEAR\u003e\n      \u003c/CD\u003e\n      \u003cCD\u003e\n        \u003cTITLE\u003eTupelo Honey\u003c/TITLE\u003e\n        \u003cARTIST\u003eVan Morrison\u003c/ARTIST\u003e\n        \u003cCOUNTRY\u003eUK\u003c/COUNTRY\u003e\n        \u003cCOMPANY\u003ePolydor\u003c/COMPANY\u003e\n        \u003cPRICE\u003e8.20\u003c/PRICE\u003e\n        \u003cYEAR\u003e1971\u003c/YEAR\u003e\n      \u003c/CD\u003e\n    \u003c/CATALOG\u003e\n\n\n.. code-block:: python\n\n    from libcomxml.core import XmlModel, XmlField\n\n\n    class Cd(XmlModel):\n        def __init__(self):\n            self.data = XmlField('CD')\n            self.title = XmlField('TITLE')\n            self.artist = XmlField('ARTIST')\n            self.country = XmlField('COUNTRY')\n            self.company = XmlField('COMPANY')\n            self.price = XmlField('PRICE')\n            self.year = XmlField('YEAR')\n            super(Cd, self).__init__('CD', 'data')\n\n\n    class Catalog(XmlModel):\n        def __init__(self):\n            self.catalog = XmlField('CATALOG')\n            self.cds = []\n            super(Catalog, self).__init__('CATALOG', 'catalog')\n\n\n    catalog = Catalog()\n    cd = Cd()\n    cd.feed({\n        'title': 'Empire Burlesque',\n        'artist': 'Bob Dylan',\n        'country': 'USA',\n        'company': 'Columbia',\n        'price': 10.90,\n        'year': 1985\n    })\n    catalog.cds.append(cd)\n    cd = Cd()\n    cd.feed({\n        'title': 'Hide your hear',\n        'artist': 'Bonnie Tyler',\n        'country': 'UK',\n        'company': 'CBS Records',\n        'price': 9.90,\n        'year': 1988\n    })\n    catalog.cds.append(cd)\n    # Also we can add XML String directly as a new element\n    cd = \"\"\"\u003cCD\u003e\n            \u003cTITLE\u003eTupelo Honey\u003c/TITLE\u003e\n            \u003cARTIST\u003eVan Morrison\u003c/ARTIST\u003e\n            \u003cCOUNTRY\u003eUK\u003c/COUNTRY\u003e\n            \u003cCOMPANY\u003ePolydor\u003c/COMPANY\u003e\n            \u003cPRICE\u003e8.20\u003c/PRICE\u003e\n            \u003cYEAR\u003e1971\u003c/YEAR\u003e\n            \u003c/CD\u003e\"\"\"\n    self.catalog.cds.append(cd)\n    catalog.build_tree()\n    print catalog\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgisce%2Flibcomxml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgisce%2Flibcomxml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgisce%2Flibcomxml/lists"}