Package: oopen
Object-Oriented file and path handling.The std lib file and path options aren’t very pythonic.I should be able to perform basic tasks directly on the file.Status: In development.License: MITSemantic VersioningI will commit to not breaking the public API within major versions.DonationsIf you would like to support it’s author, you may do so viagittip.
Thanks for your support!Example usage:>>> from oopen import OOpen
>>> oofile = OOpen('example_file.py')Retrieve and set the name of a file:>>> oofile.name
'example_file.py'
>>> oofile.path
'/Users/ajhekman/Projects/oopen/oopen/example_file.py'
>>> oofile.name = 'test.txt'
>>> oofile.path
'/Users/ajhekman/Projects/oopen/oopen/test.txt'  # << note the changed filename
>>> oofile.location
'/Users/ajhekman/Projects/oopen/oopen/'Retrieve other file information:>>> oofile.sha1 # all of the hashes within hashlib are supported (md5 to sha 512)
'e90296612f91b8adf498884b20c8356113c83a73'
>>> oofile.modified_time
datetime.datetime(2013, 1, 14, 9, 10, 31) # << file times are represented as native datetime objectsInstallwith pip (recommended):Optionalusevirtualenv:virtualenv venvsource venv/bin/activate[sudo] pip install oopenwith easy_install:sudo easy_install oopenfrom source:update version numbers where appropriateDownload latest release from PyPItar-xvzfoopen-x.x.x.tar.gzcdoopen-x.x.x[sudo] python setup.py installfrom git:Useful for specifying an exact commit, or for local development.pipinstall-egit+https://github.com/ajhekman/OOpen#egg=oopenyou may also specify a tag or commit hash after the URLpip install-egit+https://github.com/ajhekman/OOpen@0.1.1#egg=oopenpip install-egit+https://github.com/ajhekman/OOpen@47f6e43cfc6391c06ae2a9eda6f63300c1b0558c#egg=oopenUninstall:pip uninstall oopenHistory0.2.3 (2013-01-24)using abspath for stat lookupAdded multiline support to history generation regex0.2.2 (2013-01-24)Fixed link formatting in similar projects0.2.1 (2013-01-23)corrected tag-version sync0.2.0 (2013-01-23)Added preliminary support for the extension propertyAdded related projects to README0.1.3 (2013-01-20)Added publishing tasks to fabfile0.1.2 (2013-01-20)modified .gitignoreImprovements to fabfileMade reSt modifications for githubREADME.rst is now a compliation of INFO,INSTALL,HISTORY,LICENSEFurther packaging and install improvements0.1.1 (2013-01-20)Packaging updates0.1.0 (2013-01-19)Initial ReleaseFor development only, needs to be tested.Similar Projects:not affiliated with oopen or it’s authorUnipathObject-oriented alternative to os/os.path/shutilfilepathObject-oriented filesystem path representation.forked-pathAn object oriented file path modulefpathFilesystem paths as objectslilydjwg.PathAn object that handles path more easilypath3Object for working with files and directoriespathlibObject-oriented filesystem pathspathobjectAn update of Jason Orendorff’s path.py.xpathrecordXpathRecord: An XML to read-only Python objects libraryz3c.objpathGenerate and resolve paths to to objects.zope.traversingResolving paths in the object hierarchyLicenseCopyright © 2012, 2013 Andrew HekmanPermission is hereby granted, free of charge, to any person obtaininga copy of this software and associated documentation files (the“Software”), to deal in the Software without restriction, includingwithout limitation the rights to use, copy, modify, merge, publish,distribute, sublicense, and/or sell copies of the Software, and topermit persons to whom the Software is furnished to do so, subject tothe following conditions:The above copyright notice and this permission notice shall beincluded in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OFMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANYCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THESOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.