{ "info": { "author": "Mark Longair", "author_email": "mark@mysociety.org", "bugtrack_url": null, "classifiers": [], "description": "EveryPolitician\n===============\n\nA Python library for easy access to EveryPolitician data. This is\nessentially a Python port of\n`everypolitican-ruby `__.\n\nThis has been tested with Python 2.7 and Python 3.5.\n\nInstallation\n============\n\nYou can install this package from PyPi with:\n\n.. code:: bash\n\n pip install everypolitician\n\nUsage\n=====\n\nCreating a instance of the ``EveryPolitican`` class allows you to access\ninformation on countries, their legislatures and legislative periods.\nEach country and legislature has a slug that can be used to reference\nthem via the ``country`` and ``legislature`` methods:\n\n.. code:: python\n\n from everypolitician import EveryPolitician\n ep = EveryPolitician()\n\n australia = ep.country('Australia')\n senate = australia.legislature('Senate')\n senate # => \n\n united_kingdom = ep.country('UK')\n house_of_commons = united_kingdom.legislature('Commons')\n\n american_samoa = ep.country('American-Samoa')\n house_of_representatives = american_samoa.legislature('House')\n\n for country in ep.countries():\n print country.name, 'has', len(country.legislatures()), 'legislatures'\n\nBy default this will get the EveryPolitician data and returns the most\nrecent data. This data is found from the index file, called\n``countries.json``, which links to specific versions of other data\nfiles.\n\nIf you want want to point to a different ``countries.json`` file, you\ncan override the default URL by specifying the ``countries_json_url``\nkeyword argument when creating the ``EveryPolitician`` object, e.g.:\n\n.. code:: python\n\n EveryPolitician(countries_json_url='https://cdn.rawgit.com/everypolitician/everypolitician-data/080cb46/countries.json')\n\nThe example above is using a specific commit (indicated by the hash\n``080cb46``). If you want to use a local copy of ``countries.json`` you\ncan create the object with the ``countries_json_filename`` keyword\nargument instead, e.g.:\n\n.. code:: python\n\n EveryPolitician(countries_json_filename='/home/mark/tmp/countries.json')\n\nFor more about ``countries.json``, see `this\ndescription `__.\n\nRemember that EveryPolitician data is frequently updated \u2014 see this\ninformation about `using EveryPolitician\ndata `__.\n\nMore information on `the EveryPolitician\nsite `__.\n\nDevelopment\n-----------\n\nAfter cloning the repo, you can run the tests on Python 2.7 and Python\n3.5 by running:\n\n.. code:: bash\n\n tox\n\nOr you can create a virtualenv and install the package's dependencies\nwith:\n\n.. code:: bash\n\n pip install -e .\n\nAnd run the tests on the Python version your virtualenv was based on\nwith:\n\npytest\n\nContributing\n------------\n\nBug reports and pull requests are welcome on GitHub at\nhttps://github.com/everypolitician/everypolitician.\n\nLicense\n-------\n\nThe gem is available as open source under the terms of the `MIT\nLicense `__.\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "politics data civic-tech", "license": "AGPL", "maintainer": "", "maintainer_email": "", "name": "everypolitician", "package_url": "https://pypi.org/project/everypolitician/", "platform": "", "project_url": "https://pypi.org/project/everypolitician/", "project_urls": null, "release_url": "https://pypi.org/project/everypolitician/0.0.13/", "requires_dist": [ "requests", "six (>=1.9.0)", "everypolitician-popolo (>=0.0.11)" ], "requires_python": "", "summary": "Navigate countries and legislatures from EveryPolitician", "version": "0.0.13" }, "last_serial": 2609272, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "a722d827be9e10c15f191bb9b51ec331", "sha256": "202b07addf9c1940e151727629848f19f8d94e1f72d73865e0a561dd99da3ab8" }, "downloads": -1, "filename": "everypolitician-0.0.1.tar.gz", "has_sig": false, "md5_digest": "a722d827be9e10c15f191bb9b51ec331", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2203, "upload_time": "2016-08-30T15:24:36", "url": "https://files.pythonhosted.org/packages/44/a4/6cba81420bbe7329091417e26e9c8fd2b99710d3da14f57f4d63ce937070/everypolitician-0.0.1.tar.gz" } ], "0.0.10": [ { "comment_text": "", "digests": { "md5": "a3ac00ae51ebbd60306e26897befd0b3", "sha256": "bd479897353c58bb1234d70d631bd90aecc5e46775a87b4e772c04dd39b70cb0" }, "downloads": -1, "filename": "everypolitician-0.0.10.tar.gz", "has_sig": false, "md5_digest": "a3ac00ae51ebbd60306e26897befd0b3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2882, "upload_time": "2016-11-04T10:07:20", "url": "https://files.pythonhosted.org/packages/a1/ac/0cf731e64c6a31b16b6976b08f39d272484aaa816185832c81b6ba623240/everypolitician-0.0.10.tar.gz" } ], "0.0.11": [ { "comment_text": "", "digests": { "md5": "501b00fc76a6ebb3ada24ff4a44333e2", "sha256": "26a59b50f7d7bfb76790e889cad2fd1090a166792721f9a920a9da3389659a20" }, "downloads": -1, "filename": "everypolitician-0.0.11.tar.gz", "has_sig": false, "md5_digest": "501b00fc76a6ebb3ada24ff4a44333e2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2878, "upload_time": "2016-11-04T20:27:41", "url": "https://files.pythonhosted.org/packages/57/ca/48e70615d4171017d5acaedf835475259902ae65aaf9b22e7f3c17038264/everypolitician-0.0.11.tar.gz" } ], "0.0.12": [ { "comment_text": "", "digests": { "md5": "953abeb84825bed8bab29fc14d3ce484", "sha256": "04defb14edb9e7204105c6f7acd384809588bb8ee29d082545f8c7e3c61c4d9d" }, "downloads": -1, "filename": "everypolitician-0.0.12.tar.gz", "has_sig": false, "md5_digest": "953abeb84825bed8bab29fc14d3ce484", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4739, "upload_time": "2016-11-07T11:39:49", "url": "https://files.pythonhosted.org/packages/58/cb/321dd2aa2b5ebfe3b75df815f5ebc4c8a9bdf021d5b0fafb172cc6de942e/everypolitician-0.0.12.tar.gz" } ], "0.0.13": [ { "comment_text": "", "digests": { "md5": "49243ac9ad9d3face0048ddc0bfd943b", "sha256": "f417f65ed44109d8e14a47c29fae5b2cc94385b0df03265e0b146f022f2caa75" }, "downloads": -1, "filename": "everypolitician-0.0.13-py2-none-any.whl", "has_sig": false, "md5_digest": "49243ac9ad9d3face0048ddc0bfd943b", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 7094, "upload_time": "2017-01-31T14:09:26", "url": "https://files.pythonhosted.org/packages/74/30/c00ad424f0b6a2be72a1db9351502fd1f2584564be7b9f2fbc93c6cc5167/everypolitician-0.0.13-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "480b2648653f52df59008ffe43d63ee1", "sha256": "62c036101dc6e65eca867670c49b6ab0e84c9b1192ce626952d73b7a3130ec31" }, "downloads": -1, "filename": "everypolitician-0.0.13.tar.gz", "has_sig": false, "md5_digest": "480b2648653f52df59008ffe43d63ee1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4745, "upload_time": "2017-01-31T14:09:27", "url": "https://files.pythonhosted.org/packages/31/e0/72f7e77923d46d7e9ee204b4cc97288575f97ab11b57b4417c0f42b6ad6a/everypolitician-0.0.13.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "b2609574cb5d20c9c343d14c57298c5c", "sha256": "e3ad636f542ad642b0c20f2ba1657609c306e1361a837538b5d52fb04fb1c5b1" }, "downloads": -1, "filename": "everypolitician-0.0.2.tar.gz", "has_sig": false, "md5_digest": "b2609574cb5d20c9c343d14c57298c5c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2354, "upload_time": "2016-08-30T16:19:18", "url": "https://files.pythonhosted.org/packages/87/a4/167e46a81bde85a656f35b60e93f79c3240e4fb21f9922cd998ddeb3c8c5/everypolitician-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "8ecb2fa420fec37ec1de47be9fa89e94", "sha256": "bfb5b2f7004c771a357ce882ee4a98e9f0d3d5e6b8395b1bd0d508aba32fc7f7" }, "downloads": -1, "filename": "everypolitician-0.0.3.tar.gz", "has_sig": false, "md5_digest": "8ecb2fa420fec37ec1de47be9fa89e94", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2836, "upload_time": "2016-09-01T09:41:51", "url": "https://files.pythonhosted.org/packages/23/61/01a5c108167b83d9ebe3c12b56b1609d493cbe9f4135d971d9e0b515a89a/everypolitician-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "f16efd13f4ca9ccd831e329f63cf0de9", "sha256": "7f34945c09af665b4c9187ed8dbe54af5738a61206f0afc61c31c47bbfa843ff" }, "downloads": -1, "filename": "everypolitician-0.0.4.tar.gz", "has_sig": false, "md5_digest": "f16efd13f4ca9ccd831e329f63cf0de9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2815, "upload_time": "2016-10-13T14:22:25", "url": "https://files.pythonhosted.org/packages/24/fd/5845ba4078cd4b44ef9dfb4c8b21a2accb6863f056c38448340c4a8dc8c6/everypolitician-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "ec9666fcc967e5f443cbf024637ed86a", "sha256": "01cc30ee5157fdce0378518573064af1a212da483cb515013accaf1ce9f98fc8" }, "downloads": -1, "filename": "everypolitician-0.0.5.tar.gz", "has_sig": false, "md5_digest": "ec9666fcc967e5f443cbf024637ed86a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2833, "upload_time": "2016-10-24T08:26:11", "url": "https://files.pythonhosted.org/packages/50/c9/413545cb7f018fd15941e5fcc90b4ea416891901cc3c64faf47ebce23904/everypolitician-0.0.5.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "80ccaeef69e0bcac597268a8e2d4c81a", "sha256": "dd4926783fbd93ecd96f06f85ff5888c9d1567b9f7b02d04a5fd6c6df6d87efa" }, "downloads": -1, "filename": "everypolitician-0.0.6.tar.gz", "has_sig": false, "md5_digest": "80ccaeef69e0bcac597268a8e2d4c81a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2835, "upload_time": "2016-10-28T14:13:11", "url": "https://files.pythonhosted.org/packages/13/29/f428934d0d2cabf8e7a549d82acb1988d2869338d0c335181e15f1ad16da/everypolitician-0.0.6.tar.gz" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "34ab675bec618a557525d727f1562605", "sha256": "3bfe5b16382aa0711866285c8c058377a59c5264616cefefb7208b61489b8de5" }, "downloads": -1, "filename": "everypolitician-0.0.7.tar.gz", "has_sig": false, "md5_digest": "34ab675bec618a557525d727f1562605", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2830, "upload_time": "2016-10-28T17:55:44", "url": "https://files.pythonhosted.org/packages/d4/ec/529ac82cd179f5af8dbe9e5cbc75fafc995b92a19a06e66bdafc15ecf388/everypolitician-0.0.7.tar.gz" } ], "0.0.8": [ { "comment_text": "", "digests": { "md5": "0b5525f53d67dc06cb0eab18051081ec", "sha256": "1c6429466b40d43d5101ea47c7c1bac0a7e41a499792b79127b59c0dd78e43ba" }, "downloads": -1, "filename": "everypolitician-0.0.8.tar.gz", "has_sig": false, "md5_digest": "0b5525f53d67dc06cb0eab18051081ec", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2830, "upload_time": "2016-10-30T09:56:40", "url": "https://files.pythonhosted.org/packages/26/96/adb740428e25e7574c827aa2206ed149e0b9484f9401e36136523c52d26d/everypolitician-0.0.8.tar.gz" } ], "0.0.9": [ { "comment_text": "", "digests": { "md5": "52d5771850a281c688de8787339ce9e1", "sha256": "d767be33ade67ae73a09b8d937348b0f0b4efa6afb72da2c895ff9bb66237414" }, "downloads": -1, "filename": "everypolitician-0.0.9.tar.gz", "has_sig": false, "md5_digest": "52d5771850a281c688de8787339ce9e1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2830, "upload_time": "2016-10-31T19:24:19", "url": "https://files.pythonhosted.org/packages/ba/e8/8cadfa0cc49ab074dee3957385e9a2bcd2f71dd5bd2ecb2b30ffa0492a40/everypolitician-0.0.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "49243ac9ad9d3face0048ddc0bfd943b", "sha256": "f417f65ed44109d8e14a47c29fae5b2cc94385b0df03265e0b146f022f2caa75" }, "downloads": -1, "filename": "everypolitician-0.0.13-py2-none-any.whl", "has_sig": false, "md5_digest": "49243ac9ad9d3face0048ddc0bfd943b", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 7094, "upload_time": "2017-01-31T14:09:26", "url": "https://files.pythonhosted.org/packages/74/30/c00ad424f0b6a2be72a1db9351502fd1f2584564be7b9f2fbc93c6cc5167/everypolitician-0.0.13-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "480b2648653f52df59008ffe43d63ee1", "sha256": "62c036101dc6e65eca867670c49b6ab0e84c9b1192ce626952d73b7a3130ec31" }, "downloads": -1, "filename": "everypolitician-0.0.13.tar.gz", "has_sig": false, "md5_digest": "480b2648653f52df59008ffe43d63ee1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4745, "upload_time": "2017-01-31T14:09:27", "url": "https://files.pythonhosted.org/packages/31/e0/72f7e77923d46d7e9ee204b4cc97288575f97ab11b57b4417c0f42b6ad6a/everypolitician-0.0.13.tar.gz" } ] }