{ "info": { "author": "PT Stampindo Lancar Jaya", "author_email": "selwin@stamps.co.id", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3" ], "description": "# Stamps API\n\nThis is a Python library to interact with Stamps API\n(https://stamps.co.id/api). It depends on Python requests library.\n\n\n\n## Basic Usage\n\n```python\nimport stamps\n\nclient = stamps.Client(token=\"ABCDEFGHIJKLMN\")\n\n\n# add transaction\nmerchant_id = 1\nstore_id = 1\nuser_email = \"random @ email.com\"\ntotal_value = 50000\ninvoice_number = \"invoice-1\"\ncreated = \"2013-02-15T13:01:01+07\"\nitems = [\n {\"product_name\": \"Ice tea\", \"quantity\": 1, \"price\": 15000},\n {\"product_name\": \"Fried Rice\", \"quantity\": 1, \"price\": 35000},\n]\nclient.transactions.add(merchant_id, store_id, user_email,\n total_value, invoice_number, created=created,\n items=items)\n```\n\n\n## Handling error\n\n\n```python\n# Inspired by https://stripe.com/docs/api?lang=python#errors\nimport stamps\n\nclient = stamps.Client(token=\"ABCDEFGHIJKLMN\")\n\ntry:\n response_dict = client.authentication.login(\"steven@ui.co.id\", \"correct-password\")\nexcept stamps.exceptions.InvalidRequest as e:\n # Submitted request is invalid, check error\n print(e.http_status)\n print(e.error_messages)\n # Access the underlying Response object\n print(e.response)\nexcept stamps.exceptions.AuthenticationError as e:\n # Your token is wrong\n pass\nexcept stamps.exceptions.ConnectionError as e:\n # HTTP request failed, network trouble\n pass\nexcept stamps.exceptions.ServerError as e:\n # There's something wrong from stamps API end point\n pass\nexcept Exception as e:\n # Something else happened, unrelated to Stamps API\n pass\n\n\n```\n\n\n\n\n## Development\n\n```\npip install -e .\npip install responses tox\n\n# to test\ntox\n```\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ui/stamps-python/", "keywords": "stamps API", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "stamps-python", "package_url": "https://pypi.org/project/stamps-python/", "platform": "", "project_url": "https://pypi.org/project/stamps-python/", "project_urls": { "Homepage": "https://github.com/ui/stamps-python/" }, "release_url": "https://pypi.org/project/stamps-python/0.1.2/", "requires_dist": [ "requests" ], "requires_python": "", "summary": "Stamps python SDK", "version": "0.1.2" }, "last_serial": 2594440, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "28d9518b56065e0dba93a0d7c62f046d", "sha256": "24ddb8c6d15475219a480450a39c41ca769bbc39a0d0948869493165d64d07c2" }, "downloads": -1, "filename": "stamps_python-0.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "28d9518b56065e0dba93a0d7c62f046d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7432, "upload_time": "2016-10-26T02:23:58", "url": "https://files.pythonhosted.org/packages/17/c7/f8c91a25487f7292e9c47f8bcd5792ea3efff04e0e69d09a55da6345a9d7/stamps_python-0.0.1-py2.py3-none-any.whl" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "4338ed8053d416872e85725181967ffb", "sha256": "ff42ab0f26d173191f1f7119cdd010614e240a5cb4e80f2049fbdea6aa33ec04" }, "downloads": -1, "filename": "stamps_python-0.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "4338ed8053d416872e85725181967ffb", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 7416, "upload_time": "2016-11-02T08:48:45", "url": "https://files.pythonhosted.org/packages/61/d0/5cc6e4d109c264ae01c7bcb9c178c2d36691b4e98184e632253445946e46/stamps_python-0.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2820deb0a049ee83a81342b841c7ef9f", "sha256": "fcae61cacb74bb395af707eb12ee6003d7570111812cda0dd4bca7deaecaee32" }, "downloads": -1, "filename": "stamps-python-0.0.2.tar.gz", "has_sig": false, "md5_digest": "2820deb0a049ee83a81342b841c7ef9f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4085, "upload_time": "2016-11-02T08:48:42", "url": "https://files.pythonhosted.org/packages/73/15/ccee13070f0508e9d5b4dc29ab39b82d0026b10379c19e995c373e4c4137/stamps-python-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "1288c7f0b49c703b5b7ab5cf05e11ab5", "sha256": "b1095d59ddfb6c597428ae8a40dc3c1becda9ff4e2c0043f1325050045b43f2e" }, "downloads": -1, "filename": "stamps_python-0.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1288c7f0b49c703b5b7ab5cf05e11ab5", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 7541, "upload_time": "2016-11-04T03:21:42", "url": "https://files.pythonhosted.org/packages/73/f3/90100b98c20e9bf2fdcbd844862f7f26a82f003963e89666c255e214d0f7/stamps_python-0.0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7cf809fa15e119b102f91aae69a9dd45", "sha256": "22a62d31ac71aab275fdeb478e4265535d39fc3a63d958a33bef9a86b9034370" }, "downloads": -1, "filename": "stamps-python-0.0.3.tar.gz", "has_sig": false, "md5_digest": "7cf809fa15e119b102f91aae69a9dd45", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4087, "upload_time": "2016-11-04T03:21:39", "url": "https://files.pythonhosted.org/packages/a3/78/75b1c4aa6e20f288b4cbbac76bd0e043ae99d661602becbd75c6936b6e79/stamps-python-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "2f7ce58ef47129f43a212ed8a71e8077", "sha256": "04d8bfd0965d831de20b27b7cf85d5fe49747dd462edaf75798e733ce71d18ae" }, "downloads": -1, "filename": "stamps_python-0.0.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "2f7ce58ef47129f43a212ed8a71e8077", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 7574, "upload_time": "2016-11-22T09:33:48", "url": "https://files.pythonhosted.org/packages/d5/88/7b507e99b20ce9199934421099664d7996842a258202144d162d461cff87/stamps_python-0.0.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "52a7cad6ea959cb691071a1c9ef2ed27", "sha256": "db70f6f4dc875454f800ced59e655ed20284621d3ffbdc4c7f8d62499fd65664" }, "downloads": -1, "filename": "stamps-python-0.0.4.tar.gz", "has_sig": false, "md5_digest": "52a7cad6ea959cb691071a1c9ef2ed27", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4165, "upload_time": "2016-11-22T09:33:43", "url": "https://files.pythonhosted.org/packages/2a/bf/f5fd373fa08d010548a589c11e5c0ae66f68b2f9e260d47c105e678061e2/stamps-python-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "065ef5dc19c381031afecccfe4661e27", "sha256": "ed9224db0e29f8e6d07b286677dfc9c134d9347cb166b00999f9ae8b9ea71543" }, "downloads": -1, "filename": "stamps_python-0.0.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "065ef5dc19c381031afecccfe4661e27", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 7675, "upload_time": "2016-12-01T09:55:11", "url": "https://files.pythonhosted.org/packages/b7/8a/b6cd004bf7188dee462a65f02c8d9541befc77ce2b7fb076cb23eb6d4049/stamps_python-0.0.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "91b94f831a2111110dd8da5501aa473e", "sha256": "72408e64d0e9953ddf93c2d5a7d43a85699c7e2ec3673a5b8907b578a15b4823" }, "downloads": -1, "filename": "stamps-python-0.0.5.tar.gz", "has_sig": false, "md5_digest": "91b94f831a2111110dd8da5501aa473e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4251, "upload_time": "2016-12-01T09:55:07", "url": "https://files.pythonhosted.org/packages/fb/7b/0dd79f84911a489c793c93ccd1aa36f018f6cbd7e1aee4664d999946249f/stamps-python-0.0.5.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "8b2d23729eb2789a2827b63f1b07bdd3", "sha256": "973d76dff37b094eb1afb243434ffe612a1419ab5df59c716b8b27f177ec5360" }, "downloads": -1, "filename": "stamps_python-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "8b2d23729eb2789a2827b63f1b07bdd3", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7612, "upload_time": "2016-12-06T07:18:43", "url": "https://files.pythonhosted.org/packages/5d/c7/99e28960cfa7fa92f7e0dfdb4f83940760b53046c934f7dd332fbc28ef9c/stamps_python-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bfc84b7891d7638c416553b914b27c38", "sha256": "451b914dc6bbb6dbdf2b5197ce8a0200432476637936a4f1ed6a531e45d53972" }, "downloads": -1, "filename": "stamps-python-0.1.0.tar.gz", "has_sig": false, "md5_digest": "bfc84b7891d7638c416553b914b27c38", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4142, "upload_time": "2016-12-06T07:18:46", "url": "https://files.pythonhosted.org/packages/68/60/fe695cf6de791bab979e9ef654a15978aee31ff6c4e76fd8a3acc68a88e4/stamps-python-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "4ba4a219d4bb57e0dd9384da68f7bfb9", "sha256": "8bd7a4ae9b13f3552bf61d4aec95f5eb68aecd50dfc6045a998f8426d962c6f0" }, "downloads": -1, "filename": "stamps_python-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "4ba4a219d4bb57e0dd9384da68f7bfb9", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7680, "upload_time": "2017-01-19T03:02:21", "url": "https://files.pythonhosted.org/packages/5f/cd/f7d34a250d2ce131acdae2df24806ae3fdc0e3a28456ed167b71381867d2/stamps_python-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e220897aadb23e9b902c9d0ce8fc21a1", "sha256": "6a5a81354c4e05b7e7e1140a92aaaefafba0d520ba5f1f0e2b92f17c20897fa6" }, "downloads": -1, "filename": "stamps-python-0.1.1.tar.gz", "has_sig": false, "md5_digest": "e220897aadb23e9b902c9d0ce8fc21a1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4256, "upload_time": "2017-01-19T03:02:23", "url": "https://files.pythonhosted.org/packages/bb/35/1acbdbcdf85ff4cc8d13aceca1d55fc8afe5f5b5c09f000e1ac09783d300/stamps-python-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "e8e1aad37210280dfab81dad7aa68b53", "sha256": "051267a3671b7b48de3977cd0d5828957a14d187272d240fcf2d60d36b250eb6" }, "downloads": -1, "filename": "stamps_python-0.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e8e1aad37210280dfab81dad7aa68b53", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7698, "upload_time": "2017-01-24T04:40:25", "url": "https://files.pythonhosted.org/packages/8c/c7/995090fb00eff26abfe93c5d8f7608b7cbeb74d12120c4de7f920a49fd67/stamps_python-0.1.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f705c8d4dbe55ef5ce3180db35bf4313", "sha256": "f2313c12ab549d1b094d9da8c97f10f5f8ea96bad3eacccfe1471af3dcda1123" }, "downloads": -1, "filename": "stamps-python-0.1.2.tar.gz", "has_sig": false, "md5_digest": "f705c8d4dbe55ef5ce3180db35bf4313", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4277, "upload_time": "2017-01-24T04:40:52", "url": "https://files.pythonhosted.org/packages/89/aa/68a4c32ba52961cf8a63d346f07b7faaa736b55569972e033b6f746b5bb9/stamps-python-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e8e1aad37210280dfab81dad7aa68b53", "sha256": "051267a3671b7b48de3977cd0d5828957a14d187272d240fcf2d60d36b250eb6" }, "downloads": -1, "filename": "stamps_python-0.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e8e1aad37210280dfab81dad7aa68b53", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7698, "upload_time": "2017-01-24T04:40:25", "url": "https://files.pythonhosted.org/packages/8c/c7/995090fb00eff26abfe93c5d8f7608b7cbeb74d12120c4de7f920a49fd67/stamps_python-0.1.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f705c8d4dbe55ef5ce3180db35bf4313", "sha256": "f2313c12ab549d1b094d9da8c97f10f5f8ea96bad3eacccfe1471af3dcda1123" }, "downloads": -1, "filename": "stamps-python-0.1.2.tar.gz", "has_sig": false, "md5_digest": "f705c8d4dbe55ef5ce3180db35bf4313", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4277, "upload_time": "2017-01-24T04:40:52", "url": "https://files.pythonhosted.org/packages/89/aa/68a4c32ba52961cf8a63d346f07b7faaa736b55569972e033b6f746b5bb9/stamps-python-0.1.2.tar.gz" } ] }