{ "info": { "author": "Matias Bordese", "author_email": "mbordese@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "python-unrar\n============\n\nWork with RAR archive files through unrar library using ctypes.\n\n[![Build Status](https://travis-ci.org/matiasb/python-unrar.png?branch=master)](https://travis-ci.org/matiasb/python-unrar)\n\n\nInstall UnRAR library\n---------------------\n\npython-unrar requires UnRAR library. You can download UnRAR library sources from:\n\n http://www.rarlab.com/rar_add.htm\n\nand compile (you may need to rename the makefile that you want to use according to your OS) and install it from there:\n\n $ make lib\n $ make install-lib\n\n(latest tested sources: http://www.rarlab.com/rar/unrarsrc-5.2.6.tar.gz)\n\nFor Windows you can also download the already compiled library (http://www.rarlab.com/rar/UnRARDLL.exe).\n\nIf you prefer not to install the library, you should make it \"findable\" by adding the library file to a directory where libraries are searched (or change required environment variable).\n\nAs an alternative, you can also set UNRAR_LIB_PATH variable in your environment to the library path and python-unrar will try to load the UnRAR library from there.\n\n\nTesting without installing\n--------------------------\n\nYou can build from source with:\n\n $ python setup.py build\n\nAnd then run a Python shell with unrar available:\n\n $ PYTHONPATH=`pwd`/build/lib python\n\nOr you could also directly add the `unrar` directory from this repo to your `PYTHONPATH`. In any case you will still need to make the unrar library available as mentioned above.\n\nInstall python-unrar\n--------------------\n\nTo install python-unrar:\n\n $ pip install unrar\n\n\nExamples\n--------\n\n >>> from unrar import rarfile\n >>> rar = rarfile.RarFile('sample.rar')\n >>> rar.namelist()\n [u'test_file.txt']\n >>> rar.printdir()\n File Name Modified Size\n test_file.txt 2013-04-14 08:20:28 17\n >>> rar.testrar()\n >>> info = rar.infolist()[0]\n >>> info.filename\n u'test_file.txt'\n >>> info.file_size\n 17L\n >>> info.date_time\n (2013L, 4L, 14L, 8L, 20L, 28L)\n >>> rar.extractall()\n >>> rar.read('test_file.txt')\n 'This is for test.'\n\n\nDocs\n----\n\nCheck full documentation in http://python-unrar.readthedocs.org.\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/matiasb/python-unrar", "keywords": "unrar,ctypes,rar", "license": "GPL-3", "maintainer": "", "maintainer_email": "", "name": "unrar", "package_url": "https://pypi.org/project/unrar/", "platform": "", "project_url": "https://pypi.org/project/unrar/", "project_urls": { "Homepage": "http://github.com/matiasb/python-unrar" }, "release_url": "https://pypi.org/project/unrar/0.4/", "requires_dist": null, "requires_python": "", "summary": "Wrapper for UnRAR library, ctypes-based.", "version": "0.4" }, "last_serial": 5800094, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "62fdd6ee71e2224fc29a8a7f337af971", "sha256": "8c7c3cc13c616fbdfbcd3eb2a501e573df1e75479485882d5c5081a906f9536a" }, "downloads": -1, "filename": "unrar-0.1.tar.gz", "has_sig": false, "md5_digest": "62fdd6ee71e2224fc29a8a7f337af971", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20397, "upload_time": "2013-04-15T00:31:29", "url": "https://files.pythonhosted.org/packages/36/ab/d626d0102ab2a7c7a533b9d97ad3c696578fae79e7a7c304ec14d5f9011a/unrar-0.1.tar.gz" }, { "comment_text": "", "digests": { "md5": "be90c876cc5d6af770e362985f75bfda", "sha256": "2a3aab2b051bc6ac62752105e34e875464e68d5cd9673778627865c4a0cb4e2b" }, "downloads": -1, "filename": "unrar-0.2.tar.gz", "has_sig": false, "md5_digest": "be90c876cc5d6af770e362985f75bfda", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 33400, "upload_time": "2013-08-23T21:21:20", "url": "https://files.pythonhosted.org/packages/24/c8/2d83a57d68ae72323e248474adc6785fad9716c22946112c3a5108fba760/unrar-0.2.tar.gz" } ], "0.2": [], "0.3": [ { "comment_text": "", "digests": { "md5": "3d5823313dbdcdcbd90b64f8df8c944e", "sha256": "867ef0bd196c54daadf480adae7942dda8d3d95a8e440c9c43cc509af36d950d" }, "downloads": -1, "filename": "unrar-0.3.tar.gz", "has_sig": false, "md5_digest": "3d5823313dbdcdcbd90b64f8df8c944e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 33945, "upload_time": "2015-02-17T21:27:57", "url": "https://files.pythonhosted.org/packages/bc/cb/2e9dcc0632ea96c3618b47d30ec1d8bcb55e0f45137690c9f2dae4ece762/unrar-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "1a7301a7f9238a200941f8139fd18be5", "sha256": "0ce03e28bfa90415ee1a92c8d38cad8ea244427a59a8a39c0d42bac8727cfaa0" }, "downloads": -1, "filename": "unrar-0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "1a7301a7f9238a200941f8139fd18be5", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 25273, "upload_time": "2019-09-08T18:20:19", "url": "https://files.pythonhosted.org/packages/bb/0b/53130ccd483e3db8c8a460cb579bdb21b458d5494d67a261e1a5b273fbb9/unrar-0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6d78245a417fb97e48029fefc8b41eec", "sha256": "b24447a5b93024be600ef8255668ba23a30f451176577b691559ea1359f7d164" }, "downloads": -1, "filename": "unrar-0.4.tar.gz", "has_sig": false, "md5_digest": "6d78245a417fb97e48029fefc8b41eec", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 36685, "upload_time": "2019-09-08T18:20:21", "url": "https://files.pythonhosted.org/packages/ea/d6/b53a4216d73a10602f524cf728c3c272b2e1f524b62f46589303225564c0/unrar-0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1a7301a7f9238a200941f8139fd18be5", "sha256": "0ce03e28bfa90415ee1a92c8d38cad8ea244427a59a8a39c0d42bac8727cfaa0" }, "downloads": -1, "filename": "unrar-0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "1a7301a7f9238a200941f8139fd18be5", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 25273, "upload_time": "2019-09-08T18:20:19", "url": "https://files.pythonhosted.org/packages/bb/0b/53130ccd483e3db8c8a460cb579bdb21b458d5494d67a261e1a5b273fbb9/unrar-0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6d78245a417fb97e48029fefc8b41eec", "sha256": "b24447a5b93024be600ef8255668ba23a30f451176577b691559ea1359f7d164" }, "downloads": -1, "filename": "unrar-0.4.tar.gz", "has_sig": false, "md5_digest": "6d78245a417fb97e48029fefc8b41eec", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 36685, "upload_time": "2019-09-08T18:20:21", "url": "https://files.pythonhosted.org/packages/ea/d6/b53a4216d73a10602f524cf728c3c272b2e1f524b62f46589303225564c0/unrar-0.4.tar.gz" } ] }