{ "info": { "author": "sashgorokhov", "author_email": "sashgorokhov@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "python-vkontakte\n****************\n\n.. image:: https://badge.fury.io/py/python-vkontakte.svg\n :target: https://badge.fury.io/py/python-vkontakte\n\nPython library to access vkontakte social network api.\n\nInstallation\n============\n\nVia pip:\n\n.. code-block:: shell\n\n pip install python-vkontakte\n\nApi\n===\n\n.. code-block:: python\n\n import pyvkontakte\n api = pyvkontakte.VkontakteApi()\n api.call('users.get', user_ids=1) # [{'last_name': '\u0414\u0443\u0440\u043e\u0432', 'id': 1, 'first_name': '\u041f\u0430\u0432\u0435\u043b'}]\n\nor calling method via class attribute:\n\n.. code-block:: python\n\n api.users_get(user_ids=1) # [{'last_name': '\u0414\u0443\u0440\u043e\u0432', 'id': 1, 'first_name': '\u041f\u0430\u0432\u0435\u043b'}]\n\nAre both the same. In a second form, it is a method name where dots replaced with underscores - ``wall.getById`` will be ``wall_getById`` and so on.\n\nIf you want to call some private api, which require access token, just create a api class with it:\n\n.. code-block:: python\n\n pyvkontakte.VkontakteApi('access token')\n\nUsing different api version:\n\n.. code-block:: python\n\n pyvkontakte.VkontakteApi(v='5.50')\n\nIf some error occures after api request (response json contains ``error`` insead of ``response`` key), ``pyvkontakte.VkontakteApiError`` will be raised.\nSpecial attribute ``json`` will be avaible on exception object, additionally exception str representation will contain error description and error code.\n\nAuthorization\n=============\n\nFor obtaining access token, you can use ``pyvkontakte.auth`` method.\n\n.. code-block:: python\n\n pyvkontakte.auth(login, password, client_id, scope)\n\nwhich will return dict with keys access_token, expires_in, user_id. If login or password is invalid, ``pyvkontakte.InvalidCredentials`` will be raised.\nIf some parsing error occurs, ``pyvkontakte.ParsingError`` will be raised.\nBoth ``pyvkontakte.InvalidCredentials`` and ``pyvkontakte.ParsingError`` are subclasses of ``pyvkontakte.VkontakteAuthError``.\n\nThere is also a logger ``pyvkontakte`` (``pyvkontakte.auth`` and ``pyvkontakte.api``) enabled.\n``pyvkontakte.api`` logs an INFO every request made with request params, and DEBUG with json of response\n\n\n.. :changelog:\n\nHistory\n-------\n\n1.1.2 (2016-05-13)\n++++++++++++++++++\n\n* Fixed setup.py requires option (changed to install_requires)\n\n1.1.1 (2016-04-27)\n++++++++++++++++++\n\n* Some refactoring for easier VkontakteApi extending\n\n1.1.0 (2016-04-21)\n++++++++++++++++++\n\n* Fixed auth issue\n\n1.0.0 (2016-04-16)\n++++++++++++++++++\n\n* First PyPi release\n\n0.1.0 (2016-04-16)\n++++++++++++++++++\n\n* Initial release", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/sashgorokhov/python-vkontakte/archive/master.zip", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/sashgorokhov/python-vkontakte", "keywords": "vkontakte,api,vkontakte api", "license": "MIT License", "maintainer": null, "maintainer_email": null, "name": "python-vkontakte", "package_url": "https://pypi.org/project/python-vkontakte/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/python-vkontakte/", "project_urls": { "Download": "https://github.com/sashgorokhov/python-vkontakte/archive/master.zip", "Homepage": "https://github.com/sashgorokhov/python-vkontakte" }, "release_url": "https://pypi.org/project/python-vkontakte/1.1.2/", "requires_dist": null, "requires_python": null, "summary": "Python library to access vkontakte social network api.", "version": "1.1.2" }, "last_serial": 2113836, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "600f093b33ff18b33479528dede224dd", "sha256": "0b5140433de7ef8d66217a97dd0ab7070b8fe7d90002e1423a0ce52162c5a399" }, "downloads": -1, "filename": "python-vkontakte-1.0.zip", "has_sig": false, "md5_digest": "600f093b33ff18b33479528dede224dd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6159, "upload_time": "2016-04-16T20:38:35", "url": "https://files.pythonhosted.org/packages/c7/6d/2f3371a0f0bc4d0c72e6e568b606ecc011cf11793c8b6c3b8adb99e7b25a/python-vkontakte-1.0.zip" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "1e3ad9fb484d4cec82d7ac88a7b61987", "sha256": "12e8461185addfb696220266ef544aad2903815e81ad11ead744e2deb20855be" }, "downloads": -1, "filename": "python-vkontakte-1.1.zip", "has_sig": false, "md5_digest": "1e3ad9fb484d4cec82d7ac88a7b61987", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6178, "upload_time": "2016-04-21T20:21:16", "url": "https://files.pythonhosted.org/packages/e9/4a/9b35beef3028ed695150e1ec7daf794f68575a553f5b09143c19d1e9961e/python-vkontakte-1.1.zip" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "46efe6e1e986773362f1cf6db621a9c3", "sha256": "426824f6a52df3149c31f1c8331eabcf243dbac9d61b38e3edfc660866036ef7" }, "downloads": -1, "filename": "python-vkontakte-1.1.1.zip", "has_sig": false, "md5_digest": "46efe6e1e986773362f1cf6db621a9c3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6410, "upload_time": "2016-04-27T08:18:28", "url": "https://files.pythonhosted.org/packages/e5/29/d240caaccf34cd17c06249f9e4b816978e14e3d5334f1f7a5155bfb19605/python-vkontakte-1.1.1.zip" } ], "1.1.2": [ { "comment_text": "", "digests": { "md5": "77cefe9d4c7c43fabf91ed80115bc2a5", "sha256": "8ecd0b49a22110f0d60d01ffff3259e33f146cd54786bf182484e0018bc6850d" }, "downloads": -1, "filename": "python-vkontakte-1.1.2.zip", "has_sig": false, "md5_digest": "77cefe9d4c7c43fabf91ed80115bc2a5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6488, "upload_time": "2016-05-13T08:29:18", "url": "https://files.pythonhosted.org/packages/a7/2c/e9ca0f1483a773c7dcbc114aefbbabd5b86c268da17948495301cd075cf2/python-vkontakte-1.1.2.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "77cefe9d4c7c43fabf91ed80115bc2a5", "sha256": "8ecd0b49a22110f0d60d01ffff3259e33f146cd54786bf182484e0018bc6850d" }, "downloads": -1, "filename": "python-vkontakte-1.1.2.zip", "has_sig": false, "md5_digest": "77cefe9d4c7c43fabf91ed80115bc2a5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6488, "upload_time": "2016-05-13T08:29:18", "url": "https://files.pythonhosted.org/packages/a7/2c/e9ca0f1483a773c7dcbc114aefbbabd5b86c268da17948495301cd075cf2/python-vkontakte-1.1.2.zip" } ] }