{ "info": { "author": "David-Elias K\u00fcnstle", "author_email": "dmsclient@kuenstle.me", "bugtrack_url": null, "classifiers": [], "description": "=================================================\nReadme Drink Management System Client (dmsclient)\n=================================================\n\nPython3 library with command line interface to interact with the Drink Management System (DMS) of the `student council TF Uni Freiburg `_.\n\nGetting Started\n===============\n\nPrerequisites\n-------------\n\nYou need ``python 3.5`` or newer and ``pip``.\nFor development you also need git installed on your machine.\n\nInstallation\n------------\n\nInstall the dmsclient library and command line interface simply from *PyPi*:\n\n.. code:: bash\n\n pip3 install dmsclient\n\nFor developers it's recommended to install from source vie *develop*.\nThen all changes in code are automatically available in the library and command line without reinstallation.\n\n.. code:: bash\n\n git clone git@:/dmsclient.git\n cd dmsclient\n\n python3 setup.py develop\n\nCommand Line\n------------\n\nThe installation of ``dmsclient`` provides a command line interface ``dms``.\nFor authentication you have to generate a token key in your dms profile settings.\nAdd your token to a ``.dmsrc`` file in your home folder.\n\n.. code::\n\n [DEFAULT]\n Token = XxxxxXXXxxxxxXXXXxxxxxxxXXX\n\nThen you can start using ``dms``. You'll find all available commands via\n\n.. code:: bash\n\n dms --help\n\nUser and product names don't have to be added exactly, but are estimated from what you type. E.g.:\n\n.. code:: bash\n\n $ dms buy apfel -u must\n Buy Apfelschorle (0.70\u20ac) for Max Mustermann? [Y/n]\n\nLibrary\n-------\n\nFor communication with the DMS via REST you can use the ``DmsClient`` class provided by this library.\nAuthentication is provided via a token key which you can generate in the DMS profile settings.\nThe ``DmsClient`` usually returns deep objects where ids were replaced by the corresponding object.\n\nExample code:\n\n.. code:: python\n\n from random import sample\n from dmsclient import DmsClient\n\n\n def order_random_stuff_for_last_customer(dms):\n available_products = (p for p in dms.products if p.quantity > 0)\n random_product = sample(available_products, 1)[0]\n last_sale = dms.sale_history(num_days=1)[0]\n\n dms.add_order(random_product.id, last_sale.profile.id)\n\n\n token = 'XxxxxXXXxxxxxXXXXxxxxxxxXXX'\n api_endpoint = 'https://dms.fachschaft.tf/api'\n dms = DmsClient(token, api_endpoint)\n order_random_stuff_for_last_customer(dms)\n\nAuthors\n=======\n\nInitiated by *David-Elias K\u00fcnstle* / `Github `_\nbut see `contributors `_ for a full list of contributions.\n\nLicense\n=======\n\ndmsclient is available under the `MIT License `_\n\nAcknowledgements\n================\n\nBig thanks to the DMS and DMS-API developers!", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "dmsclient", "package_url": "https://pypi.org/project/dmsclient/", "platform": "", "project_url": "https://pypi.org/project/dmsclient/", "project_urls": null, "release_url": "https://pypi.org/project/dmsclient/1.5.1/", "requires_dist": null, "requires_python": "", "summary": "Library and command line interface to interact with Drink Management System of Fachschaft TF Uni Freiburg.", "version": "1.5.1" }, "last_serial": 3737197, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "bf761e81c7c640d7ba77e1059d514b6e", "sha256": "ffe24152459fd61ea6d623fd46f1cd58129182095b89964efd4dced05d3338c0" }, "downloads": -1, "filename": "dmsclient-1.0.0.tar.gz", "has_sig": false, "md5_digest": "bf761e81c7c640d7ba77e1059d514b6e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6433, "upload_time": "2017-07-23T19:20:27", "url": "https://files.pythonhosted.org/packages/f8/23/26d818b4b6e6cc439119a92616a4e02e1678df46b22777684479615f5560/dmsclient-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "cd9716f85a0875506961e2ee19a17d68", "sha256": "4d94b2e27d0cb9e17bb1d2c90a1b50a85e72e7133711e595a8da99c69e15dd87" }, "downloads": -1, "filename": "dmsclient-1.0.1.tar.gz", "has_sig": false, "md5_digest": "cd9716f85a0875506961e2ee19a17d68", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6455, "upload_time": "2017-07-25T14:11:07", "url": "https://files.pythonhosted.org/packages/9b/79/800143eb432ed9092126f3c29db30f088e96e76cf4e0a0fb501dc5081ed6/dmsclient-1.0.1.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "e99d425fdd60fd4fc0628207ef22ee1f", "sha256": "d5164ca6e2a367712ff476b1260463b2298585829cadf3f35f4f68c8c1ec1e1e" }, "downloads": -1, "filename": "dmsclient-1.1.1.tar.gz", "has_sig": false, "md5_digest": "e99d425fdd60fd4fc0628207ef22ee1f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6570, "upload_time": "2017-07-27T09:35:32", "url": "https://files.pythonhosted.org/packages/25/83/a0353c05d085e8d354670eb60169a53c609a42d265d4d77ded05ed0a9f99/dmsclient-1.1.1.tar.gz" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "679ce588a3aafbbb3f4757fe3f9dcb94", "sha256": "8c0dd8978e305b0fc96c7f433e7fdd8941c4a3b56565f6bd89babf0f842fc05c" }, "downloads": -1, "filename": "dmsclient-1.2.0.tar.gz", "has_sig": false, "md5_digest": "679ce588a3aafbbb3f4757fe3f9dcb94", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6786, "upload_time": "2017-07-27T10:59:38", "url": "https://files.pythonhosted.org/packages/40/e8/5879a21658f59ad994bbb9f5e276de0c6f91356a0c63cda3078da86af481/dmsclient-1.2.0.tar.gz" } ], "1.3.0": [ { "comment_text": "", "digests": { "md5": "31cdfbcb187ba1e6f95a56e62de5745c", "sha256": "acf3017865c7a8cee2b51d6cee8c72962b553b9f675ad7a0b0508ee4dccb9dd0" }, "downloads": -1, "filename": "dmsclient-1.3.0.tar.gz", "has_sig": false, "md5_digest": "31cdfbcb187ba1e6f95a56e62de5745c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6927, "upload_time": "2017-09-26T15:59:53", "url": "https://files.pythonhosted.org/packages/44/44/7988318223247694ffb457b03ac5c07f70a6d3c37bbc0c59ac303866b763/dmsclient-1.3.0.tar.gz" } ], "1.3.1": [ { "comment_text": "", "digests": { "md5": "46447b6711097c1beee59632cfcd390a", "sha256": "04262540bb5f13ef1155491a15d786fd8009a90700b903bb99b7ab82397c97f2" }, "downloads": -1, "filename": "dmsclient-1.3.1.tar.gz", "has_sig": false, "md5_digest": "46447b6711097c1beee59632cfcd390a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7075, "upload_time": "2018-02-27T15:43:59", "url": "https://files.pythonhosted.org/packages/1a/1c/1e3f028a4580bc7692ca19997dbe66a1624cee569dd499acc00fa00ac17c/dmsclient-1.3.1.tar.gz" } ], "1.4.0": [ { "comment_text": "", "digests": { "md5": "ed37007e24cf318e737b3308712c8740", "sha256": "7fd2f1c11dbb809e43cb5cfd993185b0d54b88a0d29b4bdfbb8f2bc4555c1b34" }, "downloads": -1, "filename": "dmsclient-1.4.0.tar.gz", "has_sig": false, "md5_digest": "ed37007e24cf318e737b3308712c8740", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8418, "upload_time": "2018-03-01T14:53:52", "url": "https://files.pythonhosted.org/packages/97/2d/a0550debcb2c7bf26a110154f4357cf0360fcccb7f29fdb53243eb253b0e/dmsclient-1.4.0.tar.gz" } ], "1.4.1": [ { "comment_text": "", "digests": { "md5": "13912998a68af67c32ad7c125978152a", "sha256": "22ff8176544fa85e4b983c84ca259e401cc05500d87debcbd8b26658f2c5934b" }, "downloads": -1, "filename": "dmsclient-1.4.1.tar.gz", "has_sig": false, "md5_digest": "13912998a68af67c32ad7c125978152a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8622, "upload_time": "2018-03-08T08:20:01", "url": "https://files.pythonhosted.org/packages/57/80/fee994cd46165d96503eedce81669842bae85cf0e67b9fcd806eec64a8ba/dmsclient-1.4.1.tar.gz" } ], "1.5.0": [ { "comment_text": "", "digests": { "md5": "8be7ab78a22fa55d1e5110bbea555cb9", "sha256": "6f245660a6d794958fd06342f7e2004bfae538c2ec5f5a0e069fd433ab34f6cd" }, "downloads": -1, "filename": "dmsclient-1.5.0.tar.gz", "has_sig": false, "md5_digest": "8be7ab78a22fa55d1e5110bbea555cb9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8827, "upload_time": "2018-04-04T12:50:09", "url": "https://files.pythonhosted.org/packages/da/bb/c7b5404492ff2feef46b62ea95a24b092690945ab61bfcc0463bd87edf06/dmsclient-1.5.0.tar.gz" } ], "1.5.1": [ { "comment_text": "", "digests": { "md5": "8ef822c111cbd72b2b6bd606dded5824", "sha256": "99ce7c37e1a9b97dcdae64fb397904ae39fdb60afa8abdc4145eba9c6c8df439" }, "downloads": -1, "filename": "dmsclient-1.5.1.tar.gz", "has_sig": false, "md5_digest": "8ef822c111cbd72b2b6bd606dded5824", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8853, "upload_time": "2018-04-05T12:06:56", "url": "https://files.pythonhosted.org/packages/c1/e7/07f37534b00d6eb17b00ea13daab4dd1c16bb541ab694ceb37caef079deb/dmsclient-1.5.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8ef822c111cbd72b2b6bd606dded5824", "sha256": "99ce7c37e1a9b97dcdae64fb397904ae39fdb60afa8abdc4145eba9c6c8df439" }, "downloads": -1, "filename": "dmsclient-1.5.1.tar.gz", "has_sig": false, "md5_digest": "8ef822c111cbd72b2b6bd606dded5824", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8853, "upload_time": "2018-04-05T12:06:56", "url": "https://files.pythonhosted.org/packages/c1/e7/07f37534b00d6eb17b00ea13daab4dd1c16bb541ab694ceb37caef079deb/dmsclient-1.5.1.tar.gz" } ] }