{ "info": { "author": "Ted Tibbetts", "author_email": "intuited@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Basic", "Programming Language :: Python", "Programming Language :: Python :: 2", "Topic :: Office/Business :: Office Suites", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Utilities" ], "description": "``ooo-macro-exchange``\n======================\n\nRoutines and CLI to facilitate injection/extraction of OpenOffice.org macros.\n\nWorks by connecting to a live instance of OOo.\n\nIt does not appear to be possible to use such a system to access Python macros\nin an OpenOffice document. This module only deals with Basic macros.\n\nThere has also been some effort made to \"Pythonify\" the uno interface,\nfor example, by adding sequence and mapping proxy classes\nfor some of the uno container interfaces.\n\n\nDependencies\n------------\n\nYou will need to have the py-uno bridge set up.\n\nOn Debian-ish systems like Ubuntu and Linux Mint,\nthis can generally be installed via ::\n\n $ sudo aptitude install python-uno\n\n\nInstallation\n------------\n\nInstallation can be done via `PyPI`_,\nor by fetching and installing the source code from the `github repo`_.\n\n.. _PyPI: http://pypi.python.org/ooo-macro-exchange\n.. _github repo: http://github.com/intuited/ooo-macro-exchange\n\n\nEnvironment\n-----------\n\nThe ``uno`` Python module will normally be imported without problems\non systems which have the ``python-uno`` module properly installed.\n\nIf the ``uno`` Python module cannot be imported,\n``ooo-macro-exchange`` will try to add it to the path.\n\nIf the environment variable ``PY_UNO_PATH`` is defined,\n``ooo-macro-exchange`` will add it to the python path.\n\nThis can also be accomplished by setting ``PYTHONPATH``.\n\nIf ``PY_UNO_PATH`` is unset,\n``ooo-macro-exchange`` will try the path\n``/usr/lib/openoffice/basis3.2/program/``.\n\n\nUsage\n-----\n\nBasic functions are\n\n- ``pull``: output a module's code or save it to a file\n- ``push``: replace a module's code with lines from a file or stdin\n- ``invoke``: run a macro.\n\nThe ``oomax`` script provides command-line access to these actions. E.G.::\n\n $ oomax pull 'Document 1' Standard.Module1\n sub Main()\n ' Content of main macro\n end sub\n\n sub AnotherMacro()\n ' Content of some other macro\n end sub\n\nNote that ``oomax push`` will not save the document\nunless the ``-s`` option is passed.\nInstead, it will mark both the document and its libraries as modified.\nThis will cause the \"Save\" icon on the main document toolbar to activate.\n\nAdditional options can be discovered by running ``oomax -h``.\n\n`pull`, `push`, and `invoke` are also available as methods\nof the class `oomax.Exchange`.\n\n\nRelationship to other modules\n-----------------------------\n\nThe structure of the code is pretty similar\nto that used by `openoffice-python`_.\nThere are vague plans to integrate this module's functionality with it.\n\nThe code in this module was originally derived from this `forum post`_.\n\n.. _openoffice-python: http://pypi.python.org/pypi/openoffice-python/\n.. _forum post: http://www.oooforum.org/forum/viewtopic.phtml?t=94349#356461\n\n\nLicense\n-------\n\n``ooo-macro-exchange`` is licensed under the `FreeBSD License`_.\nSee the file COPYING for details.\n\n.. _FreeBSD License: http://www.freebsd.org/copyright/freebsd-license.html", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/intuited/ooo-macro-exchange", "keywords": "ooo,openoffice,openoffice.org,macro,basic,starbasic,oobasic,uno", "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "ooo-macro-exchange", "package_url": "https://pypi.org/project/ooo-macro-exchange/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/ooo-macro-exchange/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/intuited/ooo-macro-exchange" }, "release_url": "https://pypi.org/project/ooo-macro-exchange/0.2.2/", "requires_dist": null, "requires_python": null, "summary": "Routines and CLI to facilitate injection/extraction of OpenOffice.org macros.", "version": "0.2.2" }, "last_serial": 795728, "releases": { "0.2": [ { "comment_text": "", "digests": { "md5": "dc7126504134a0691894124af5e79e6f", "sha256": "512c23537b820c1973f6e79c9fd481abc14eb98ca02f2edb4464cc556e541028" }, "downloads": -1, "filename": "ooo-macro-exchange-0.2.tar.gz", "has_sig": false, "md5_digest": "dc7126504134a0691894124af5e79e6f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8799, "upload_time": "2010-10-23T08:36:10", "url": "https://files.pythonhosted.org/packages/18/3a/d8ba23bca0e7f865330df71e1dc80e3cf315a982d0e3018b115d4afedb48/ooo-macro-exchange-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "3aa04984e312ae26c9f8c44e548e8ce4", "sha256": "cdcee4d28363eb127d834506c04fd92450f8462c50702d2d8656b703ca2d1be6" }, "downloads": -1, "filename": "ooo-macro-exchange-0.2.1.tar.gz", "has_sig": false, "md5_digest": "3aa04984e312ae26c9f8c44e548e8ce4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8808, "upload_time": "2010-10-23T08:40:41", "url": "https://files.pythonhosted.org/packages/9c/35/c4d405bde0ed2cffb39b4f5d4df20f020eef013be9d71541a9f4cb6c3033/ooo-macro-exchange-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "1825ffa8b7fa959b67b4ea7bc1ed7e65", "sha256": "1e5d992d4a308bee8ff9449591fec6f9e4324bccfa07536932c21603bc918f23" }, "downloads": -1, "filename": "ooo-macro-exchange-0.2.2.tar.gz", "has_sig": false, "md5_digest": "1825ffa8b7fa959b67b4ea7bc1ed7e65", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10010, "upload_time": "2010-10-25T06:25:17", "url": "https://files.pythonhosted.org/packages/73/a1/4924e0d7f85e8e69ebbca2be1888a0566f97b180f13bca6d63d6d9ab987a/ooo-macro-exchange-0.2.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1825ffa8b7fa959b67b4ea7bc1ed7e65", "sha256": "1e5d992d4a308bee8ff9449591fec6f9e4324bccfa07536932c21603bc918f23" }, "downloads": -1, "filename": "ooo-macro-exchange-0.2.2.tar.gz", "has_sig": false, "md5_digest": "1825ffa8b7fa959b67b4ea7bc1ed7e65", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10010, "upload_time": "2010-10-25T06:25:17", "url": "https://files.pythonhosted.org/packages/73/a1/4924e0d7f85e8e69ebbca2be1888a0566f97b180f13bca6d63d6d9ab987a/ooo-macro-exchange-0.2.2.tar.gz" } ] }