{ "info": { "author": "Arnaud Grausem", "author_email": "arnaud.grausem@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python :: 3.2", "Topic :: Software Development :: Libraries", "Topic :: Text Processing" ], "description": "========\nPyromarc\n========\n\n.. image:: https://secure.travis-ci.org/agrausem/pyromarc.png?branch=master\n :target: https://travis-ci.org/agrausem/pyromarc\n\n.. image:: https://coveralls.io/repos/agrausem/pyromarc/badge.png?branch=master\n :target: https://coveralls.io/r/agrausem/pyromarc?branch=master\n\nMARC::MIR est une sp\u00e9cification de repr\u00e9sentation m\u00e9moire (sous la forme de\ntableau de tableaux) de donn\u00e9es bibliographiques catalogu\u00e9e en MARC. elle\npermet d'\u00e9tablir des ponts simples entre les diff\u00e9rents outils exitants de\ntraitement, s\u00e9rialisation, indexation, ...\n\nInstall\n=======\n\nPyromarc is only working under *Python 3.2* for the moment. To install the module, use pip :: \n\n $> pip install pyromarc\n\n\nReading\n=======\n\nISO2709\n-------\n\nLoad MIRs from ISO2709 ::\n\n from pyromarc import reader\n\n mirs = reader('/path/to/records.iso2709', 'ISO2709')\n for mir in mirs:\n do_something_with(mir)\n\nOr, with a filehandler ::\n\n from pyromarc import readerb\n\n with open('/path/to/records/example.iso2709', 'rb') as filehandler:\n mirs = readerb(filehandler, 'ISO2709')\n for mir in mirs:\n do_something_with(mir)\n\n\nMsgpack\n-------\n\nLoad MIRs from stdin ::\n\n import sys\n from pyromarc import readerb\n\n mirs = readerb(sys.stdin, 'MsgPack')\n for mir in mirs:\n do_something_with(mir)\n\n\nWriting\n=======\n\nISO2709\n-------\n\nWrite MIRs in file ::\n\n from pyromarc import writer\n\n [...]\n writer('/path/to/records.iso2709', mirs, 'ISO2709')\n\nWriting ISO2709 records in JSON ::\n\n from pyromarc import reader, writer\n\n mirs = reader('/path/to/records.iso2709', 'ISO2709')\n writer('/path/to/records.json', mirs, 'Json')\n\n\nMsgPack\n-------\n\nWriting on stdout ::\n\n import sys\n from pyromarc import writerb\n\n [...]\n writerb(sys.stdout, mirs, 'MsgPack')", "description_content_type": null, "docs_url": null, "download_url": "http://pypi.python.org/pypi/pyromarc", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/agrausem/pyromarc", "keywords": "MARC,ISO2709,msgpack,MIR,MARC:MIR", "license": "PSF", "maintainer": null, "maintainer_email": null, "name": "pyromarc", "package_url": "https://pypi.org/project/pyromarc/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pyromarc/", "project_urls": { "Download": "http://pypi.python.org/pypi/pyromarc", "Homepage": "https://github.com/agrausem/pyromarc" }, "release_url": "https://pypi.org/project/pyromarc/0.2/", "requires_dist": null, "requires_python": null, "summary": "Python implementation of MARC:MIR", "version": "0.2" }, "last_serial": 917512, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "370a8abfdf6b5fe0b3ec0af6ac138d23", "sha256": "924890739eb0014c29a9bd3c1fd58b6a67005386a2763da315d8c59875f0cd78" }, "downloads": -1, "filename": "pyromarc-0.1.tar.gz", "has_sig": false, "md5_digest": "370a8abfdf6b5fe0b3ec0af6ac138d23", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4352, "upload_time": "2013-11-08T10:35:22", "url": "https://files.pythonhosted.org/packages/d9/df/f3afcb49c2e6c5ba932314cf2d81bd293780d1e91caf50e7f77548932f6d/pyromarc-0.1.tar.gz" } ], "0.2": [] }, "urls": [] }