{ "info": { "author": "Titusz", "author_email": "tp@py7.de", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Topic :: Desktop Environment :: File Managers", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: System :: Filesystems", "Topic :: Utilities" ], "description": "==========================================\nPy7File - Simple file handling with python\n==========================================\n\n*Py7File wraps and unifies the python stdlib file handling modules with a simple\nand intuitive high-level api.*\n\n- **Think:** os.path, shutil etc. via object based method access.\n- **Author:** *Titusz *\n- **PyPi:** http://pypi.python.org/pypi/py7file\n- **Source Code**: http://github.com/titusz/py7file\n- **License**: BSD\n\nInstallation\n------------\n\nUse easy_install or pip::\n\n pip install py7file\n\n\nUsage\n-----\nHere some hopefully self explaining examples of Py7File usage::\n\n from py7file import Py7File\n\n the_file = Py7File('a_file.txt')\n\n # Copy and Move\n copied_file = the_file.copy('d_file.txt') # copied_file is also a Py7file\n the_file.move('moved_file.txt') # moves the file and mutates the reference\n\n # Backup and Restore\n the_file.backup() # creates a_file_backup_001.txt\n the_file.backup() # creates a_file_backup_002.txt\n the_file.delete() # removes a_file.txt from disk (ups...)\n the_file.restore() # recovers file from a_file_backup_002.txt\n\n # Unzip and Rezip\n zfile = Py7File('a_file.zip')\n zfile.unzip() # creates a folder a_file_unzipped with contents of zipfile\n zfile.rezip() # repackages subfolder a_file_unzipped to a_file.zip\n \nSee test_py7file.py for more examples.\n\nTesting\n-------\nPy7File is tested against python 2.6 and 2.7\n\nTo run the tests::\n\n python test_py7file.py\n\nStatus\n------\nWell I am using this this file handling library quite extensivly myself and\ni got no complaints so far ;). Still please consider this Beta and\nuse at your own risk...\n\nBackground\n----------\nAs I started learning programming with python I found the different modules for\nhandling files very confusing and cumbersome to use. While writing my first\nscripts I found myself writing os.path.join(...) way to often. I still\nkeep mixing up os and shutil based file operations like copy, move, rename.\nSo I started this little module to make things easier...\n\nNews\n====\n\n0.7.4\n-----\n\n* fixed get_md5 to use internal filepath\n\n0.7.3\n-----\n\n* .unzip() can now handle gzipped files transparently\n* .unzip() now returns a list containing all extracted files as Py7File objects\n* fixed filepath encoding\n\n0.7.2\n-----\n\n*Release date: 15-August-2011*\n\n* Added get_number() method for convenient work with numbered files.\n\n0.7.1\n-----\n\n*Release date: 24-July-2011*\n\n* fixed setup.py\n\n0.7\n-----\n\n*Release date: 17-July-2011*\n\n* added new get_sanitized_filename method\n\n0.6\n-----\n\n*Release date: 21-May-2011*\n\n* new EpubFile class that suports epub packaging\n* enhancements for Py7File subclassing\n\n0.5.1\n-----\n\n*Release date: 10-May-2011*\n\n* basic read method added\n* improved file comparison\n\n0.5\n---\n\n*Release date: 09-May-2011*\n\n* fixed filepath property to always give absolute path\n\n0.4\n---\n\n*Release date: 08-May-2011*\n\n* fixed to work with files that have no extension\n* fixed getsize test not returning long on osx\n* added md5 based file comparison\n* .is_binary() detects if file is binary or \"text\"\n\n0.2\n---\n\n*Release date: 08-May-2011*\n\n* Fixed for tests on OSX\n\n0.1\n---\n\n*Release date: 08-May-2011*\n\n* Initial release", "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/titusz/py7file", "keywords": "file copy move backup unzip open os.path shutil wrapper api epub", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "py7file", "package_url": "https://pypi.org/project/py7file/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/py7file/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/titusz/py7file" }, "release_url": "https://pypi.org/project/py7file/0.7.4/", "requires_dist": null, "requires_python": null, "summary": "Convenient File Handling Library", "version": "0.7.4" }, "last_serial": 796883, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "14aef985555fa9f3e33335c5d0001901", "sha256": "3aa30c01eec47508d2922b9724e02d126d07c56556d4506f43361d3432b3da5b" }, "downloads": -1, "filename": "py7file-0.1.zip", "has_sig": false, "md5_digest": "14aef985555fa9f3e33335c5d0001901", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5446, "upload_time": "2011-05-08T02:06:49", "url": "https://files.pythonhosted.org/packages/80/e1/72a3e061574496792fd8ce24b6b6648b33ca32812f68ad06f4921ac89948/py7file-0.1.zip" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "3fd914ca02282ca248c2b263301e7420", "sha256": "152d3711dcfba5610e207d17fd3a62d75963a06f9ff4321a3d6bdf5048f41def" }, "downloads": -1, "filename": "py7file-0.2.tar.gz", "has_sig": false, "md5_digest": "3fd914ca02282ca248c2b263301e7420", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2236, "upload_time": "2011-05-08T03:50:20", "url": "https://files.pythonhosted.org/packages/c7/f0/db2037c0961d474948807023c27e9cb2d9c81971c1b90abdafdc9685d7f4/py7file-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "1e10e44c4531e1cd1cd995224b6bcc47", "sha256": "839f55f5742337a6efc63533e88002216410119a1e721086b0d911e64cca8ba0" }, "downloads": -1, "filename": "py7file-0.3.zip", "has_sig": false, "md5_digest": "1e10e44c4531e1cd1cd995224b6bcc47", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5599, "upload_time": "2011-05-08T13:52:42", "url": "https://files.pythonhosted.org/packages/45/cd/6e7e0a46e1b71b68656eb345e8a89bd445ac678953b648063aa5b26f287e/py7file-0.3.zip" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "401e260bb3cd6022d51319ccda071853", "sha256": "20580c9219845e5f63c336b043471028af2641ffdff26815fbc7c7af94622c8e" }, "downloads": -1, "filename": "py7file-0.4.zip", "has_sig": false, "md5_digest": "401e260bb3cd6022d51319ccda071853", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5616, "upload_time": "2011-05-08T18:52:53", "url": "https://files.pythonhosted.org/packages/83/35/dddd13c4be4886acfb6a91d75da7ddea89f837ca3574ca1fab8487535a38/py7file-0.4.zip" } ], "0.5.1": [ { "comment_text": "", "digests": { "md5": "8f588b94bf2adb31eb731ed97efc9f52", "sha256": "9c63f907ebce5fa3ad80233a241665edc4751f5450854de2ac181cfcf6e529d1" }, "downloads": -1, "filename": "py7file-0.5.1.tar.gz", "has_sig": false, "md5_digest": "8f588b94bf2adb31eb731ed97efc9f52", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2634, "upload_time": "2011-05-10T21:58:17", "url": "https://files.pythonhosted.org/packages/b9/59/43d62aa2621557fe8be82559a3d381fc7808669059478ff14e4734e124b0/py7file-0.5.1.tar.gz" }, { "comment_text": "", "digests": { "md5": "306d52f23f850286d47701ee9b30f3e5", "sha256": "215be7fb0406930effce486db267a057d23e377565cbebee868171fe54430140" }, "downloads": -1, "filename": "py7file-0.5.1.zip", "has_sig": false, "md5_digest": "306d52f23f850286d47701ee9b30f3e5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6237, "upload_time": "2011-05-10T21:58:17", "url": "https://files.pythonhosted.org/packages/42/af/d3482f11205c786f28f807105eee6034a0eca87f78390c633e1a51ab22c2/py7file-0.5.1.zip" } ], "0.6": [ { "comment_text": "", "digests": { "md5": "33aa1489c113e52addd94a45d4e02701", "sha256": "56e19608dee77db684d4c5c4c461dbab4c91fce247b5f1eb392b84b19fa7b02f" }, "downloads": -1, "filename": "py7file-0.6.tar.gz", "has_sig": false, "md5_digest": "33aa1489c113e52addd94a45d4e02701", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2781, "upload_time": "2011-05-21T18:29:23", "url": "https://files.pythonhosted.org/packages/a1/64/107512380609aabe3640b3a6b8cedbb629cc13d5ed38df5238ee629d102b/py7file-0.6.tar.gz" }, { "comment_text": "", "digests": { "md5": "b1d83596fa80ebb28b822c6409d9ee17", "sha256": "7cc2c3b17ceb65086bf1a01bb8ddfff233ae44f567736d7b35a9b16c23cacfd2" }, "downloads": -1, "filename": "py7file-0.6.zip", "has_sig": false, "md5_digest": "b1d83596fa80ebb28b822c6409d9ee17", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6539, "upload_time": "2011-05-21T18:29:24", "url": "https://files.pythonhosted.org/packages/ca/42/4c43f4988c29e7f744896f7d1fa457ec4d04d739ad573c7cb9daa8410af8/py7file-0.6.zip" } ], "0.7": [ { "comment_text": "", "digests": { "md5": "62078cb7dac017d145edeb4695062622", "sha256": "b84a3f34c6b98739ea3ce54ac4d074b7b5b425910177b728678ff15fa9450726" }, "downloads": -1, "filename": "py7file-0.7.tar.gz", "has_sig": false, "md5_digest": "62078cb7dac017d145edeb4695062622", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2817, "upload_time": "2011-07-17T13:22:41", "url": "https://files.pythonhosted.org/packages/91/b2/5928d69280a562980b9d557e939ad3e92d3856e9982d03fe5844d101a428/py7file-0.7.tar.gz" }, { "comment_text": "", "digests": { "md5": "6bc3c9ae70357302040cb7233e5261fc", "sha256": "b69570606ac9a4c4da3e157843e35267e64481535cecf68d22e5e1ae9383d05a" }, "downloads": -1, "filename": "py7file-0.7.zip", "has_sig": false, "md5_digest": "6bc3c9ae70357302040cb7233e5261fc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6626, "upload_time": "2011-07-17T13:22:42", "url": "https://files.pythonhosted.org/packages/5d/a2/5176d1c6b5250a96ecda803e7e8ea691ff77864242fa97da9a0b2808a6e5/py7file-0.7.zip" } ], "0.7.1": [ { "comment_text": "", "digests": { "md5": "138cab14cd37ba043a43b97d4cee2394", "sha256": "a39c6121b600343d3f16d938c6876dafd158e27f95b20960dac954b1002e8d39" }, "downloads": -1, "filename": "py7file-0.7.1.tar.gz", "has_sig": false, "md5_digest": "138cab14cd37ba043a43b97d4cee2394", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5857, "upload_time": "2011-07-24T20:36:55", "url": "https://files.pythonhosted.org/packages/6b/c7/0907c7b85d922c43411451f3a3076a70faeb2bf18f2c30237fc420001c32/py7file-0.7.1.tar.gz" }, { "comment_text": "", "digests": { "md5": "7d2ad8abd8a646296b2d2fb38943814d", "sha256": "e9922c494672ec060509a497eca2ef9f7551b5cbd98808ea88d8fd7081abbfea" }, "downloads": -1, "filename": "py7file-0.7.1.zip", "has_sig": false, "md5_digest": "7d2ad8abd8a646296b2d2fb38943814d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9990, "upload_time": "2011-07-24T20:36:56", "url": "https://files.pythonhosted.org/packages/c5/55/8dc5e385608db55fb4884132ae2c14b7c7944fe5385fe8f79c396aa9f653/py7file-0.7.1.zip" } ], "0.7.2": [ { "comment_text": "", "digests": { "md5": "d34de3f3869028f386d259f4e5ffcf12", "sha256": "5f65e361407d2d7f8a1823026336b36f671d4a25280c47870ff87007e9d1bf3b" }, "downloads": -1, "filename": "py7file-0.7.2.tar.gz", "has_sig": false, "md5_digest": "d34de3f3869028f386d259f4e5ffcf12", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6074, "upload_time": "2011-08-15T10:24:10", "url": "https://files.pythonhosted.org/packages/f7/f3/ba107f9d8f3f3444d3d3222964f8dd07be59acf08f1d5b20bc8b48193402/py7file-0.7.2.tar.gz" }, { "comment_text": "", "digests": { "md5": "fdbf3f1d567c3e31d14dcbef9a4dc95c", "sha256": "fc5511431fdf274eba4341d0e8dc92b9f21b3f2d4fc4a566beeaf8f400ca16be" }, "downloads": -1, "filename": "py7file-0.7.2.zip", "has_sig": false, "md5_digest": "fdbf3f1d567c3e31d14dcbef9a4dc95c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10414, "upload_time": "2011-08-15T10:24:11", "url": "https://files.pythonhosted.org/packages/15/46/ff1cc26bffb356b1bc89957a5ef3c709ad2b3765ee26061b4abfb0c10158/py7file-0.7.2.zip" } ], "0.7.3": [ { "comment_text": "", "digests": { "md5": "61d8d6e1edd1859753894b93718d4882", "sha256": "9cc6816a4e5ca4ae5cbd186f04c4f80d8f3a2cf56e7da2d7cefe4c5023737920" }, "downloads": -1, "filename": "py7file-0.7.3.tar.gz", "has_sig": false, "md5_digest": "61d8d6e1edd1859753894b93718d4882", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6472, "upload_time": "2011-11-20T00:04:10", "url": "https://files.pythonhosted.org/packages/59/a7/27cd607dab96b157dbd5836668b385c8949131ef5efacfd0f6d8faf2184b/py7file-0.7.3.tar.gz" }, { "comment_text": "", "digests": { "md5": "66349aeb7efb3f67671dad1ef329ea47", "sha256": "f3dc6d7976b47abb34747719c6dedc350fa4d69897134a2737ffad63299cf4f0" }, "downloads": -1, "filename": "py7file-0.7.3.zip", "has_sig": false, "md5_digest": "66349aeb7efb3f67671dad1ef329ea47", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10979, "upload_time": "2011-11-20T00:04:11", "url": "https://files.pythonhosted.org/packages/ba/ff/2ac71e4d814475d24b5baf7ec09a463d6f396747b879b961b907363eaeed/py7file-0.7.3.zip" } ], "0.7.4": [ { "comment_text": "", "digests": { "md5": "3e87d5412a3bd3083477de135ebbce6e", "sha256": "6537d78732492163489f739bbab09c9375de47d6d717df11bf05f9990ac02225" }, "downloads": -1, "filename": "py7file-0.7.4.tar.gz", "has_sig": false, "md5_digest": "3e87d5412a3bd3083477de135ebbce6e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6503, "upload_time": "2011-11-20T00:25:24", "url": "https://files.pythonhosted.org/packages/2a/77/626bbb7aa801593359dac09f0be53d41860b1876a52f4ce6c1e179f4a46d/py7file-0.7.4.tar.gz" }, { "comment_text": "", "digests": { "md5": "3418daba563ca21b5fcc7b5425e4b971", "sha256": "57414e403c759b2286bf07c5825bcb75f7c611ee1cd0dcaf9898e92d935b256d" }, "downloads": -1, "filename": "py7file-0.7.4.zip", "has_sig": false, "md5_digest": "3418daba563ca21b5fcc7b5425e4b971", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11040, "upload_time": "2011-11-20T00:25:24", "url": "https://files.pythonhosted.org/packages/51/40/9e5ff86fc793c0bbc8f53e02654556d4f3762bdc367c4548b66b6d80ac53/py7file-0.7.4.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3e87d5412a3bd3083477de135ebbce6e", "sha256": "6537d78732492163489f739bbab09c9375de47d6d717df11bf05f9990ac02225" }, "downloads": -1, "filename": "py7file-0.7.4.tar.gz", "has_sig": false, "md5_digest": "3e87d5412a3bd3083477de135ebbce6e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6503, "upload_time": "2011-11-20T00:25:24", "url": "https://files.pythonhosted.org/packages/2a/77/626bbb7aa801593359dac09f0be53d41860b1876a52f4ce6c1e179f4a46d/py7file-0.7.4.tar.gz" }, { "comment_text": "", "digests": { "md5": "3418daba563ca21b5fcc7b5425e4b971", "sha256": "57414e403c759b2286bf07c5825bcb75f7c611ee1cd0dcaf9898e92d935b256d" }, "downloads": -1, "filename": "py7file-0.7.4.zip", "has_sig": false, "md5_digest": "3418daba563ca21b5fcc7b5425e4b971", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11040, "upload_time": "2011-11-20T00:25:24", "url": "https://files.pythonhosted.org/packages/51/40/9e5ff86fc793c0bbc8f53e02654556d4f3762bdc367c4548b66b6d80ac53/py7file-0.7.4.zip" } ] }