Object-Oriented File and Path manipulation
Project description
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: MIT
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' >>> oofile.path '/Users/ajhekman/Projects/oopen/oopen/test' >>> oofile.location '/Users/ajhekman/Projects/oopen/oopen'
Retrieve other file information:
>>> oofile.sha1 'e90296612f91b8adf498884b20c8356113c83a73' >>> oofile.modified_time datetime.datetime(2013, 1, 14, 9, 10, 31)
History
0.1.0 (2013-01-19)
Initial Release
For development only, needs to be tested.
Copyright © 2012, 2013 Andrew Hekman
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included 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 OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.