semvec/pypi-packages huggingface dataset:
django-poormanscron 0.1.3
Poor Man's Cron is Django app which makes use of spambots, search engine indexing robots and alike to run scheduled tasks in approximately regular intervals.
License: BSD

Django Poor Man's Cron is Django app which makes use of spambots, search engine indexing robots and alike to run scheduled tasks in approximately regular intervals.

This app isn't meant to be a fully-featured project, but rather a modifiable experimental concept.

To install the app, do the following:

+ Check it out and put it somewhere under python path.
+ Add the app to INSTALLED_APPS and its PoorMansCronMiddleware class to MIDDLEWARE_CLASSES in your project settings.
+ Run python manage.py syncdb to update the DB schema.
+ Create management commands for scheduled tasks (probably you can also use Django Command Extensions).
+ Create ScheduledTask objects in Django administration.

	INSTALLED_APPS = (
	    # ...
	    "poormanscron",
	    )

	MIDDLEWARE_CLASSES = (
	    # ...
	    "poormanscron.middleware.PoorMansCronMiddleware",
	    )
	    
The included initial_data fixture serves as an example where "cleanup" command is called every day after 3 am.
redis_dashboard 0.0.3
Python empty package
License: BSD

Welcome to django_redis_dashboard's documentation!
==================================================

django_redis_dashboard application for monitoring redis servers which
used by application.


Usage
-----





INSTALLATION
------------

1. To use django_redis_dashboard  use pip or easy_install:

`pip install django_redis_dashboard`

or

`easy_install django_redis_dashboard`


2. Add redis_dashboard to your ``INSTALLED_APPS`` setting::

       INSTALLED_APPS = (
           # ...
           'redis_dashboard',
       )


3. Add the urls to your url configuration::

       urlpatterns = patterns('',
           # ...
           (r'^redis-dashboard/', include('redis-dashboard.urls')),
       )
4. Configure you redis servers::

      REDIS = {
           'default': {
	              'HOST': '127.0.0.1',
                  'PORT': 6379,
                  'DB': 2
		   },
           'slave': {
		          'HOST': '127.0.0.1',
                  'PORT': 6378,
				  'DB': 3
           }
      }


CONTRIBUTE
----------

Fork https://github.com/Lispython/django-redis-dashboard/ , create commit and pull request.


SEE ALSO
--------

-  `python pypi`_.

.. _`python pypi`: http://pypi.python.org
ohsnap 0.1.0a-20120509
A tarsnap backup manager
License: BSD
Keywords: backup tarsnap

README
======

This package contains a `pyCLI`_ application that manages `tarsnap`_ backups and
retention policies.

.. _pyCLI: http://packages.python.org/pyCLI/
.. _tarsnap: http://www.tarsnap.com/


The ``ohsnap`` command
----------------------

``ohsnap`` will allow a user to create backups with retention policies.

Usage
-----

Basic usage info is display when running ``ohsnap`` with no arguments.

 $ ohsnap
 
 usage: ohsnap [-b BINARY] {backup,list,purge}
 ohsnap: error: too few arguments

Combining ``-h`` or ``--help`` with any subcommand will provide more detailed
info.

 $ ohsnap -h backup

 usage: backup [-h] [-l LOGFILE] [-q] [-s] [-v] [-C CWD] [-n NAME]
              [-r RETENTION]
              [path [path ...]]

 positional arguments:
  path                  paths to backup

 optional arguments:
  -h, --help            show this help message and exit
  -l LOGFILE, --logfile LOGFILE
                        log to file (default: log to stdout)
  -q, --quiet           decrease the verbosity
  -s, --silent          only log warnings
  -v, --verbose         raise the verbosity
  -C CWD, --cwd CWD     directory to run the backup from
  -n NAME, --name NAME  archive name
  -r RETENTION, --retention RETENTION
                        integer and time identifier e.g. 1h, 3d, 6y

Example
-------

To backup the spam and eggs directories with 1 day retention:

 $ ohsnap backup --retention 1d --name spam-eggs spam eggs

