{ "info": { "author": "Riccardo Magliocchetti", "author_email": "riccardo.magliocchetti@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Console", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Office/Business :: Office Suites", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "pylokit\n=======\n\nA python CFFI wrapper for LibreOfficeKit. Tested in cpython2,\ncpython3, and pypy.\n\nRequirements\n------------\n\nAn installation of LibreOffice >= 4.3.0 is required on the same machine.\n\nIf you are using cpython you need *libffi-dev* in order to compile CFFI.\n\nInstallation\n------------\n\n.. code:: bash\n\n pip install pylokit\n\nExamples\n--------\n\nA basic conversion from a rtf file to a doc:\n\n.. code:: python\n\n from pylokit import Office\n import os\n\n lo_path = \"/path/to/libreoffice/program/dir\"\n\n with Office(lo_path) as lo:\n with lo.documentLoad(\"myfile.rtf\") as doc:\n doc.saveAs(\"myfile.doc\")\n\n os._exit(0)\n\nSame conversion passing an explicit format and filter options:\n\n.. code:: python\n\n from pylokit import Office\n import os\n\n lo_path = \"/path/to/libreoffice/program/dir\"\n\n with Office(lo_path) as lo:\n with lo.documentLoad(\"myfile.rtf\") as doc:\n doc.saveAs(\"myfile.doc\", fmt=\"docx\", options=\"skipImages\")\n\n os._exit(0)\n\nThe usage of a context manager is needed to properly handle LibreOfficeKit\nfile locking.\nThe use of _exit() instead of default exit() is required because in some\ncircumstances LibreOffice segfaults on process exit.\n\nAcknowledgements\n----------------\n\nProject inspired by Olly Betts' `lloconv `_.", "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/xrmx/pylokit", "keywords": null, "license": "MPL 2.0", "maintainer": null, "maintainer_email": null, "name": "pylokit", "package_url": "https://pypi.org/project/pylokit/", "platform": "OS Independent", "project_url": "https://pypi.org/project/pylokit/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/xrmx/pylokit" }, "release_url": "https://pypi.org/project/pylokit/0.8.1/", "requires_dist": null, "requires_python": null, "summary": "Python CFFI wrapper for LibreOfficeKit", "version": "0.8.1" }, "last_serial": 1927219, "releases": { "0.5.0": [ { "comment_text": "", "digests": { "md5": "5a25e13074778d56724d7adfd7517405", "sha256": "32a0f497b1aa07b962ff5be4fd1e65cf3278d9bb32d656a3ea62acc823c1ebe9" }, "downloads": -1, "filename": "pylokit-0.5.0.tar.gz", "has_sig": false, "md5_digest": "5a25e13074778d56724d7adfd7517405", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9020, "upload_time": "2014-07-20T09:51:26", "url": "https://files.pythonhosted.org/packages/b5/fa/579afa1904b52645f4a59bd317f48dc3a0f780601f2b537bf01d66477f4e/pylokit-0.5.0.tar.gz" } ], "0.6.0": [ { "comment_text": "", "digests": { "md5": "f531c7ae3999b3a51f506db8dab356f2", "sha256": "f7d5a5879d7a2c8dad0e789992f6410333e0f0f8bbde9fb312c727a89bf8b6ab" }, "downloads": -1, "filename": "pylokit-0.6.0.tar.gz", "has_sig": false, "md5_digest": "f531c7ae3999b3a51f506db8dab356f2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9130, "upload_time": "2014-07-20T12:47:56", "url": "https://files.pythonhosted.org/packages/8b/97/b90f783f683bdbe499687d4dcd03ebfd36365f95e2384030ac2f70b426dc/pylokit-0.6.0.tar.gz" } ], "0.8.0": [ { "comment_text": "", "digests": { "md5": "981751515cf611fdd9a43ae5f973e33b", "sha256": "c31edc8413ce4b8f052ce56a365490f3d12997ad4b6d749e37260d1db19b72f1" }, "downloads": -1, "filename": "pylokit-0.8.0.tar.gz", "has_sig": false, "md5_digest": "981751515cf611fdd9a43ae5f973e33b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11121, "upload_time": "2014-07-21T17:33:59", "url": "https://files.pythonhosted.org/packages/68/84/8862c018e19194644fdd439ded0ed9aff6ad04c242ffa39551a66e06c12a/pylokit-0.8.0.tar.gz" } ], "0.8.1": [ { "comment_text": "", "digests": { "md5": "b63c38b5b505bacc032c9b5c072bee3c", "sha256": "11346e35cfaf661bf2865a2c0e02f12fd5fbfd07e2b1bff7e7ccbff32e749379" }, "downloads": -1, "filename": "pylokit-0.8.1.tar.gz", "has_sig": false, "md5_digest": "b63c38b5b505bacc032c9b5c072bee3c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11059, "upload_time": "2016-01-28T12:29:02", "url": "https://files.pythonhosted.org/packages/a2/05/b0e1db3fc82d9dd4fa7701adde4b8ba83b71a72a01668b168b98ab5e7ad4/pylokit-0.8.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b63c38b5b505bacc032c9b5c072bee3c", "sha256": "11346e35cfaf661bf2865a2c0e02f12fd5fbfd07e2b1bff7e7ccbff32e749379" }, "downloads": -1, "filename": "pylokit-0.8.1.tar.gz", "has_sig": false, "md5_digest": "b63c38b5b505bacc032c9b5c072bee3c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11059, "upload_time": "2016-01-28T12:29:02", "url": "https://files.pythonhosted.org/packages/a2/05/b0e1db3fc82d9dd4fa7701adde4b8ba83b71a72a01668b168b98ab5e7ad4/pylokit-0.8.1.tar.gz" } ] }