{ "info": { "author": "Claudio Sparpaglione", "author_email": "csparpa@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 1.10", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "# Django PyOWM\n\nA Django ORM interface for PyOWM domain entities\n\n\n## Requirements\n\n - Django 1.10+\n - PyOWM 2.5+\n\nPython 2.7 is supported.\n\n\n** Please notice that the API can be unstable as this project is still in beta testing **\n\n## Install\n\nInstall the library with `pip`:\n\n```shell\n$ pip install django_pyowm\n```\n\nThen add `django_pyowm` to the `INSTALLED_APPS` list into your Django project's `settings.py` file:\n \n```python\nINSTALLED_APPS = [\n ...\n 'django_pyowm' # <---\n]\n```\n\nFinally generate tables by applying migrations:\n\n```shell\n$ python manage.py makemigrations django_pyowm\n$ python manage.py migrate\n```\n\n\n## Features\nModels behave as all other Django models but they have a few useful \nfunctions:\n\n - `.from_entity(entity)` - creates a PyOWM model instance\n from the corresponding PyOWM domain object instance\n - `.to_entity(entity)` - turns the model instance to\n the corresponding PyOWM domain object instance\n - `.save_all()` - persists the model instance along with all related objects\n\n## Quick usage examples\n\n```python\nfrom pyowm import OWM\nfrom django_pyowm import models\n\n\n# Get data an Observation from the API \nowm = OWM(API_key='my_key')\nobs = owm.weather_at_place('London,UK')\n\n# Create a model instance from API response\nm = models.Observation.from_entity(obs)\n\n# Save related objects and then the model itself\nm.location.save()\nm.weather.save()\nm.save()\n\n# .. or save everything in one shot\nm.save_all()\n\n# From model instance to entity\noriginal_obs = m.to_entity()\n```\n\n## Testing\nAll details about testing are [here](https://github.com/csparpa/django-pyowm/wiki/Testing)", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/csparpa/django_pyowm", "keywords": "", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "django-pyowm", "package_url": "https://pypi.org/project/django-pyowm/", "platform": "", "project_url": "https://pypi.org/project/django-pyowm/", "project_urls": { "Homepage": "https://github.com/csparpa/django_pyowm" }, "release_url": "https://pypi.org/project/django-pyowm/0.2.0/", "requires_dist": null, "requires_python": "", "summary": "A Django ORM interface to operate with PyOWM domain entities", "version": "0.2.0" }, "last_serial": 2619277, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "9a6fa383ef244b396e1e1d644df86ce9", "sha256": "b99a9b2d7e0ed80d6b9dd8bf1ebe54e71207f4c9b41dad59cb387f1a03b2b3ff" }, "downloads": -1, "filename": "django_pyowm-0.1.0-py2.7.egg", "has_sig": false, "md5_digest": "9a6fa383ef244b396e1e1d644df86ce9", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 20864, "upload_time": "2016-11-04T12:14:29", "url": "https://files.pythonhosted.org/packages/e9/e5/30e9b496d17d11c9d4afa1003508af338760bd001e09eefb0720d6a5f6a4/django_pyowm-0.1.0-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "a2c79e46627d26a2537e45e99d61ba7e", "sha256": "41e4f3479d29205c89b423c3ef9189a04b8d8c96ebbfa4959c01e8f22388079c" }, "downloads": -1, "filename": "django_pyowm-0.1.0-py2-none-any.whl", "has_sig": false, "md5_digest": "a2c79e46627d26a2537e45e99d61ba7e", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 10701, "upload_time": "2016-11-04T12:14:26", "url": "https://files.pythonhosted.org/packages/24/1c/55ad7497948982deb25499ce9084682399cc2f376c27ba5df3553357e176/django_pyowm-0.1.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8d35ff964ff41fdb133c2aa11ce018d6", "sha256": "879e2f4322ea6f1149ea535c55deebfba76261cf646b93c7688fb8278b01f0a7" }, "downloads": -1, "filename": "django_pyowm-0.1.0.tar.gz", "has_sig": false, "md5_digest": "8d35ff964ff41fdb133c2aa11ce018d6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9077, "upload_time": "2016-11-04T12:14:31", "url": "https://files.pythonhosted.org/packages/c0/73/9b350408dedd3934ee818a12f8c05112a8231ee7cdf996fa79d8e3a9cc2d/django_pyowm-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "36d337889feb730f47b50055971ce793", "sha256": "5b2715448a2e345ac8fa4def727fa772a383adddf5bc8f50639c38fb03253de9" }, "downloads": -1, "filename": "django_pyowm-0.2.0-py2.7.egg", "has_sig": false, "md5_digest": "36d337889feb730f47b50055971ce793", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 21756, "upload_time": "2017-02-04T17:38:47", "url": "https://files.pythonhosted.org/packages/6f/ec/937099134bb9bf5bb207d08c09460c7e69da2a24398ec711db98c333c1d3/django_pyowm-0.2.0-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "766154b22ecd3599cb766bacd525bf9c", "sha256": "d5ca9bc64a98307fc1a1e4c49cf375d9e487aaa9ab6a9d8436fa30ddd2c315cc" }, "downloads": -1, "filename": "django_pyowm-0.2.0.tar.gz", "has_sig": false, "md5_digest": "766154b22ecd3599cb766bacd525bf9c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9467, "upload_time": "2017-02-04T17:38:48", "url": "https://files.pythonhosted.org/packages/16/de/8663a13d0b7052f9e52608892a693abb41619070372b01e2a0b6f8c25ad3/django_pyowm-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "36d337889feb730f47b50055971ce793", "sha256": "5b2715448a2e345ac8fa4def727fa772a383adddf5bc8f50639c38fb03253de9" }, "downloads": -1, "filename": "django_pyowm-0.2.0-py2.7.egg", "has_sig": false, "md5_digest": "36d337889feb730f47b50055971ce793", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 21756, "upload_time": "2017-02-04T17:38:47", "url": "https://files.pythonhosted.org/packages/6f/ec/937099134bb9bf5bb207d08c09460c7e69da2a24398ec711db98c333c1d3/django_pyowm-0.2.0-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "766154b22ecd3599cb766bacd525bf9c", "sha256": "d5ca9bc64a98307fc1a1e4c49cf375d9e487aaa9ab6a9d8436fa30ddd2c315cc" }, "downloads": -1, "filename": "django_pyowm-0.2.0.tar.gz", "has_sig": false, "md5_digest": "766154b22ecd3599cb766bacd525bf9c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9467, "upload_time": "2017-02-04T17:38:48", "url": "https://files.pythonhosted.org/packages/16/de/8663a13d0b7052f9e52608892a693abb41619070372b01e2a0b6f8c25ad3/django_pyowm-0.2.0.tar.gz" } ] }