To list existing archives created by the ohsnap manager:

 $ ohsnap list

To purge archives that have outlived their retention policy:

 $ ohsnap purge
quotachecker 1.7
Return the quota of 1st level sub folders in a directory.
License: BSD

####################
Folder Quota Checker
####################

This program returns the quota of 1st level sub directories in a directory using the ``du`` command (available on all \*nix platforms).


Usage
=====

If no start directory is given all directories in the current one will be checked by default::

   $ qcheck
   ./directory-0   4
   ./directory-1   920
   ...
   ./directory-9   8248
   .            41264


Choose directories
------------------

Sometimes it is required to get the quota of a defined subset of directories.

It is possible to give folder names as arguments::

   $ qcheck directory-1 directory-2
   ./directory-1   920
   ./directory-2   120


This method only make sense for a couple of directories. A greater folder list can be given by a text file.  The folder names should? be written line by line in the text file. To use it give the option ``-t`` and than the filename like this: ::

   $ qcheck -t folder_set.txt

If the folder doesn't exist a "DoesentExistException" will show you that for every missing Folder.


Output
======

By default the result is written to the standard output in bit-format.

Each directory-quota will be presented in one line::

   $ qcheck
   ./directory-0   4
   ./directory-1   920
   ...
   ./directory-9   8248
   .            41264


The output can also converted to a human readable form with the ``-r`` option::

   $ qcheck -r
   ./directory-0 4,0K
   ./directory-1 920K
   ...
   ./directory-9 8,1M
   .           41M



file-output
-----------

If the file output is enabled with the option ``-f FILENAME`` the output will be written to a csv-file. The file will be created if it does not exists.

If the *file* already exists, the new content will be saved as a new column in the document. The name of the column contains the date like ``YY-MM``:

.. csv-table:: Example CSV output

   directorys;2011-12;2012-03
   directory-1;0K;128K
   directory-2;32M;132M
   directory-3;980M;1.124G

If the *column* already exists the quotachecker will return a note that you have to set the ``-o`` parameter if you want to overwrite the column and exit.
If the ``-o`` option is set quotachecker will overwrite the column by if it exist.


Requirements
============

If the installed python is at least 2.7 you have all what you need and there is nothing to install.

If the installed python is 2.6 you need to install `argparse <http://pypi.python.org/pypi/argparse>`_ witch is already done if you installed the quotachecker with pip.


Testing
=======

If something doesn't work as described please first run the tests::

  python runtests.py

ad send me me the output if it fails.


Changelog
=========

1.7 (2012-05-09)
----------------

* Initial release
alstat 0.0.7
Collection of advanced utils to parse logfiles in different formats and build statistic reports
License: BSD

Welcome to alstat's documentation!
==================================================

alstat is advances logs statistics.
It's collection of utils to analyze logs.

Features
--------

- Unpack gzipped logfiles
- Fast


Usage
-----

This commant print all lines from all log files in directory /var/log/nginx
if format `http_method status http_referer`::

    alstat -d /var/log/nginx/ -p "*access*" -f "base" http_method status http_referer

    GET 200 http://google.com
    .... to many lines
    GET 404 http://ya.ru/
    PUT 200 http://yandex.com/


You can view fields list that you can use to display::

    alstat -d /var/log/nginx/ -p "*access*" -l

    Alstat v0.0.1 start at Tue May  8 23:25:24 2012
    You can use fieldnames: status, http_protocol, http_method, http_referer, remote_addr, url, time_local, http_user_agent, remote_user, size



INSTALLATION
------------

To use alstat use pip or easy_install:

`pip install alstat`

or

`easy_install alstat`


TODO
----
- Add group by fields and count
- Web interface with reports


CONTRIBUTE
----------

Fork https://github.com/Lispython/alstat/ , create commit and pull request.

THANKS
------

To David M. Beazley for `generators`_ examples.


SEE ALSO
--------

-  `python pypi`_.

.. _`python pypi`: http://pypi.python.org

.. _`generators`: http://www.dabeaz.com/generators/