semvec/pypi-packages huggingface dataset:
svargaext.transform 0.6
Source transformation module for Svarga framework
License: BSD

.. -*- mode: rst -*-

svargaext.transform
===================

Application for transforming source code from one format to another (for
example, CleverCSS in CSS, CoffeeScript in JavaScript).

It requires a bit of configuration dropped in `settings.py`::

    TRANSFORM = {
        'clevercss': {'main': {'clevercss/*.ccss': 'css/*.css'},
                      'someapp': {'static/test.ccss': 'css/test.css'}},
        'coffee': {'main': {'*.coffee': '*.js'}},
        }

Configuration description:

 - ``TRANSFORM`` is a variable, containing mapping of backend to rules.
 - Rules are mapping between name in ``STATIC_URLS`` to a dictionary of
   ``source``: ``target`` mapping.

Source can contain ``*`` to wildcard match files. In this case target should
contain ``*`` as well.

Installation
------------

It's that easy::

  pip install svargaext.transform
svargaext.sqlamigrate 0.4
SQLAlchemy migrate module for Svarga framework
License: BSD

.. -*- mode: rst -*-

svargaext.sqlamigrate
=====================

Svarga extension to simplify database schema migration management of the svarga
applications.

In short, does following:

1. Enables migration support for selected application
2. Replaces syncdb to work through the sqlalchemy-migrate
3. Provides nice command to compare schema in the database against existing
   model definitions to create migration script.

For more information, check documentation.

How to install from repository
------------------------------

It's that easy::

  pip install hg+http://bitbucket.org/joes/svargaext.sqlamigrate/
cronwrap 1.4
A cron job wrapper that wraps jobs and enables better error reporting and command timeouts.
License: BSD
Keywords: cron wrapper crontab cronjob

Example
-------

Basic example of usage::

    ##Will print out help
    $ cronwrap -h

        usage: cronwrap [-h] [-c CMD] [-e EMAILS] [-t TIME] [-v [VERBOSE]]

        A cron job wrapper that wraps jobs and enables better error reporting and command timeouts.

        optional arguments:
          -h, --help            show this help message and exit
          -c CMD, --cmd CMD     Run a command. Could be `cronwrap -c "ls -la"`.
          -e EMAILS, --emails EMAILS
                                Email following users if the command crashes or
                                exceeds timeout. Could be `cronwrap -e
                                "johndoe@mail.com, marcy@mail.com"`. Uses system's
                                `mail` to send emails. If no command (cmd) is set a
                                test email is sent.
          -t TIME, --time TIME  Set the maximum running time.If this time is passed an
                                alert email will be sent.The command will keep running
                                even if maximum running time is exceeded.The default is
                                1 hour `-t 1h`. Possible values include: `-t 2h`,`-t
                                2m`, `-t 30s`.
          -v [VERBOSE], --verbose [VERBOSE]
                                Will send an email / print to stdout on successful run.


    ##Will send out a timeout alert to cron@my_domain.com:
    $ cronwrap -c "sleep 2" -t "1s" -e cron@my_domain.com

    ##Will send out an error alert to cron@my_domain.com:
    $ cronwrap -c "blah" -e cron@my_domain.com

    #Will not send any reports:
    $ cronwrap -c "ls" -e cron@my_domain.com

    #Will send a successful report to cron@my_domain.com:
    $ cronwrap -c "ls" -e cron@my_domain.com -v