{ "info": { "author": "Diego Kiedanki", "author_email": "gusok@protonmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "\n# PyMarket\n\n[![Build Status](https://travis-ci.org/gus0k/pymarket.svg?branch=master)](https://travis-ci.org/gus0k/pymarket)\n\n[![Documentation Status](https://readthedocs.org/projects/pymarket/badge/?version=latest)](https://pymarket.readthedocs.io/en/latest/?badge=latest)\n\n[![PyPI version](https://badge.fury.io/py/pymarket.svg)](https://badge.fury.io/py/pymarket)\n\nPyMarket is a python library designed to ease the simulation and\ncomparison of different market mechanisms.\n\nMarketplaces can be proposed to solve a diverse array of problems. They\nare used to sell ads online, bandwith spectrum, energy, etc.\nPyMarket provides a simple environment to try, simulate and compare different\nmarket mechanisms, a task that is inherent to the process of establishing a new\nmarket.\n\nAs an example, Local Energy Markets (LEMs) have been proposed to syncronize energy consumption\nwith surplus of renewable generation. Several mechanisms have been proposed for such a market:\nfrom double sided auctions to p2p trading. \n\nThis library aims to provide a simple interface for such process, making results reproducible.\n\n## Getting Started\n\n\n```python\nimport pymarket as pm\nimport numpy as np\n\nr = np.random.RandomState(1234)\n\nmar = pm.Market()\nbids = pm.datasets.uniform_bidders.generate(20, 20, 1, 1, r)\nfor b in bids:\n mar.accept_bid(*b)\n\nmar.plot()\n```\n\n\n![png](README_files/README_4_0.png)\n\n\n### Access the bids\n\n\n```python\nbids = mar.bm.get_df()\nbids.head()\n```\n\n\n\n\n quantity price user buying time divisible\n 0 0.2374 1.0234 0 True 0 True\n 1 0.1784 1.1770 1 True 0 True\n 2 0.6301 1.5789 2 True 0 True\n 3 0.1600 1.8008 3 True 0 True\n 4 0.7920 1.5478 4 True 0 True\n\n\n\n### Run a market algorithm\n\n\n```python\ntransactions, extra = mar.run('p2p', r=r)\ntransactions = transactions.get_df()\ntransactions.head()\n```\n\n\n\n\n bid quantity price source active\n 0 16 0.0000 0.0000 34 True\n 1 34 0.0000 0.0000 16 True\n 2 0 0.0000 0.0000 23 True\n 3 23 0.0000 0.0000 0 True\n 4 12 0.0786 1.3828 26 False\n\n\n\n## Documentation and Examples\n\n[Docs can be found here (click me!)](https://pymarket.readthedocs.io)\n\n# Installation\n\n```python\npip install pymarket\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": "https://github.com/gus0k/pymarket", "keywords": "pymarket", "license": "MIT license", "maintainer": "", "maintainer_email": "", "name": "pymarket", "package_url": "https://pypi.org/project/pymarket/", "platform": "", "project_url": "https://pypi.org/project/pymarket/", "project_urls": { "Homepage": "https://github.com/gus0k/pymarket" }, "release_url": "https://pypi.org/project/pymarket/0.7.5/", "requires_dist": [ "Click (>=6.0)", "pandas (>=0.24)", "numpy (>=1.16)", "networkx", "pulp", "matplotlib" ], "requires_python": "", "summary": "A simple library for simulating markets in Python", "version": "0.7.5" }, "last_serial": 5570810, "releases": { "0.7.4": [ { "comment_text": "", "digests": { "md5": "eebdc76369eba2f81f8f83073e39bed8", "sha256": "ed105f58e449cbc545d662c063c19b5fe881795cd9a06802c8cff782a070786f" }, "downloads": -1, "filename": "pymarket-0.7.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "eebdc76369eba2f81f8f83073e39bed8", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5480, "upload_time": "2019-07-16T08:10:12", "url": "https://files.pythonhosted.org/packages/92/79/920ce8a59cefaf3262f746fec1e0c1dcdc9949835e7b2ba3ec203ba2c0b0/pymarket-0.7.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "05cd1c0b8276a2501b229db846ec0e2a", "sha256": "e555bd5080effb1949078690bf140a2803d406d802150e0577b39773fbf2ae5c" }, "downloads": -1, "filename": "pymarket-0.7.4.tar.gz", "has_sig": false, "md5_digest": "05cd1c0b8276a2501b229db846ec0e2a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 30928, "upload_time": "2019-07-16T08:10:14", "url": "https://files.pythonhosted.org/packages/fa/30/f1d52244a20c5fed922cbdc81ae0be6b2a1231b3cb25ad5c32c49aff3a23/pymarket-0.7.4.tar.gz" } ], "0.7.5": [ { "comment_text": "", "digests": { "md5": "b6123c887cfa4428c05e0e1f519c0c30", "sha256": "b72effa5af89d074b2db7655a355f9f4785c0e897116f58e40bb22b3505bf2f4" }, "downloads": -1, "filename": "pymarket-0.7.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b6123c887cfa4428c05e0e1f519c0c30", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 35374, "upload_time": "2019-07-23T06:57:14", "url": "https://files.pythonhosted.org/packages/84/53/d74deabe429cbd7cf809b6a272302db251d74c06509f74b86d0f4d1899f2/pymarket-0.7.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "da4d1142ca2698cd57a83ac918d1d813", "sha256": "a5d6d61c46c6d5498492dfc90230497361cb3e820929ebc0d0a4325544e2a165" }, "downloads": -1, "filename": "pymarket-0.7.5.tar.gz", "has_sig": false, "md5_digest": "da4d1142ca2698cd57a83ac918d1d813", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 50333, "upload_time": "2019-07-23T06:57:15", "url": "https://files.pythonhosted.org/packages/c9/fc/785ae8a18faa7d7ae3f8b7fa7af14026c8c63855171022eb12760b50e15a/pymarket-0.7.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b6123c887cfa4428c05e0e1f519c0c30", "sha256": "b72effa5af89d074b2db7655a355f9f4785c0e897116f58e40bb22b3505bf2f4" }, "downloads": -1, "filename": "pymarket-0.7.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b6123c887cfa4428c05e0e1f519c0c30", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 35374, "upload_time": "2019-07-23T06:57:14", "url": "https://files.pythonhosted.org/packages/84/53/d74deabe429cbd7cf809b6a272302db251d74c06509f74b86d0f4d1899f2/pymarket-0.7.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "da4d1142ca2698cd57a83ac918d1d813", "sha256": "a5d6d61c46c6d5498492dfc90230497361cb3e820929ebc0d0a4325544e2a165" }, "downloads": -1, "filename": "pymarket-0.7.5.tar.gz", "has_sig": false, "md5_digest": "da4d1142ca2698cd57a83ac918d1d813", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 50333, "upload_time": "2019-07-23T06:57:15", "url": "https://files.pythonhosted.org/packages/c9/fc/785ae8a18faa7d7ae3f8b7fa7af14026c8c63855171022eb12760b50e15a/pymarket-0.7.5.tar.gz" } ] }