{ "info": { "author": "BWI", "author_email": "contact@bwi-project.com", "bugtrack_url": null, "classifiers": [], "description": "# BWI-lib\n\n_python client for BWI interactions_\n\n## Usage\n\n### Instantiate a client\n\n```python\nimport bwi\n\n\nclient = bwi.Client(api_key='xxxxxxxxxxxxxxxx', workflow='shop')\n```\n\n### Manipulate your logs\n\n```python\n# provide step duration\nwith client.Step('fetch client information') as bwi:\n bwi.logger.info('found client with user id %d', 18)\n\n```\n\n### Metric management\n\n```python\n# manipulate metrics\nclient.Step('validate order')\n# Your business-oriented code goes here\n# ...\ntotal_paid = 220\n\n# increment the income metric for this step\nbwi.metrics.inc('income', total_paid)\n```\n\n### Error-handling\n\n```python\n# report any unknown exception to the bwi handler\ntry:\n # Your business-oriented code goes here\nexcept Exception as err:\n bwi.handler.catch(err)\n # the error is now available for this specific step\n```\n\n### Mark a step as (un)succesful\n\n```python\nstep = bwi.Step('process order')\n\n# Your business-oriented code goes here\nstep.success()\n\n# other scenario, where thing go bad\nstep.failed()\n```\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://bwi-project.com", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "bwi", "package_url": "https://pypi.org/project/bwi/", "platform": "", "project_url": "https://pypi.org/project/bwi/", "project_urls": { "Homepage": "http://bwi-project.com" }, "release_url": "https://pypi.org/project/bwi/0.0.5/", "requires_dist": null, "requires_python": ">=3.0", "summary": "Package to add bwi methods into your project", "version": "0.0.5" }, "last_serial": 5976958, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "0a20b45f21a7ad3c97c3ad940d382853", "sha256": "c2a56691281f9587705db53c1b103bd1d180f2cf3d5973f8a2475b4725e294bc" }, "downloads": -1, "filename": "bwi-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "0a20b45f21a7ad3c97c3ad940d382853", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.0", "size": 2234, "upload_time": "2019-10-10T13:09:51", "url": "https://files.pythonhosted.org/packages/ee/55/a14cad5225d728c9fc445fbc9a52e1710c90efc9e17061654bc03f1fe06a/bwi-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c499f216f23c58849cda1aee0aafecf6", "sha256": "45da6291d44727ce39e22380ff1bee72926069ebe2fcbe9821a466103e96174c" }, "downloads": -1, "filename": "bwi-0.0.1.tar.gz", "has_sig": false, "md5_digest": "c499f216f23c58849cda1aee0aafecf6", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.0", "size": 1741, "upload_time": "2019-10-10T13:09:55", "url": "https://files.pythonhosted.org/packages/1c/3f/d6db4918ce8fbcf5344644e1b348c18866dc846ecf3f5ab7caeeb1f0f971/bwi-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "593d90a614e9f7b78a95d969011f4b44", "sha256": "d7ec30890f9723860bf633b87b5dd1d147a999215e45c999d809398a7eed81a6" }, "downloads": -1, "filename": "bwi-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "593d90a614e9f7b78a95d969011f4b44", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.0", "size": 2358, "upload_time": "2019-10-10T13:19:31", "url": "https://files.pythonhosted.org/packages/b0/95/3e3ab925c0ce39bc3d52cd6be75a7b47a1e8dd30ee4f1666efe4fb2a58ea/bwi-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "41a5bd58043d00250ed9e11b385f5d14", "sha256": "7e5812a315e4784de27fcb835134f558507b864bc9ce1c6d916269666ce061fb" }, "downloads": -1, "filename": "bwi-0.0.2.tar.gz", "has_sig": false, "md5_digest": "41a5bd58043d00250ed9e11b385f5d14", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.0", "size": 1805, "upload_time": "2019-10-10T13:19:33", "url": "https://files.pythonhosted.org/packages/9a/80/ab9d7162bda6dcde4fb0357e30ce8f3593c2254f7d5e76ed72d509cb9a8d/bwi-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "4adcb25a5dc2952aaaba8ec9023ad8d3", "sha256": "0003988b587dba1d5b220aea281ed638b9eddec7de3ca6d458d475c302209a02" }, "downloads": -1, "filename": "bwi-0.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "4adcb25a5dc2952aaaba8ec9023ad8d3", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.0", "size": 2365, "upload_time": "2019-10-10T13:27:59", "url": "https://files.pythonhosted.org/packages/ef/5c/26b3ae300a6e77f5a768e3f743663c76dd61a9ee96dd1609076b8508e3ac/bwi-0.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "428ae39068b1a609b93518c6e2294c11", "sha256": "0d3c969e93aa807bcb288d8530d847c030a32360912e194db472a290ade11400" }, "downloads": -1, "filename": "bwi-0.0.3.tar.gz", "has_sig": false, "md5_digest": "428ae39068b1a609b93518c6e2294c11", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.0", "size": 1813, "upload_time": "2019-10-10T13:28:00", "url": "https://files.pythonhosted.org/packages/ff/bd/78f26d54c3d908b44bd5c3b8697e45fda01aeff6059f2d0330b2c27154d8/bwi-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "7cbc78fc0f4af82aafb2b75f877f2269", "sha256": "69566bed63152651b3e6512ceeb1f11390e8530af122519f48aca437070431fa" }, "downloads": -1, "filename": "bwi-0.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "7cbc78fc0f4af82aafb2b75f877f2269", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.0", "size": 2751, "upload_time": "2019-10-10T14:13:01", "url": "https://files.pythonhosted.org/packages/da/f6/ce767648c38e9cc6d7edc4d872997f5b3e97b57c9de3f8f7e4e0e9cffcf9/bwi-0.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b8c36d4ceed4967ed9e279987b036fa6", "sha256": "083f5a5a5aa7a1789c0dd6f580b764dc5c4bda1027fba090707cd9e80a0ae480" }, "downloads": -1, "filename": "bwi-0.0.4.tar.gz", "has_sig": false, "md5_digest": "b8c36d4ceed4967ed9e279987b036fa6", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.0", "size": 2075, "upload_time": "2019-10-10T14:13:08", "url": "https://files.pythonhosted.org/packages/7a/84/0dd872a3f1588b0feb09b0aad1dd355c99e2202016e61fef706b7feb9bb1/bwi-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "bd8a40cd4149f1300eaa3220ead9ecb6", "sha256": "ea2822262c4a7f53fb9ba412034a3b5e5048e6920bb80742dec07118cbc5b9a5" }, "downloads": -1, "filename": "bwi-0.0.5-py3-none-any.whl", "has_sig": false, "md5_digest": "bd8a40cd4149f1300eaa3220ead9ecb6", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.0", "size": 2749, "upload_time": "2019-10-10T14:18:41", "url": "https://files.pythonhosted.org/packages/1e/7a/b2a2cd41a8723aa2e746489b9cee6d919541731fa11dc16acc3bdef2e4ca/bwi-0.0.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "06d1f637d7b2009e1bd9ff2d696ea6b0", "sha256": "72b5812f3ecd37f08daea4583ef834429dc3274d337119e930eb4fb56485a937" }, "downloads": -1, "filename": "bwi-0.0.5.tar.gz", "has_sig": false, "md5_digest": "06d1f637d7b2009e1bd9ff2d696ea6b0", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.0", "size": 2076, "upload_time": "2019-10-10T14:18:47", "url": "https://files.pythonhosted.org/packages/2d/36/238aadf714e5409f6e026cab921f1a6a41f18aaa0c936e56746ab0122a91/bwi-0.0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "bd8a40cd4149f1300eaa3220ead9ecb6", "sha256": "ea2822262c4a7f53fb9ba412034a3b5e5048e6920bb80742dec07118cbc5b9a5" }, "downloads": -1, "filename": "bwi-0.0.5-py3-none-any.whl", "has_sig": false, "md5_digest": "bd8a40cd4149f1300eaa3220ead9ecb6", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.0", "size": 2749, "upload_time": "2019-10-10T14:18:41", "url": "https://files.pythonhosted.org/packages/1e/7a/b2a2cd41a8723aa2e746489b9cee6d919541731fa11dc16acc3bdef2e4ca/bwi-0.0.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "06d1f637d7b2009e1bd9ff2d696ea6b0", "sha256": "72b5812f3ecd37f08daea4583ef834429dc3274d337119e930eb4fb56485a937" }, "downloads": -1, "filename": "bwi-0.0.5.tar.gz", "has_sig": false, "md5_digest": "06d1f637d7b2009e1bd9ff2d696ea6b0", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.0", "size": 2076, "upload_time": "2019-10-10T14:18:47", "url": "https://files.pythonhosted.org/packages/2d/36/238aadf714e5409f6e026cab921f1a6a41f18aaa0c936e56746ab0122a91/bwi-0.0.5.tar.gz" } ] }