{ "info": { "author": "Machin Dmytro", "author_email": "machin.dmitry+pypi.org@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3.6" ], "description": "# Wex.nz REST API Python Client\n\n[![Build Status][testing-image]][testing-link]\n[![Coverage Status][coverage-image]][coverage-link]\n[![Latest Stable Version][package-image]][package-link]\n[![License][license-image]][license-link]\n\n\n[Wex.nz](https://wex.nz/api/3/docs) provides REST APIs that you can use\n to interact with platform programmatically.\n\nThis API client will help you interact with Wex.nz by REST API. \n\n\n## License\n\nMIT License\n\n\n## Wex.nz REST API Reference\n\n[Public API](https://wex.nz/api/3/docs)\n\n[Trade API](https://wex.nz/tapi/docs)\n\n\n## Contributing\nTo create new endpoint - [create issue](https://github.com/madmis/wexapi/issues/new) \nor [create pull request](https://github.com/madmis/wexapi/compare)\n\n\n## How to use\n\nGet ticker for each available pair (public api):\n\n```python\nconn = wexapi.common.WexConnection()\ninfo = wexapi.public.InfoApi(conn)\napi = wexapi.public.PublicApi(conn)\nfor pair in info.pair_names:\n ticker = api.get_ticker(pair, info)\n```\n\nGet account info (trade api - require api keys)\n\n```python\nkey_file = \"/var/www/keys.txt\"\nwith wexapi.keyhandler.KeyHandler(key_file) as handler:\n if not handler.keys:\n print(\"No keys in key file.\")\n else:\n for key in handler.keys:\n print(\"Printing info for key {}\".format(key))\n\n with wexapi.WexConnection() as conn:\n t = wexapi.trade.TradeApi(key, handler, connection=conn)\n\n r = t.get_info()\n```\n\n\n## Running the tests\n\n python -m unittest discover wexapi\n\n\n## Setup dev environment with docker\n\nInstall [Docker](https://docs.docker.com/install/) and [Docker Compose](https://docs.docker.com/compose/install/)\n\n```\n cp /{proj_path}/Dockerfile.dist /{proj_path}/Dockerfile \n cp /{proj_path}/docker-compose.yml.dist /{proj_path}/docker-compose.yml \n```\n\nIn **Dockerfile** change **{host_user}** to your local user.\n\nBuild and run docker container\n\n```\n docker-compose build \n docker-compose up -d \n```\n\n\n## Login to docker container\n```bash\n docker exec -ti -e COLUMNS=\"`tput cols`\" -e LINES=\"`tput lines`\" wexapi_wexapi_1 bash\n```\n\n\n## Donate\nIf you find the library useful and would like to donate, please send some coins here:\n\n```\nBTC: 19nhMniZJ4p771ZvFHL3s8zoBML46LqFRv\nBCH: qpsx260laq6wj4s99052nuy063v7j0sxsqxluur84z\nETH: 0x387D91F008dB992c7DAd9be8493dfA68E565706E\nXRP: rpoi4dWSbEyQP2xmpsNMxCk2g2n5QvVSmM\nWaves: 3PPXpTagbQCSXYZ3Y5h6vuFPj6RxHbnapmE\nBTS: madmis-1\n```\n\n\n## Upgrade pip package (personal notes)\n \n python setup.py sdist\n twine upload dist/*\n\n\n\n\n\n[testing-link]: https://travis-ci.org/madmis/wexapi\n[testing-image]: https://travis-ci.org/madmis/wexapi.svg?branch=master\n\n[coverage-link]: https://coveralls.io/github/madmis/wexapi?branch=master\n[coverage-image]: https://coveralls.io/repos/github/madmis/wexapi/badge.svg?branch=master\n\n[package-link]: https://pypi.org/project/wexapi/\n[package-image]: https://img.shields.io/pypi/v/wexapi.svg?style=flat-square\n\n[license-image]: https://img.shields.io/github/license/madmis/wexapi.svg\n[license-link]: https://github.com/madmis/wexapi/blob/master/LICENSE.TXT", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/madmis/wexapi", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "wexapi", "package_url": "https://pypi.org/project/wexapi/", "platform": "", "project_url": "https://pypi.org/project/wexapi/", "project_urls": { "Homepage": "https://github.com/madmis/wexapi" }, "release_url": "https://pypi.org/project/wexapi/0.1.6/", "requires_dist": null, "requires_python": "", "summary": "Wex.nz API Client", "version": "0.1.6" }, "last_serial": 3964304, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "969f7e7205377e530d37965955c6dc1d", "sha256": "4333629e14ba004bbeb96ab47ca3a84c1e13a230fdd93666cf77b6ec93c01cdb" }, "downloads": -1, "filename": "wexapi-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "969f7e7205377e530d37965955c6dc1d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 26049, "upload_time": "2018-06-08T11:19:09", "url": "https://files.pythonhosted.org/packages/2e/ce/39e598002744aeae24334969f645f2101b031e11f86acb4dc7e23cf9db82/wexapi-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bdb2f79382383d6b38c8c73682a46cd9", "sha256": "d62052f9d75e033b9c8a1f36183c95eb5e84cbe27652664cfc5df82e970986b7" }, "downloads": -1, "filename": "wexapi-0.1.0.tar.gz", "has_sig": false, "md5_digest": "bdb2f79382383d6b38c8c73682a46cd9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15431, "upload_time": "2018-06-08T11:19:11", "url": "https://files.pythonhosted.org/packages/55/88/5b36bf20229eb76ef6c23a0f9b4d415b9d2ac8693af5cbac3a2106e77509/wexapi-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "ba23eb66d4cc042cd512a26316dc7007", "sha256": "eb5b9e1cb20ab27dee022dc2ce5d1b08d49f71dae15963096ea5323960e1c68a" }, "downloads": -1, "filename": "wexapi-0.1.1.tar.gz", "has_sig": false, "md5_digest": "ba23eb66d4cc042cd512a26316dc7007", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15969, "upload_time": "2018-06-13T12:30:20", "url": "https://files.pythonhosted.org/packages/6c/d6/d32da5692d92fad49c0d05c16ad8596ffdb345b8729a1d9dab9f51bf4b57/wexapi-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "e10f5725dc41441c36e95fceac3ed74c", "sha256": "ebe42636f270e008672c34f3f9f3e02b22ee18d33cfe6b04cfff31f378ee7733" }, "downloads": -1, "filename": "wexapi-0.1.2.tar.gz", "has_sig": false, "md5_digest": "e10f5725dc41441c36e95fceac3ed74c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16123, "upload_time": "2018-06-13T13:45:03", "url": "https://files.pythonhosted.org/packages/f4/0c/9c25e7abe837467c1bfca735e890f6835ed2b024f1b107f6bb218ac73ddd/wexapi-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "4699512cd21a6deeffc94fd51c3cd029", "sha256": "6850796c53486ad8849bb75c5f52a9fb03033c3a461ca5e15451cb915e940c28" }, "downloads": -1, "filename": "wexapi-0.1.3.tar.gz", "has_sig": false, "md5_digest": "4699512cd21a6deeffc94fd51c3cd029", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16130, "upload_time": "2018-06-14T06:29:07", "url": "https://files.pythonhosted.org/packages/66/48/eeff11a889f6a7e2bcfbd9a62f9855f536d8bcfe76d7f5c542ca8caba532/wexapi-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "e74fe386407a9e46cddd27cebb1ed18e", "sha256": "b64d45ae4a2876afac4a7f41479ac0f8244ab2b9084b7ed4c9af98d27bbeb6be" }, "downloads": -1, "filename": "wexapi-0.1.4.tar.gz", "has_sig": false, "md5_digest": "e74fe386407a9e46cddd27cebb1ed18e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16317, "upload_time": "2018-06-14T07:08:40", "url": "https://files.pythonhosted.org/packages/00/84/93865e9af807cc614b7d9fe74a606875868d13760c4908aacb8333b66079/wexapi-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "68c213c8b8f5654b2568708e192152a4", "sha256": "8e5c5355431d6a1226e7a2815a6def3030b7e03df62a96bc2e0871a925181704" }, "downloads": -1, "filename": "wexapi-0.1.5.tar.gz", "has_sig": false, "md5_digest": "68c213c8b8f5654b2568708e192152a4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17930, "upload_time": "2018-06-15T08:32:43", "url": "https://files.pythonhosted.org/packages/e6/b6/b818327ea70bd5fd7b3c8534549ca2e3f52a5a0d4f58eb888a516f571355/wexapi-0.1.5.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "5afcf66e6564915cb23627615c4a1161", "sha256": "208f5c3e3ef1cbc403cc5cf696f0018eee231c2dbfb515ddd3ad093b2edc5fe3" }, "downloads": -1, "filename": "wexapi-0.1.6.tar.gz", "has_sig": false, "md5_digest": "5afcf66e6564915cb23627615c4a1161", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17933, "upload_time": "2018-06-15T10:58:01", "url": "https://files.pythonhosted.org/packages/01/2a/7e6b0a34f35d179ebb6d44c65d490d44e62492a3dc03be2b9b7d31e04787/wexapi-0.1.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5afcf66e6564915cb23627615c4a1161", "sha256": "208f5c3e3ef1cbc403cc5cf696f0018eee231c2dbfb515ddd3ad093b2edc5fe3" }, "downloads": -1, "filename": "wexapi-0.1.6.tar.gz", "has_sig": false, "md5_digest": "5afcf66e6564915cb23627615c4a1161", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17933, "upload_time": "2018-06-15T10:58:01", "url": "https://files.pythonhosted.org/packages/01/2a/7e6b0a34f35d179ebb6d44c65d490d44e62492a3dc03be2b9b7d31e04787/wexapi-0.1.6.tar.gz" } ] }