semvec/pypi-packages huggingface dataset:
retaindate 1.0
Awfully simple module to check a date for obsoletion
License: BSD

Description
===========

Really simple module to decide wether a a date string is considered "obsolete"
or not.

Given a time-string like ``2010-01-01`` it will return ``True`` if this date
should *not* be retained, or ``False`` if it should.

Other time strings can be used by specifying a different format string (see
strftime_ and strptime_ for the detailed syntax)

Example Usage::

    from retaindate import is_obsolete
    from datetime import datetime, timedelta

    for i in range(10*365, -1, -1):
        date = datetime.today() - timedelta(i)
        if not is_obsolete(date):
            print date

See the module docs (or the source) for more details

.. _strptime: http://docs.python.org/library/time.html#time.strptime
.. _strftime: http://docs.python.org/library/time.html#time.strftime
django-clean 0.1.2
Clean out files in a django app using regular expressions.
License: BSD
Keywords: django clean temporary cleanup pyc

django-clean
====================

django-clean is a package that lets you specify files or directories that you
would like cleaned up. You can specify regular expressions to define which 
files you would like automatically removed.


Installation
------------
1. Add 'clean' to your installed apps in your settings.py file.  
    
    INSTALLED_APPS = [  
        'clean',
        ...
    ]  

    
2. Define a PROJECT_PATH in your settings.py file.  

    import os.path, sys  
    PROJECT_PATH = os.path.dirname(__file__)  

    
3. *OPTIONAL* Define the regular expression patterns you would like to match against in 
    your settings.py file. The default is a regex pattern to remove *.pyc files. (NOTE: The 
    regex matches against the full qualified path).
      
    CLEAN_PATTERNS = [  
        r'^.+\.pyc$',  
    ]  
    
    
Usage
-----
From your shell, type:  

    python manage.py clean  

This will prompt you to remove files that match the regular expression patterns.  

If you are confident in your regex, you can supply a --force option which will not prompt 
you before removing pattern matches.