{ "info": { "author": "pchaitat", "author_email": "chaitat@the-im.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Programming Language :: Python :: 3.4", "Topic :: Office/Business :: Financial :: Spreadsheet" ], "description": "invrcptexporter\n===============\n\na tool to export invoice and receipt from libreoffice calc into pdf file\n\nvirtualenv has to be created with option ``--system-site-packages`` as\nit needs to use system site-packages which has uno module installed by\n``$ sudo apt-get install python3-uno``, on Ubuntu. (Unfortunately, uno\nmodule is not available from pip.)\n\nThe code is based on Christopher5106's tutorial (many thanks to him):\n\n``('http://christopher5106.github.io/office/2015/12/06/openoffice-', 'libreoffice-automate-your-office-tasks-with-python-macros.html')``\n\nHow it works\n------------\n\n- we open LibreOffice with socket open\n- we use Python to send commands to LibreOffice through the socket (you\n should use iptables to block incoming connection on the specified TCP\n port for security reason)\n\nTo open LibreOffice with socket open, use the command line below:\n\n::\n\n libreoffice \\\n --accept=\"socket,host=localhost,port=2002;urp;StarOffice.ServiceManager\"\n\nINSTALL for TESTING\n-------------------\n\n- On Ubuntu 14.04\n\n- install python3-uno as a system-wide package as this package is not\n available via pip:\n\n ``$ sudo apt-get install python3-uno``\n\n- create virtualenv (probably, with virtualenvwrapper) with\n ``--system-site-pacakges``:\n\n ``$ mkvirtualenv --system-site-packages invrcptexporter``\n\n- install required packages from pip:\n\n ``$ pip install -r requirements-test.txt``\n\n- install poppler-utils from apt as we have to use pdftotext in our\n tests:\n\n ``$ sudo apt-get install poppler-utils``\n\n I have tried a few other alternatives such as extractText() from\n PyPDF2, it doesn't work for many cases\n\n- configure ``~/.invrcptexporterrc``:\n\n ``$ cd ~ $ cp /your/project/path/source/invrcptexporterrc .invrcptexporterrc``\n\n adjust settings in this rc file, the most important one is\n SCRIPT\\_PATH which is the absolute path to 'source' directory\n\n- run the test:\n\n ``$ /your/project/path/source/test.sh``\n\n notes: test.sh is a hack (you can see details from comments inside\n test.sh ), each time you run it, you have to manually close (exit or\n ctrl+q) the opened libreoffice ui so that the test will continue to\n run\n\nINSTALL for USER\n----------------\n\n- install python3-uno as a system-wide package as this package is not\n available via pip:\n\n ``$ sudo apt-get install python3-uno``\n\n- install invrcptexporter from pip:\n\n ``$ pip3 install invrcptexporter``\n\n- use /sample\\_invoice\\_list.ods as the template\n\n- the program is currently shipped as a library only, please see sample\n codes for how to use it from:\n ``/source/sample-code/invrcptexporter/``\n\n\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/pchaitat/invrcptexporter", "keywords": "libreoffice libreoffice-calc python python-uno invoice-generator", "license": "GPL-3.0", "maintainer": "", "maintainer_email": "", "name": "invrcptexporter", "package_url": "https://pypi.org/project/invrcptexporter/", "platform": "", "project_url": "https://pypi.org/project/invrcptexporter/", "project_urls": { "Homepage": "https://github.com/pchaitat/invrcptexporter" }, "release_url": "https://pypi.org/project/invrcptexporter/0.3.1/", "requires_dist": null, "requires_python": "", "summary": "a tool to export invoice and receipt fromlibreoffice calc into pdf file", "version": "0.3.1" }, "last_serial": 2885013, "releases": { "0.3": [ { "comment_text": "", "digests": { "md5": "4999fb4b3128c6ef8f17a424312ab4e0", "sha256": "73821d94d13ae090a86fcc426dccd0f85ecd467ea8dc5e02ca0c1bb490dec285" }, "downloads": -1, "filename": "invrcptexporter-0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "4999fb4b3128c6ef8f17a424312ab4e0", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6036, "upload_time": "2017-05-17T20:40:13", "url": "https://files.pythonhosted.org/packages/90/e6/440216fc7cf2cbb74feec351d55989e13e5a5d88ff2e906cd8f5ab23e062/invrcptexporter-0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e98c45c3d3ad236da4c1fa80ea77835c", "sha256": "828ec7b9ce2f80b506ab95c898488f70aef0967ec5075e942e5e8f52a9ac7a85" }, "downloads": -1, "filename": "invrcptexporter-0.3.tar.gz", "has_sig": false, "md5_digest": "e98c45c3d3ad236da4c1fa80ea77835c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17884, "upload_time": "2017-05-17T20:40:16", "url": "https://files.pythonhosted.org/packages/8c/a8/30fc1cf32d85ed22754d4b7129c4bec79d56d3207a44ded214508052bc00/invrcptexporter-0.3.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "3e3a7b59a56280eb38f82a6ec19601cc", "sha256": "11ecbec689adf25e7f7f7667f92609cc643fa2602f17287766a0dbc1c5dacb0c" }, "downloads": -1, "filename": "invrcptexporter-0.3.1-py3-none-any.whl", "has_sig": false, "md5_digest": "3e3a7b59a56280eb38f82a6ec19601cc", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6121, "upload_time": "2017-05-19T07:19:33", "url": "https://files.pythonhosted.org/packages/0f/d0/d99cba5fb281761f83297afa378092763fedeadc8e6db3bfde09d1a35bef/invrcptexporter-0.3.1-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3e3a7b59a56280eb38f82a6ec19601cc", "sha256": "11ecbec689adf25e7f7f7667f92609cc643fa2602f17287766a0dbc1c5dacb0c" }, "downloads": -1, "filename": "invrcptexporter-0.3.1-py3-none-any.whl", "has_sig": false, "md5_digest": "3e3a7b59a56280eb38f82a6ec19601cc", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6121, "upload_time": "2017-05-19T07:19:33", "url": "https://files.pythonhosted.org/packages/0f/d0/d99cba5fb281761f83297afa378092763fedeadc8e6db3bfde09d1a35bef/invrcptexporter-0.3.1-py3-none-any.whl" } ] }