{
"info": {
"author": "Zeth",
"author_email": "theology@gmail.com",
"bugtrack_url": null,
"classifiers": [
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Libraries",
"Topic :: Utilities"
],
"description": "Milestone\n=========\n\nThis is useful for XML files containing multiple hierarchies.\n\nExample\n-------\n\nOne example is an XML dialect called TEI which might have been created\nto represent a book using chapters (div elements) but you want to use\nthe text by page (pb element).\n\nImagine an XML file called myfile.xml that contains milestone\nelements dotted throughout the XML.\n\nThe following command will split the input file into separate output\nfiles for each pb element::\n\n python3 milestone.py -t pb myfile.xml\n\nOr if you have installed the module through pip, you can use::\n\n python3 -m milestone -b pb myfile.xml\n\nThe above commands will name the output files with integers.\n\nNow imagine that the elements have an attribute called 'n' that\nwe want to use for the name of each output file.\n\nThe following command will split the input file into separate output\nfiles, named according to the 'n' attribute::\n\n python3 milestone.py -t pb -n n myfile.xml\n\nIf you want to transform the hierarchy but not split the data into\nseparate files, you can use the -x flag::\n\n python3 milestone.py -x -t pb -n n myfile.xml > outputfile.xml\n\nTo use this as a library in your own code, import the\nMilestone class::\n\n from milestone import Milestone\n\nTo share ideas or improvements, please visit the github project at:\n\n https://github.com/zeth/milestone",
"description_content_type": null,
"docs_url": null,
"download_url": "UNKNOWN",
"downloads": {
"last_day": -1,
"last_month": -1,
"last_week": -1
},
"home_page": "https://github.com/zeth/milestone",
"keywords": null,
"license": "BSD",
"maintainer": null,
"maintainer_email": null,
"name": "milestone",
"package_url": "https://pypi.org/project/milestone/",
"platform": "UNKNOWN",
"project_url": "https://pypi.org/project/milestone/",
"project_urls": {
"Download": "UNKNOWN",
"Homepage": "https://github.com/zeth/milestone"
},
"release_url": "https://pypi.org/project/milestone/0.2/",
"requires_dist": null,
"requires_python": null,
"summary": "Split an XML document by milestone element.",
"version": "0.2"
},
"last_serial": 2530704,
"releases": {
"0.1": [],
"0.2": [
{
"comment_text": "",
"digests": {
"md5": "a998da9e49962f89d8e40666d62a9de1",
"sha256": "5234711acd6e4f5c6cfe8c8a432ddd6dc9cc3f95338c9e244838a81cd1d1e8e1"
},
"downloads": -1,
"filename": "milestone-0.2.tar.gz",
"has_sig": false,
"md5_digest": "a998da9e49962f89d8e40666d62a9de1",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 5046,
"upload_time": "2016-12-20T16:24:00",
"url": "https://files.pythonhosted.org/packages/e7/a5/00ece4f17e66124a1d9338abd4b8fb8e7f877a2cc3bbda2889b67d5f44dd/milestone-0.2.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "a998da9e49962f89d8e40666d62a9de1",
"sha256": "5234711acd6e4f5c6cfe8c8a432ddd6dc9cc3f95338c9e244838a81cd1d1e8e1"
},
"downloads": -1,
"filename": "milestone-0.2.tar.gz",
"has_sig": false,
"md5_digest": "a998da9e49962f89d8e40666d62a9de1",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 5046,
"upload_time": "2016-12-20T16:24:00",
"url": "https://files.pythonhosted.org/packages/e7/a5/00ece4f17e66124a1d9338abd4b8fb8e7f877a2cc3bbda2889b67d5f44dd/milestone-0.2.tar.gz"
}
]
}