semvec/pypi-packages huggingface dataset:
stamps-python 0.1.2
Stamps python SDK
License: MIT
Keywords: stamps API

# Stamps API

This is a Python library to interact with Stamps API
(https://stamps.co.id/api). It depends on Python requests library.



## Basic Usage

```python
import stamps

client = stamps.Client(token="ABCDEFGHIJKLMN")


# add transaction
merchant_id = 1
store_id = 1
user_email = "random @ email.com"
total_value = 50000
invoice_number = "invoice-1"
created = "2013-02-15T13:01:01+07"
items = [
  {"product_name": "Ice tea", "quantity": 1, "price": 15000},
  {"product_name": "Fried Rice", "quantity": 1, "price": 35000},
]
client.transactions.add(merchant_id, store_id, user_email,
                        total_value, invoice_number, created=created,
                        items=items)
```


## Handling error


```python
# Inspired by https://stripe.com/docs/api?lang=python#errors
import stamps

client = stamps.Client(token="ABCDEFGHIJKLMN")

try:
    response_dict = client.authentication.login("steven@ui.co.id", "correct-password")
except stamps.exceptions.InvalidRequest as e:
    # Submitted request is invalid, check error
    print(e.http_status)
    print(e.error_messages)
    # Access the underlying Response object
    print(e.response)
except stamps.exceptions.AuthenticationError as e:
    # Your token is wrong
    pass
except stamps.exceptions.ConnectionError as e:
    # HTTP request failed, network trouble
    pass
except stamps.exceptions.ServerError as e:
    # There's something wrong from stamps API end point
    pass
except Exception as e:
    # Something else happened, unrelated to Stamps API
    pass


```




## Development

```
pip install -e .
pip install responses tox

# to test
tox
```
geonode_qgis_server 0.1.1
Django app to enable QGIS Server in GeoNode.
License: MIT
Keywords: geonode_qgis_server

=============================
geonode_qgis_server
=============================

.. image:: https://badge.fury.io/py/geonode_qgis_server.png
    :target: https://badge.fury.io/py/geonode_qgis_server

.. image:: https://travis-ci.org/kartoza/geonode_qgis_server.png?branch=master
    :target: https://travis-ci.org/kartoza/geonode_qgis_server

Django app to enable QGIS Server in GeoNode.

Documentation
-------------

The full documentation is at https://geonode_qgis_server.readthedocs.org.

Quickstart
----------

Install geonode_qgis_server::

    pip install geonode_qgis_server

Then use it in a project::

    import geonode_qgis_server

Features
--------

* TODO

Running Tests
--------------

Does the code actually work?

::

    source <YOURVIRTUALENV>/bin/activate
    (myenv) $ pip install -r requirements_test.txt
    (myenv) $ python runtests.py

Credits
---------

Tools used in rendering this package:

*  Cookiecutter_
*  `cookiecutter-djangopackage`_

.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackage




History
-------

0.1.0 (2016-06-21)
++++++++++++++++++

* First release on PyPI.