Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updated the README file for new criteria and updated version to 0.2

  • Loading branch information...
commit 00faa3ec47216c1218d7cab9a3f8f1eec4bc6cbd 1 parent f808874
@robballou authored
Showing with 16 additions and 3 deletions.
  1. +15 −2 README.md
  2. +1 −1  rotatelib.py
View
17 README.md
@@ -1,6 +1,6 @@
# Rotatelib
-Module for assisting in querying the file system and databases for backups to rotate
+Module for assisting in querying the file system and databases for backups to rotate.
## Filesystem example
@@ -21,7 +21,6 @@ Sample Python script using rotatelib:
You may also now give it database connections to work with:
-
import datettime
import rotatelib
import MySQLdb
@@ -34,6 +33,20 @@ You may also now give it database connections to work with:
# remove those backups we just found
rotatelib.remove_items(db=db, items=items)
+## Criteria
+
+To help query for the items you want, there are a number of criteria tests:
+
+ - after (datetime or timedelta)
+ - before (datetime or timedelta)
+ - day (int or list of ints)
+ - except_day (int or list of ints)
+ - except_hour (int or list of ints)
+ - has_date (datetime)
+ - hour (int or list of ints)
+ - pattern (regex)
+
+New in version 0.2: `day` and `except_day` were added. `day`, `hour`, `except_day`, and `except_hour` all except lists as well.
## License
View
2  rotatelib.py
@@ -26,7 +26,7 @@
"""
__author__ = 'Rob Ballou (rob.ballou@gmail.com)'
-__version__ = '0.1'
+__version__ = '0.2'
__license__ = 'MIT'
import collections
Please sign in to comment.
Something went wrong with that request. Please try again.