{ "info": { "author": "Mark Longair", "author_email": "mark@mysociety.org", "bugtrack_url": null, "classifiers": [], "description": "everypolitician-popolo for Python\n=================================\n\nThis is a port of the Ruby gem `everypolitician-popolo\n`__ to\nPython. Even this README is strongly based on that gem.\n\n\nInstallation\n------------\n\nYou can install this package with:\n\n.. code:: bash\n\n pip install everypolitician-popolo\n\n\nUsage\n-----\n\nYou can download a Popolo file manually from `EveryPolitician\n`__ (although there's another\nlibrary if you want to automate that:\n`See also: the everypolitician package`_).\n\nThe following example uses `\u00c5land Lagting\n`__\n(which is the legislature of the \u00c5land islands, available as\nJSON data from the `EveryPolitician page for \u00c5land\n`__).\n\nFirst you'll need to require the library and read in a file from disk.\n\n.. code:: python\n\n from popolo_data.importer import Popolo\n popolo = Popolo.from_filename('ep-popolo-v1.0.json')\n\nAll Popolo classes used by EveryPolitician are implemented:\n\n- `Person `__\n- `Organization `__\n- `Area `__\n- `Event `__\n- `Membership `__\n\nThere are methods defined for each property on a class, e.g. for a\nPerson:\n\n.. code:: python\n\n len(popolo.persons) # => 60\n person = popolo.persons.first\n person.id # => u'e3aab23e-a883-4763-be0d-92e5936024e2'\n person.name # => u'Aaltonen Carina'\n person.image # => u'http://www.lagtinget.ax/files/aaltonen_carina.jpg'\n person.wikidata # => u\"Q4934081\"\n\nYou can also find individual records or collections based on their\nattributes:\n\n.. code:: python\n\n popolo.persons.get(name=\"Aaltonen Carina\")\n # => \n\n popolo.organizations.filter(classification=\"party\")\n # => [,\n # ,\n # ,\n # ,\n # ,\n # ,\n # ,\n # ,\n # ,\n # ,\n # ,\n # ,\n # ,\n # ,\n # ,\n # ]\n\n\nDevelopment\n-----------\n\nAfter checking out the repo, install the dependencies with:\n\n.. code:: bash\n\n pip install -r requirements.txt\n\n\nYou can then run the tests with:\n\n.. code:: bash\n\n tox\n\nTo release a new version, update the version number in\n``setup.py`` and add notes to the ``CHANGES.txt`` describing\nthe fixes or new features.\n\n\nSee also: the everypolitician package\n-------------------------------------\n\nIn the example above, the Popolo data comes from a downloaded\nfile (``ep-popolo-v1.0.json``), which is the kind of file you\ncan get from the `EveryPolitician website\n`__. But your Ruby application can\nalso interact directly with the EveryPolitician data using the\n`everypolitician package\n`__,\nso you don't need to handle JSON files at all. The value\nreturned from the ``Legislature.popolo`` method is a ``Popolo``\nobject, which you can use as above. For example, you can\ninstall the package with:\n\n.. code:: bash\n\n pip install everypolitician\n\nAnd then use it as follows:\n\n.. code:: python\n\n from everypolitician import EveryPolitician\n\n australia = EveryPolitician().country('Australia')\n australia.code # => u'AU'\n senate = australia.legislature('Senate')\n senate.popolo().persons.get(name='Aden Ridgeway') # => \n\n\nContributing\n------------\n\nBug reports and pull requests are welcome on GitHub at\n``.\n\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-popolo", "package_url": "https://pypi.org/project/everypolitician-popolo/", "platform": "", "project_url": "https://pypi.org/project/everypolitician-popolo/", "project_urls": null, "release_url": "https://pypi.org/project/everypolitician-popolo/0.0.11/", "requires_dist": [ "approx-dates", "requests", "six (>=1.9.0)" ], "requires_python": "", "summary": "Parse and model Popolo data from EveryPolitician", "version": "0.0.11" }, "last_serial": 2609262, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "830b44c69239723840a17acfad8c2a3f", "sha256": "59afc688ec08a9f3122fbfd4105b9d4f85c2f63769d2e7c42167f7e1fa27969d" }, "downloads": -1, "filename": "everypolitician-popolo-0.0.1.tar.gz", "has_sig": false, "md5_digest": "830b44c69239723840a17acfad8c2a3f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6695, "upload_time": "2016-10-13T09:36:26", "url": "https://files.pythonhosted.org/packages/52/25/bf06f654efb04e7e805a84c419069169b8f11a946dca5ef228a61e7185bc/everypolitician-popolo-0.0.1.tar.gz" } ], "0.0.10": [ { "comment_text": "", "digests": { "md5": "7e552a09fbeb275d0d64cf6a8be8d6c3", "sha256": "18b21af0f81d36e147cf21208fd044d3dc25d7ed8b1a29a4b7010820d56b6dd5" }, "downloads": -1, "filename": "everypolitician-popolo-0.0.10.tar.gz", "has_sig": false, "md5_digest": "7e552a09fbeb275d0d64cf6a8be8d6c3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14547, "upload_time": "2016-11-07T11:25:54", "url": "https://files.pythonhosted.org/packages/52/d4/a1d9cc7d68a44d8d2e5441d28ff75d33456e61521a720a87dafbecfaa42a/everypolitician-popolo-0.0.10.tar.gz" } ], "0.0.11": [ { "comment_text": "", "digests": { "md5": "d8595891c998f2729789b7664d7fcbcc", "sha256": "b485f38b66a6f81743a66c5b49321c35df7e0f3452439821bb47aa1e995361b9" }, "downloads": -1, "filename": "everypolitician_popolo-0.0.11-py2-none-any.whl", "has_sig": false, "md5_digest": "d8595891c998f2729789b7664d7fcbcc", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 20746, "upload_time": "2017-01-31T14:04:09", "url": "https://files.pythonhosted.org/packages/34/1c/1f9dc7b1ed0c0e8d7cf1717ad417f3e1e7c376bc843302e4a89977f9d19d/everypolitician_popolo-0.0.11-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "41b7dfc1aaf9af9be6a24f6fc05b2500", "sha256": "655be1ccb957ccad65a2e38179df459425be4598a9392b9c4a71e5c9e237ce6b" }, "downloads": -1, "filename": "everypolitician-popolo-0.0.11.tar.gz", "has_sig": false, "md5_digest": "41b7dfc1aaf9af9be6a24f6fc05b2500", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15363, "upload_time": "2017-01-31T14:04:12", "url": "https://files.pythonhosted.org/packages/8a/d8/c461cfe6290afbd0e6ffd3cfa4c600afa6d2c0c8db2e96c9eda762a1c547/everypolitician-popolo-0.0.11.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "8074cd6a808943579c426677bc973cd9", "sha256": "ab703f07b8e117f3346ae4de5f52af9d4f35a676961863116386f5bdfacc0a34" }, "downloads": -1, "filename": "everypolitician-popolo-0.0.2.tar.gz", "has_sig": false, "md5_digest": "8074cd6a808943579c426677bc973cd9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6883, "upload_time": "2016-10-13T11:33:32", "url": "https://files.pythonhosted.org/packages/4a/5e/dfc3d2c1d947137ba996b546fb906156109a780d313c0c9cbb7bda7b19f2/everypolitician-popolo-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "7e849c37a9d75ad26d0753762d30e608", "sha256": "ea313e69dc0e26d4cda0e75074feddb22fde95cf9e53e6dca50d72f26926c72b" }, "downloads": -1, "filename": "everypolitician-popolo-0.0.3.tar.gz", "has_sig": false, "md5_digest": "7e849c37a9d75ad26d0753762d30e608", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11489, "upload_time": "2016-10-14T17:26:04", "url": "https://files.pythonhosted.org/packages/f2/62/9fed3a472b7f493d6ba4833c41983fc536b59c2184e4102621d0ddb2603d/everypolitician-popolo-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "f355ead56e83a00925c394f152d1c931", "sha256": "36fea04dea1cf435760a73ec926daadb50cf2adc03b27ac3d91899d581dee754" }, "downloads": -1, "filename": "everypolitician-popolo-0.0.4.tar.gz", "has_sig": false, "md5_digest": "f355ead56e83a00925c394f152d1c931", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13170, "upload_time": "2016-10-15T20:38:06", "url": "https://files.pythonhosted.org/packages/21/c3/c09253f23905d6ed5925156a063220cad17727ae22e9d21d195bbbfdba71/everypolitician-popolo-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "5f9e2982899c89e60834a131cd30d2f0", "sha256": "b181088bbba68afdb747abfc732a236871d30a91f396eefd765b8e83b66a30d0" }, "downloads": -1, "filename": "everypolitician-popolo-0.0.5.tar.gz", "has_sig": false, "md5_digest": "5f9e2982899c89e60834a131cd30d2f0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14481, "upload_time": "2016-10-28T14:10:54", "url": "https://files.pythonhosted.org/packages/9c/52/bcb5fe1c2d9307a9b36ef825195f407fa694871c35b5438c3f0cd092da1b/everypolitician-popolo-0.0.5.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "7dc531037abe66d659cd0c1ddd3b27d5", "sha256": "2a578978431da94e2fa96952eaf9243163ca7f8dc2342208dcc21b5396acbbfc" }, "downloads": -1, "filename": "everypolitician-popolo-0.0.6.tar.gz", "has_sig": false, "md5_digest": "7dc531037abe66d659cd0c1ddd3b27d5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15503, "upload_time": "2016-10-28T17:53:17", "url": "https://files.pythonhosted.org/packages/13/a0/18000fa506308c59a274b24b6961fc6f306e396fe103148e2eced06a5e9d/everypolitician-popolo-0.0.6.tar.gz" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "7e76779fb3a2cb7c106161f8b3d420f1", "sha256": "c611559e6e68d3ec2f166ddae0ca3737995dc34b2963ed749c3a7189bcdcb21b" }, "downloads": -1, "filename": "everypolitician-popolo-0.0.7.tar.gz", "has_sig": false, "md5_digest": "7e76779fb3a2cb7c106161f8b3d420f1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16449, "upload_time": "2016-10-30T09:53:58", "url": "https://files.pythonhosted.org/packages/ab/a1/de26b713879ba15d0bae3ba29ccec5c1b73577bf6dafb71a316380ee4f3d/everypolitician-popolo-0.0.7.tar.gz" } ], "0.0.8": [ { "comment_text": "", "digests": { "md5": "371c36c2bcb9e269df00c90b085cb017", "sha256": "63e441e60defbd2378d2253893523cd9b729cf926a462d1dce17f0b18e15faf2" }, "downloads": -1, "filename": "everypolitician-popolo-0.0.8.tar.gz", "has_sig": false, "md5_digest": "371c36c2bcb9e269df00c90b085cb017", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14367, "upload_time": "2016-10-31T19:09:41", "url": "https://files.pythonhosted.org/packages/aa/e8/bdd59e967e6fbda9962d1c355b181a104685315398caa096aeeb080b8bc5/everypolitician-popolo-0.0.8.tar.gz" } ], "0.0.9": [ { "comment_text": "", "digests": { "md5": "dddd36fd1fa17cbd43f79e066ba5e8fd", "sha256": "cc8467a8693f61182ac6d084cd72f39b22cb89ccb5f1f90981edc9b9053521ec" }, "downloads": -1, "filename": "everypolitician-popolo-0.0.9.tar.gz", "has_sig": false, "md5_digest": "dddd36fd1fa17cbd43f79e066ba5e8fd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14490, "upload_time": "2016-11-04T20:24:46", "url": "https://files.pythonhosted.org/packages/2c/96/c3ec386290aa511f3d2ad000ef8a13ff7e92829e9a88cf8b45596fa7632f/everypolitician-popolo-0.0.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d8595891c998f2729789b7664d7fcbcc", "sha256": "b485f38b66a6f81743a66c5b49321c35df7e0f3452439821bb47aa1e995361b9" }, "downloads": -1, "filename": "everypolitician_popolo-0.0.11-py2-none-any.whl", "has_sig": false, "md5_digest": "d8595891c998f2729789b7664d7fcbcc", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 20746, "upload_time": "2017-01-31T14:04:09", "url": "https://files.pythonhosted.org/packages/34/1c/1f9dc7b1ed0c0e8d7cf1717ad417f3e1e7c376bc843302e4a89977f9d19d/everypolitician_popolo-0.0.11-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "41b7dfc1aaf9af9be6a24f6fc05b2500", "sha256": "655be1ccb957ccad65a2e38179df459425be4598a9392b9c4a71e5c9e237ce6b" }, "downloads": -1, "filename": "everypolitician-popolo-0.0.11.tar.gz", "has_sig": false, "md5_digest": "41b7dfc1aaf9af9be6a24f6fc05b2500", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15363, "upload_time": "2017-01-31T14:04:12", "url": "https://files.pythonhosted.org/packages/8a/d8/c461cfe6290afbd0e6ffd3cfa4c600afa6d2c0c8db2e96c9eda762a1c547/everypolitician-popolo-0.0.11.tar.gz" } ] }