semvec/pypi-packages huggingface dataset:
lfs-compropago 0.4.3
ComproPago payment processor for Django-LFS
License: MIT
Keywords: ecommerce e-commerce payment development mexico lfs django-lfs

==============
LFS Compropago
==============

`Django LFS <http://getlfs.com/>`_ payment processor plugin for `Compropago <https://compropago.com/>`_, a Payment gateway that accepts payments in well known convenience stores across Mexico.

Installation
============

Modify ``buildout.cfg``. Add ``lfs-compropago`` to ``develop`` and ``eggs``::

    [buildout]
    ....
    develop =
        src/lfs-compropago
    eggs =
        django-lfs
        ...
        lfs-compropago

Modify your ``settings.py``
---------------------------

First add ``CompropagoProcessor`` to the list of available payment processors.
It should look like this:

.. code:: python

    LFS_PAYMENT_METHOD_PROCESSORS = [
        ...
        ["lfs_compropago.CompropagoProcessor", _(u"Compropago")],
    ]

Add the compropago app to ``INSTALLED_APPS``. Do not forget to also list ``django.contrib.humanize``:

.. code:: python

    INSTALLED_APPS = (
        'django.contrib.humanize',
        ...
        'lfs_compropago',
    )

Now add settings for your compropago account:

.. code:: python

    LFS_COMPROPAGO_PRIVATE_API_KEY='pk_test_95a6ded8c854153ff'
    LFS_COMPROPAGO_CONVERT_FROM_USD = True
    LFS_COMPROPAGO_OPENXCHANGE_API_KEY='skdd_test_5c8658531ec449283'

The default currency for LFS is USD but Compropago only uses MXN. I use `OpenExchangeRates.org <https://openexchangerates.org>`_ 
to get an updated conversion
``LFS_COMPROPAGO_CONVERT_FROM_USD`` to True if you want 

Finally, add url routingsin your ``urls.py``:

.. code:: python

    urlpatterns += patterns("",
        ...
        (r'^compropago/', include('lfs_compropago.urls')),
    )

Restart Django.

After restart, go to "Manage -> Payment methods", add a new one, and select
"Compropago" on "Module" field.

Contributing
============

Submit bugs and issues to the   `GitHub repository <https://github.com/tzicatl/lfs-compropago>`_.

AUTHORS
=======

If you have contributed to this package feel free to add your name and email to the list.

* Noe Nieto <nnieto@noenieto.com>

=======
CHANGES
=======

0.4.2 (2016-02-08)
------------------
* Depend on lxml

0.4.2 (2016-02-08)
------------------
* Fix bad dependecy on BeautifoulSoup 4 

0.4 (2016-02-7)
----------------
* Moar compatibility fixes to API version 1.0 and 1.1
* Get rid of the image_url field, so Compropago can display the store's logo.
* Get MXN->USD rate from Banxico. Cache it for 1 hour

0.3(2016-01-17)
----------------

* Compatibility with API version 1.1


0.2 (2015-12-27)
----------------

* Improve documentation and packaging.

0.1 (2015-12-01)
----------------

* Initial release to PyPI.
* Functional Payment processor.
env-excavator 1.5.0
Tools for exconverting environment variables to native python objects
License: MIT
Keywords: env-excavator

=============================
env-excavator
=============================

.. image:: https://badge.fury.io/py/env-excavator.png
    :target: https://badge.fury.io/py/env-excavator

.. image:: https://travis-ci.org/simpleenergy/env-excavator.png?branch=master
    :target: https://travis-ci.org/simpleenergy/env-excavator

Tools for exconverting environment variables to native python objects

Quickstart
----------

Install env-excavator::

    pip install env-excavator

Example use it in a project::

    >>> import os
    >>> import excavator as env
    >>> os.environ['FROM_EMAIL'] = 'admin@example.com'
    >>> env.get('FROM_EMAIL')
    'admin@example.com'
    >>> os.environ['DEBUG'] = 'True'
    >>> env.get('DEBUG', type=bool)
    True
    >>> os.environ['ALLOWED_HOSTS'] = '.example.com,.example.net'
    >>> env.get('ALLOWED_HOSTS', type=list)
    ['.example.com', '.example.net']
swisstime 0.9.0
Time the performance of portions of code and produce a report when done.
License: MIT
Keywords: development diagnostics

Swiss Time - A diagnostic code timer
=======================================
Swiss Time is a diagnostic tool for finding slow spots in code. It sits somewhere between a raw timer and a profiler.

<https://github.com/built/swisstime>

Once started, each call to tick() will record a time difference along a label that you provide.

In this way you build a timeline over the portion of code you are analyzing.

You can print a report of the results or gather report data to process your own way.

Usage
=====

Import and start the timer at the beginning of the code you want to analyze.

 >>> import swisstime
 >>> swisstime.start()

At the end of each section you want measured, call tick() with a description of that piece of code:

 >>> swisstime.tick("Load input image")

Do this after each section you are measuring:

 >>> swisstime.tick("Build masks")

To display a report of your results, print the output of swisstime.report():

 >>> print( swisstime.report() )

Your output will be a table of times and labels for each section you measured.

If you want the raw report data you can call:

>>> swisstime.data()

to get a list of label/time tuples.

Calling start() will reset all data and begin the analysis again.