{ "info": { "author": "Radomir Stevanovic", "author_email": "radomir@vingd.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet", "Topic :: Office/Business :: Financial", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Vingd\n=====\n\n`Vingd`_ enables users to pay with money or with time. Money goes directly to\npublishers and time is monetized indirectly through interaction with brands,\ncontent creation, loyalty, bringing new users, etc. As a result Vingd\ndramatically increases monetization while keeping reach. Vingd's secret sauce\nare mathematical models that are adapting to each user in order to extract as\nmuch value as possible from their time.\n\nWe use vingds (think of it as \"digital currency\", points, or credits) to express\nthe value (\"price\") of intangible goods (such as TV streams or newspaper\narticles), to reward users for their activity (time), or to authorize (\"charge\")\nthem access to digital goods.\n\n\nVingd API for Python\n--------------------\n\nVingd API enables you to register Vingd objects you're selling, create Vingd\npurchase orders, verify and commit Vingd purchases. You can also reward users,\neither directly (in backend), or indirectly via Vingd vouchers. Detailed `docs`_\nand `demos`_ are available.\n\n\nInstallation\n------------\n\nTo install the last stable release of Vingd API: ::\n\n $ pip install vingd\n\nOr, to install from GitHub source: ::\n\n $ git clone https://github.com/vingd/vingd-api-python\n $ cd vingd-api-python\n $ make env && source env/bin/activate (skip if already in virtualenv)\n $ python setup.py install\n\n\nExamples\n--------\n\nClient initialization and account balance fetching:\n\n.. code-block:: python\n\n from vingd import Vingd\n \n VINGD_USERNAME = 'test@vingd.com'\n VINGD_PASSWORD = '123'\n \n # Initialize Vingd client.\n v = Vingd(username=VINGD_USERNAME, password=VINGD_PASSWORD,\n endpoint=Vingd.URL_ENDPOINT_SANDBOX, frontend=Vingd.URL_FRONTEND_SANDBOX)\n \n # Fetch user balance.\n balance = v.get_user_balance()\n\nSell content\n~~~~~~~~~~~~\n\nWrap up Vingd order and redirect user to confirm his purchase at Vingd frontend:\n\n.. code-block:: python\n\n # Selling details.\n OBJECT_NAME = \"My test object\"\n OBJECT_URL = \"http://localhost:666/\"\n ORDER_PRICE = 200 # VINGD 2.00\n \n # Register Vingd object (once per selling item).\n oid = v.create_object(OBJECT_NAME, OBJECT_URL)\n \n # Prepare Vingd order.\n order = v.create_order(oid, ORDER_PRICE)\n \n # Order ready, redirect user to confirm his purchase at Vingd frontend.\n redirect_url = order['urls']['redirect']\n\nAs user confirms his purchase on Vingd frontend he is redirected back to object URL\nexpanded with purchase verification parameters.\n \n.. code-block:: python\n\n # User confirmed purchase on Vingd frontend and came back to http://localhost:666/?oid=&tid=\n purchase = v.verify_purchase(oid, tid)\n\n # Purchase successfully verified, serve purchased content to user.\n # ... content serving ...\n \n # Content is successfully served, commit Vingd transaction.\n commit = v.commit_purchase(purchase['purchaseid'], purchase['transferid'])\n\nReward user with vingd\n~~~~~~~~~~~~~~~~~~~~~~\n\nReward user with vingd:\n\n.. code-block:: python\n\n # Vingd hashed user id, as obtained in purchase procedure (previous example).\n REWARD_HUID = purchase['huid']\n REWARD_AMOUNT = 75 # VINGD 0.75\n REWARD_DESCRIPTION = \"Testing direct rewarding\"\n \n # Reward user.\n reward = v.reward_user(REWARD_HUID, REWARD_AMOUNT, REWARD_DESCRIPTION)\n\nReward user with voucher\n~~~~~~~~~~~~~~~~~~~~~~~~\n\nRedirect user to redeem his reward on vingd frontend:\n\n.. code-block:: python\n\n VOUCHER_AMOUNT = 100; # 1.00 vingd\n VOUCHER_EXPIRES = {'days': 14}\n\n # Create vingd voucher.\n voucher = v.create_voucher(amount=VOUCHER_AMOUNT, expires=VOUCHER_EXPIRES)\n \n # Redirect user to use voucher on vingd frontend:\n redirect_url = voucher['urls']['redirect']\n \nFor more examples, see `example/test.py`_ in source.\n\n\nDocumentation\n-------------\n\nAutomatically generated documentation for latest stable version is available on:\nhttps://vingd-api-for-python.readthedocs.org/en/latest/.\n\n\nCopyright and License\n---------------------\n\nVingd API is Copyright (c) 2012 Vingd, Inc and licensed under the MIT license.\nSee the LICENSE file for full details.\n\n\n.. _`Vingd`: http://www.vingd.com/\n.. _`docs`: https://vingd-api-for-python.readthedocs.org/en/latest/\n.. _`demos`: http://docs.vingd.com/\n.. _`example/test.py`: https://github.com/vingd/vingd-api-python/blob/master/example/test.py", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/vingd/vingd-api-python", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "vingd", "package_url": "https://pypi.org/project/vingd/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/vingd/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/vingd/vingd-api-python" }, "release_url": "https://pypi.org/project/vingd/0.1.8/", "requires_dist": null, "requires_python": null, "summary": "Vingd API interface client.", "version": "0.1.8" }, "last_serial": 1383585, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "b48bbc6182109aa4d5f61bcf60b1257d", "sha256": "8e124c82d605bbb24ad44f0d5d871bf3ccf434fb8c1c6fbaa17ae254ef627c2f" }, "downloads": -1, "filename": "vingd-0.1.tar.gz", "has_sig": false, "md5_digest": "b48bbc6182109aa4d5f61bcf60b1257d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13644, "upload_time": "2012-11-21T10:13:18", "url": "https://files.pythonhosted.org/packages/d6/c6/6ed32882e3b9833536460d0c7913a4227dfdc24b21d41b7ef8c2e1f883ae/vingd-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "afc2be4f5902bcb886d0352d7f2b753d", "sha256": "32ad9b752c9c33d6c9277dae398c50a41d236dac807d6880f96a769f4b0b7a46" }, "downloads": -1, "filename": "vingd-0.1.1.tar.gz", "has_sig": false, "md5_digest": "afc2be4f5902bcb886d0352d7f2b753d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12406, "upload_time": "2012-11-21T14:43:35", "url": "https://files.pythonhosted.org/packages/3d/dc/0c0d256d2fbded210b47e5616574c081ba7eaae0977b105c4055ca85fdfc/vingd-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "10b3ca7c6101ab6371c6fd40d44d4352", "sha256": "e6b07b57feb26b3cf0692d2ef49233145459c8248c5342c8f0e342d8fe887e51" }, "downloads": -1, "filename": "vingd-0.1.2.tar.gz", "has_sig": false, "md5_digest": "10b3ca7c6101ab6371c6fd40d44d4352", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11501, "upload_time": "2013-02-18T10:24:19", "url": "https://files.pythonhosted.org/packages/55/9d/2b82e45bbf1907c3205321aaaff8ac1d63f5cbda59d12b39899b71f7f0e6/vingd-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "1f0675cc006e23702557355e1c4ab553", "sha256": "2c47da61c019b3d46e7683b4d42e5db6ec84179584afb53d69b2e7bc62c642b1" }, "downloads": -1, "filename": "vingd-0.1.3.tar.gz", "has_sig": false, "md5_digest": "1f0675cc006e23702557355e1c4ab553", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12302, "upload_time": "2013-02-18T17:10:31", "url": "https://files.pythonhosted.org/packages/e9/c6/132589327eb4b1a5213c50f8dbcff595f8e827f20fa832361d68ff893454/vingd-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "edd6ede850b78031dd0915a9a101b37b", "sha256": "ff2ffc20cd245641486e19a5e3300bded66b8105e28fff0904565e509c5587b3" }, "downloads": -1, "filename": "vingd-0.1.4.tar.gz", "has_sig": false, "md5_digest": "edd6ede850b78031dd0915a9a101b37b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12769, "upload_time": "2013-03-11T15:18:41", "url": "https://files.pythonhosted.org/packages/a8/46/4511f6137b77aca1a42c9c630c4e04a412857f20ef21e7ec96af857c9aa5/vingd-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "a6fe9f702b1eb9dd469b8c41d0ab326b", "sha256": "053b552c0b65d3e236be88e160b23326c079c3b3e32e8cf91164e2444ab7f74e" }, "downloads": -1, "filename": "vingd-0.1.5.tar.gz", "has_sig": false, "md5_digest": "a6fe9f702b1eb9dd469b8c41d0ab326b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13393, "upload_time": "2013-11-22T14:06:18", "url": "https://files.pythonhosted.org/packages/27/a5/051acd9fe7f50d1d9858d57ddb970343dd7bf4fb16546407cba2c90c0f0b/vingd-0.1.5.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "d33ce191013efc9347cd2081ea065ee0", "sha256": "74fe28bf10eae14615bb9779685e3aada5de6c0e351aceb4d7bbaec38f1bad3e" }, "downloads": -1, "filename": "vingd-0.1.6.tar.gz", "has_sig": false, "md5_digest": "d33ce191013efc9347cd2081ea065ee0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14755, "upload_time": "2014-01-13T13:28:33", "url": "https://files.pythonhosted.org/packages/d2/50/406e912799d75965df36a1b8987277ab20c2b3b974bd4e583cbced9c18ab/vingd-0.1.6.tar.gz" } ], "0.1.7": [ { "comment_text": "", "digests": { "md5": "e41cd8d40d038505efc7a50b939e4299", "sha256": "3f65d21e1a30b10211603a842a3f90873d656df5475210c4c20a49bee4b51bd5" }, "downloads": -1, "filename": "vingd-0.1.7.tar.gz", "has_sig": false, "md5_digest": "e41cd8d40d038505efc7a50b939e4299", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14821, "upload_time": "2014-05-15T16:09:19", "url": "https://files.pythonhosted.org/packages/1e/e5/8554140346176d7cf7983bdf2f533bd596d1041f79d9cd354f63a9e262c6/vingd-0.1.7.tar.gz" } ], "0.1.8": [ { "comment_text": "", "digests": { "md5": "8ab826012a6c686c0bf0fc35b115d262", "sha256": "25e0be7beff524c7255d87cbc9505df4963a17cc07e45d628a2a42dbcd3b6e25" }, "downloads": -1, "filename": "vingd-0.1.8.tar.gz", "has_sig": false, "md5_digest": "8ab826012a6c686c0bf0fc35b115d262", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14846, "upload_time": "2015-01-15T14:02:35", "url": "https://files.pythonhosted.org/packages/8a/46/02e32021db86da1ddb4286cf431f435a828d3f1da6c78c0a9626ab539984/vingd-0.1.8.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8ab826012a6c686c0bf0fc35b115d262", "sha256": "25e0be7beff524c7255d87cbc9505df4963a17cc07e45d628a2a42dbcd3b6e25" }, "downloads": -1, "filename": "vingd-0.1.8.tar.gz", "has_sig": false, "md5_digest": "8ab826012a6c686c0bf0fc35b115d262", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14846, "upload_time": "2015-01-15T14:02:35", "url": "https://files.pythonhosted.org/packages/8a/46/02e32021db86da1ddb4286cf431f435a828d3f1da6c78c0a9626ab539984/vingd-0.1.8.tar.gz" } ] }