{ "info": { "author": "Thomas Buchberger", "author_email": "t.buchberger@4teamwork.ch", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3" ], "description": "*docxcompose* is a Python library for concatenating/appending Microsoft\nWord (.docx) files.\n\n\nExample usage\n-------------\n\nAppend a document to another document:\n\n.. code::\n\n from docxcompose.composer import Composer\n from docx import Document\n master = Document(\"master.docx\")\n composer = Composer(master)\n doc1 = Document(\"doc1.docx\")\n composer.append(doc1)\n composer.save(\"combined.docx\")\n\n\nThe docxcompose console script\n------------------------------\n\n\nThe ``docxcompose`` console script allows to compose docx files form the command\nline, e.g.:\n\n.. code:: sh\n\n $ docxcompose files/master.docx files/content.docx -o files/composed.docx\n\n\nInstallation for development\n----------------------------\n\nTo install docxcompose for development, clone the repository and using a python with setuptools (for example a fresh virtualenv), install it using pip:\n\n.. code:: sh\n\n $ pip install -e .[tests]\n\nTests can then be run with ``pytest``.\n\n\nA note about testing\n--------------------\n\nThe tests provide helpers for blackbox testing that can compare whole word\nfiles. To do so the following files should be provided:\n\n- a file for the expected output that should be added to the folder\n `docs/composed_fixture`\n- multiple files that can be composed into the file above should be added\n to the folder `docs`.\n\nThe expected output can now be tested as follows:\n\n\n.. code:: python\n\n def test_example():\n fixture = FixtureDocument(\"expected.docx\")\n composed = ComposedDocument(\"master.docx\", \"slave1.docx\", \"slave2.docx\")\n assert fixture == composed\n\n\nShould the assertion fail the output file will be stored in the folder\n`docs/composed_debug` with the filename of the fixture file, `expected.docx`\nin case of this example.\n\nChangelog\n=========\n\n\n1.0.2 (2019-09-09)\n------------------\n\n- Do not fail when complex field does not have a separate node. [njohner]\n\n\n1.0.1 (2019-07-25)\n------------------\n\n- Correctly treat two complex fields in the same paragraph. [njohner]\n- Correctly handle the case when a docproperty appears multiple time in a document. [njohner]\n- Handle docproperties with extra space before or no quotes around the property name. [njohner]\n\n1.0.0 (2019-06-13)\n------------------\n\n- Change license from GPL to MIT.\n [buchi]\n\n- Add support for adding, setting and deleting of doc properties.\n [buchi]\n\n\n1.0.0a17 (2019-04-25)\n---------------------\n\n- Add functionality to get and set content of plain text content controls\n (structured document tags).\n [buchi]\n\n\n1.0.0a16 (2019-01-15)\n---------------------\n\n- Prevent artifacts of previously cached doc property values during update. [deiferni]\n\n\n1.0.0a15 (2018-12-12)\n---------------------\n\n- Fix updating doc-properties with non-ascii names. [deiferni]\n- Don't handle hyperlink references twice. [deiferni]\n\n\n1.0.0a14 (2018-12-04)\n---------------------\n\n- Implement generic handling of referenced parts. Among other, this adds\n support for embedded Excel charts.\n [buchi]\n\n- Handle embedded SVGs.\n [buchi]\n\n- Add styles from other parts, e.g. footnotes.\n [buchi]\n\n\n1.0.0a13 (2018-11-05)\n---------------------\n\n- Fix list-styles being set incorrectly when restarting numberings.\n [deiferni]\n\n\n1.0.0a12 (2018-10-30)\n---------------------\n\n- Fix setting section type for appended documents with only one section.\n [deiferni]\n\n\n1.0.0a11 (2018-07-30)\n---------------------\n\n- Fix handling of section type.\n [buchi]\n\n- Fix an issue where the listing style of the first element was different.\n [deiferni]\n\n- Fix issue when restarting intermittent numbering.\n [deiferni]\n\n\n1.0.0a10 (2018-07-18)\n---------------------\n\n- Add console script command to compose two or more word files.\n [deiferni]\n\n\n1.0.0a9 (2018-05-01)\n--------------------\n\n- Fix error in mapping of num_ids introduced in 1.0.0.a7.\n [buchi]\n\n- Do not fail when numbering zero is referenced.\n [deiferni]\n\n\n1.0.0a8 (2018-04-26)\n--------------------\n\n- Only attempt to set the nsid when it is available.\n [deiferni]\n\n\n1.0.0a7 (2018-04-20)\n--------------------\n\n- Fix handling of images in WordprocessingGroups ().\n [buchi]\n\n- Fix handling of shapes in shape groups ().\n [buchi]\n\n- Fix handling of numberings, avoid inserting multiple numbering properties.\n [buchi]\n\n- Fix renumbering of bookmarks.\n [buchi]\n\n- Renumber ids of drawing object properties ().\n [buchi]\n\n\n1.0.0a6 (2018-02-20)\n--------------------\n\n- Do not restart numbering of bullets.\n [buchi]\n\n\n1.0.0a5 (2018-01-11)\n--------------------\n\n- Renumber bookmarks to avoid duplicate ids.\n [buchi]\n\n- Add support for shapes.\n [buchi]\n\n\n1.0.0a4 (2017-12-27)\n--------------------\n\n- Fix handling of styles when composing documents with different languages.\n [buchi]\n\n- Also add numberings referenced in styles.\n [buchi]\n\n- Avoid having multiple elements for the same style.\n [buchi]\n\n- Restart first numbering of inserted documents\n [buchi]\n\n- Add support for anchored images.\n [buchi]\n\n- Handle referenced style ids that are not defined in styles.xml\n [buchi]\n\n- Remove header and footer references in paragraph properties.\n [buchi]\n\n\n1.0.0a3 (2017-11-22)\n--------------------\n\n- Make removal of property fields optional.\n [buchi]\n\n\n1.0.0a2 (2017-11-06)\n--------------------\n\n- Fix handling of footnotes containing hyperlinks.\n [buchi]\n\n- Add functionality to deal with custom document properties. Properties can be\n updated and fields containing properties can be removed. When appending or\n inserting documents their custom document properties get removed automatically.\n [buchi]\n\n\n1.0.0a1 (2017-09-13)\n--------------------\n\n- Initial release\n [buchi]", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/4teamwork/docxcompose", "keywords": "Python DOCX Word OOXML", "license": "MIT license", "maintainer": "", "maintainer_email": "", "name": "docxcompose", "package_url": "https://pypi.org/project/docxcompose/", "platform": "", "project_url": "https://pypi.org/project/docxcompose/", "project_urls": { "Homepage": "https://github.com/4teamwork/docxcompose" }, "release_url": "https://pypi.org/project/docxcompose/1.0.2/", "requires_dist": null, "requires_python": "", "summary": "Compose .docx documents", "version": "1.0.2" }, "last_serial": 5823344, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "b01362ed367e90c8cabac468cbe2a808", "sha256": "2a9a12e24270c3612567d42fdcc6bbbd8a27b10f689ddc9f8ec1b84cc0ae07be" }, "downloads": -1, "filename": "docxcompose-1.0.0.tar.gz", "has_sig": false, "md5_digest": "b01362ed367e90c8cabac468cbe2a808", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14542, "upload_time": "2019-06-13T15:03:02", "url": "https://files.pythonhosted.org/packages/1a/07/f6278b5d96656f84e6b66b71cb3485879951cb8478d131b4082138aea60d/docxcompose-1.0.0.tar.gz" } ], "1.0.0a1": [ { "comment_text": "", "digests": { "md5": "e517c3e96ad387eee32a0d168450891d", "sha256": "aa061016dc505126cca10a213445d15abebe856db2ed67f3361c28577a06bf13" }, "downloads": -1, "filename": "docxcompose-1.0.0a1.zip", "has_sig": false, "md5_digest": "e517c3e96ad387eee32a0d168450891d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8103, "upload_time": "2017-09-13T15:27:02", "url": "https://files.pythonhosted.org/packages/07/96/12fce44c7fad4fd03ffb5236f50f5dae76c9351bc85d4546d63ac5fe4f17/docxcompose-1.0.0a1.zip" } ], "1.0.0a10": [ { "comment_text": "", "digests": { "md5": "727d1664718a008a945e3ed2087bacae", "sha256": "77d0bd1b2fc11a9e9a62bc2b7cf974c01c69f15c42f275f18d00270b004b1b52" }, "downloads": -1, "filename": "docxcompose-1.0.0a10.tar.gz", "has_sig": false, "md5_digest": "727d1664718a008a945e3ed2087bacae", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9821, "upload_time": "2018-07-18T09:21:45", "url": "https://files.pythonhosted.org/packages/75/0a/e754e72dbc5fa5f04daf5a4d68a68f6a3f645842ac0634c89e1e65ee57d2/docxcompose-1.0.0a10.tar.gz" } ], "1.0.0a11": [ { "comment_text": "", "digests": { "md5": "86e6050b2d45242f25a81255231ab5c0", "sha256": "f00331a4048f121501cb5e14a49f79c846fdd86fea781688fc0acac460be6e33" }, "downloads": -1, "filename": "docxcompose-1.0.0a11.tar.gz", "has_sig": false, "md5_digest": "86e6050b2d45242f25a81255231ab5c0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10961, "upload_time": "2018-07-30T13:07:12", "url": "https://files.pythonhosted.org/packages/1e/5d/5914deb54f3ad4cbf9e070d30d0fbbb95116d014ce23d782f32e0d2a10c5/docxcompose-1.0.0a11.tar.gz" } ], "1.0.0a12": [ { "comment_text": "", "digests": { "md5": "f650855a93e605043588451d999c2862", "sha256": "0958521de205d6615dc747ff311c3fc6fb2f5677618532283108246a6247d742" }, "downloads": -1, "filename": "docxcompose-1.0.0a12.tar.gz", "has_sig": false, "md5_digest": "f650855a93e605043588451d999c2862", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11188, "upload_time": "2018-10-30T15:28:31", "url": "https://files.pythonhosted.org/packages/88/b7/d9d891cce8af334ebe36d20362181edb2c3be57074bec8b63d73de07defc/docxcompose-1.0.0a12.tar.gz" } ], "1.0.0a13": [ { "comment_text": "", "digests": { "md5": "6e55cb789629004cccd0805afe60153a", "sha256": "d40eed7e6c9eef4ce72b4c38ddcbc060b0534dc04979fcc90367e3896da184ab" }, "downloads": -1, "filename": "docxcompose-1.0.0a13.tar.gz", "has_sig": false, "md5_digest": "6e55cb789629004cccd0805afe60153a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11332, "upload_time": "2018-11-05T16:17:27", "url": "https://files.pythonhosted.org/packages/63/95/33766f1fd9dcafaa9b3ab5b8071f84b37382fb474ce56bab0082be755c0c/docxcompose-1.0.0a13.tar.gz" } ], "1.0.0a14": [ { "comment_text": "", "digests": { "md5": "567291a294a8ae6c682f8a31a6ea9e81", "sha256": "ea3902cbc479303e77cbb2fa44cae8006d542ad64cb02324abaa2ac02ba5b385" }, "downloads": -1, "filename": "docxcompose-1.0.0a14.tar.gz", "has_sig": false, "md5_digest": "567291a294a8ae6c682f8a31a6ea9e81", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11917, "upload_time": "2018-12-04T17:44:25", "url": "https://files.pythonhosted.org/packages/89/d3/e75e69c2fafc105117fbff164e9bf0a340baac36165485c42c1a0c9650b7/docxcompose-1.0.0a14.tar.gz" } ], "1.0.0a15": [ { "comment_text": "", "digests": { "md5": "0028d9b9b9a9794763a6d871a98c2790", "sha256": "8a3eeef95c2d26972510697fd68493ef27dc8bf4b6301dcf6a7d6ffa55e2c32d" }, "downloads": -1, "filename": "docxcompose-1.0.0a15.tar.gz", "has_sig": false, "md5_digest": "0028d9b9b9a9794763a6d871a98c2790", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11803, "upload_time": "2018-12-12T14:39:13", "url": "https://files.pythonhosted.org/packages/fd/85/43ebb2bf748223b9c3d14f07ee3a331c552839ba20860c7de91586ca0471/docxcompose-1.0.0a15.tar.gz" } ], "1.0.0a16": [ { "comment_text": "", "digests": { "md5": "e2e9c4f39aee80d7033c1fb76804d6d2", "sha256": "de5cc647907b3c372c7a40fac4e53522cb71d91a72a448337c64136b2f5f0db9" }, "downloads": -1, "filename": "docxcompose-1.0.0a16.tar.gz", "has_sig": false, "md5_digest": "e2e9c4f39aee80d7033c1fb76804d6d2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12336, "upload_time": "2019-01-15T17:52:07", "url": "https://files.pythonhosted.org/packages/22/59/2e146fbb831b61667a8f2fc89170c903fb5011dc9134c1bf2f71d264465b/docxcompose-1.0.0a16.tar.gz" } ], "1.0.0a17": [ { "comment_text": "", "digests": { "md5": "276ee6d5b686297da8664d945ba96382", "sha256": "2122cf47b30ab296864309eb508373d98e199cf8527265e996739e521fa5c1fe" }, "downloads": -1, "filename": "docxcompose-1.0.0a17.tar.gz", "has_sig": false, "md5_digest": "276ee6d5b686297da8664d945ba96382", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12893, "upload_time": "2019-04-25T11:49:25", "url": "https://files.pythonhosted.org/packages/42/2f/af53e097156d1604fc9f8323eba38c1737d17c7fa435a1ce5c5bfb687390/docxcompose-1.0.0a17.tar.gz" } ], "1.0.0a2": [ { "comment_text": "", "digests": { "md5": "35f670643a7f6d0f2bba10a5ff56c08b", "sha256": "aba32341083df15ee8d60525af04f9fcb9e8df707c7bfc3ea1a825d050a03eef" }, "downloads": -1, "filename": "docxcompose-1.0.0a2.zip", "has_sig": false, "md5_digest": "35f670643a7f6d0f2bba10a5ff56c08b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10971, "upload_time": "2017-11-06T13:56:35", "url": "https://files.pythonhosted.org/packages/de/8e/2d7c9c58f7972135c480c25330e36a043c0ce00a0d401a9dc59a5b1a26a4/docxcompose-1.0.0a2.zip" } ], "1.0.0a3": [ { "comment_text": "", "digests": { "md5": "66705c82b0767ae99463f937a772ad59", "sha256": "ef842b7ea8cc36a94d6958a30aa3515b53fa4616a556ae33846d49c4ed2c9367" }, "downloads": -1, "filename": "docxcompose-1.0.0a3.zip", "has_sig": false, "md5_digest": "66705c82b0767ae99463f937a772ad59", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11180, "upload_time": "2017-11-22T16:42:04", "url": "https://files.pythonhosted.org/packages/42/0d/6d69216b84fb343849c8fc0f0d167d97c95b7bce7384f0faf2fd241c2852/docxcompose-1.0.0a3.zip" } ], "1.0.0a4": [ { "comment_text": "", "digests": { "md5": "3cf5ea6e3abf0546ef12201fdbdec164", "sha256": "fd4da578d111c14f1ab2288e106cd1caa5b2d08e4ac84149ad6d0136818480d3" }, "downloads": -1, "filename": "docxcompose-1.0.0a4.zip", "has_sig": false, "md5_digest": "3cf5ea6e3abf0546ef12201fdbdec164", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14210, "upload_time": "2017-12-27T11:18:39", "url": "https://files.pythonhosted.org/packages/27/05/2fd64bd1432ce83172360e8bd7cee9c5a9ac8b6c8bd15f828f461b14d620/docxcompose-1.0.0a4.zip" } ], "1.0.0a5": [ { "comment_text": "", "digests": { "md5": "8ce4002fe59a5dc07daafcb1c88e8e5d", "sha256": "b1f4a62475af5b304d02e42cdb40a0125eacbbaed9234278b3be41b78ede8a62" }, "downloads": -1, "filename": "docxcompose-1.0.0a5.tar.gz", "has_sig": false, "md5_digest": "8ce4002fe59a5dc07daafcb1c88e8e5d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8432, "upload_time": "2018-01-11T12:45:03", "url": "https://files.pythonhosted.org/packages/f0/83/ce4c54d7ab3c37af903c06223de8d788d643b10d31b7d78dbc7c3ea11274/docxcompose-1.0.0a5.tar.gz" } ], "1.0.0a6": [ { "comment_text": "", "digests": { "md5": "e0a814ade2dc087579279d6724caffa7", "sha256": "fe68a2d0fe5c38147faf037bcf1d26ad2b1e460fa4f481b3722edde3f760f61e" }, "downloads": -1, "filename": "docxcompose-1.0.0a6.tar.gz", "has_sig": false, "md5_digest": "e0a814ade2dc087579279d6724caffa7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8538, "upload_time": "2018-02-20T14:28:41", "url": "https://files.pythonhosted.org/packages/f3/c4/f27cefba12767135bded605ac0c26cea7db9a8acf4027451f835ac8038be/docxcompose-1.0.0a6.tar.gz" } ], "1.0.0a7": [ { "comment_text": "", "digests": { "md5": "50e091267ab44c9d7ea8e4d9324df52d", "sha256": "46fed7c181f9dcb17539db929363f06d342c73a154f3c68ae597b97906317597" }, "downloads": -1, "filename": "docxcompose-1.0.0a7.tar.gz", "has_sig": false, "md5_digest": "50e091267ab44c9d7ea8e4d9324df52d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8868, "upload_time": "2018-04-20T09:42:52", "url": "https://files.pythonhosted.org/packages/d5/cc/b231f4ce30158c181c6c8f12737a8c90d0b8ddcdada7302373d797931791/docxcompose-1.0.0a7.tar.gz" } ], "1.0.0a8": [ { "comment_text": "", "digests": { "md5": "2135fa7d5f05b0484601de621e74e98b", "sha256": "0a8f6ca77ecaed2be1f33c2b13c8dc853ec42a6f62caadc2f7c9264efa562871" }, "downloads": -1, "filename": "docxcompose-1.0.0a8.tar.gz", "has_sig": false, "md5_digest": "2135fa7d5f05b0484601de621e74e98b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8943, "upload_time": "2018-04-26T12:44:26", "url": "https://files.pythonhosted.org/packages/99/bd/ea126c471d5409db007d4ad962076880a36b5a79cfca5de6ff40d736281f/docxcompose-1.0.0a8.tar.gz" } ], "1.0.0a9": [ { "comment_text": "", "digests": { "md5": "9a8c9be81ab5b3688024a8698ec10979", "sha256": "f3187bb40007ff6b5003938c71f2b00c565b8296388caa81a0dd1cd02eb5206b" }, "downloads": -1, "filename": "docxcompose-1.0.0a9.tar.gz", "has_sig": false, "md5_digest": "9a8c9be81ab5b3688024a8698ec10979", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9049, "upload_time": "2018-05-01T12:07:18", "url": "https://files.pythonhosted.org/packages/3c/86/4df729899d5ede71a64bb7f4b89b8f8739bf7eeb401cc2109644d1df5621/docxcompose-1.0.0a9.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "6b5797b67fa7e8cbdb8c2f8ddd0e770a", "sha256": "16a8dd888f695c65bc04e0015bdb134820d331a5f8618fd9a51ac1d871ca337c" }, "downloads": -1, "filename": "docxcompose-1.0.1.tar.gz", "has_sig": false, "md5_digest": "6b5797b67fa7e8cbdb8c2f8ddd0e770a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15207, "upload_time": "2019-07-25T12:41:53", "url": "https://files.pythonhosted.org/packages/4f/d4/afe97c6dfeacd98a3260dbb89d46cbd1ede5f9cbb6011bec523aeb0148a6/docxcompose-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "059c20e3cec018afef2878424f37257f", "sha256": "1a9082cec0f353144065ce82945e1198111f7b9f7edb18bb85906d38027f50c4" }, "downloads": -1, "filename": "docxcompose-1.0.2.tar.gz", "has_sig": false, "md5_digest": "059c20e3cec018afef2878424f37257f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15364, "upload_time": "2019-09-09T07:49:49", "url": "https://files.pythonhosted.org/packages/44/c4/4d4b758dacd1711bbf833a79138400ee7e4988c7efe4ecd9fc4944f9878a/docxcompose-1.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "059c20e3cec018afef2878424f37257f", "sha256": "1a9082cec0f353144065ce82945e1198111f7b9f7edb18bb85906d38027f50c4" }, "downloads": -1, "filename": "docxcompose-1.0.2.tar.gz", "has_sig": false, "md5_digest": "059c20e3cec018afef2878424f37257f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15364, "upload_time": "2019-09-09T07:49:49", "url": "https://files.pythonhosted.org/packages/44/c4/4d4b758dacd1711bbf833a79138400ee7e4988c7efe4ecd9fc4944f9878a/docxcompose-1.0.2.tar.gz" } ] }