{ "info": { "author": "Federico Frenguelli", "author_email": "synasius@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Framework :: Django", "Framework :: Django :: 1.10", "Framework :: Django :: 1.11", "Framework :: Django :: 1.9", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "=============================\ndjango-money-rates\n=============================\n\n.. image:: https://badge.fury.io/py/django-money-rates.png\n :target: http://badge.fury.io/py/django-money-rates\n \n.. image:: https://travis-ci.org/evonove/django-money-rates.png?branch=master\n :target: https://travis-ci.org/evonove/django-money-rates\n\n\n.. image:: https://coveralls.io/repos/evonove/django-money-rates/badge.png\n :target: https://coveralls.io/r/evonove/django-money-rates\n\n.. image:: https://pypip.in/d/django-money-rates/badge.png\n :target: https://crate.io/packages/django-money-rates?version=latest\n\n\nCurrency conversion for money\n\nDocumentation\n-------------\n\nThe full documentation is at https://django-money-rates.readthedocs.io/.\n\nQuickstart\n----------\n\nInstall django-money-rates::\n\n pip install django-money-rates\n\nThen use it in a project::\n\n import djmoney_rates\n\nIn order to save exchange rates to your database, add `djmoney_rates` to your INSTALLED_APPS in your project's settings::\n\n INSTALLED_APPS = (\n ...\n 'djmoney_rates',\n ...\n )\n\nSetup the Open Exchange Rates backend\n-------------------------------------\n\nOpen an account at https://openexchangerates.org/ if you don't have one already. Then, add this to your project's settings::\n\n DJANGO_MONEY_RATES = {\n 'DEFAULT_BACKEND': 'djmoney_rates.backends.OpenExchangeBackend',\n 'OPENEXCHANGE_URL': 'http://openexchangerates.org/api/latest.json',\n 'OPENEXCHANGE_APP_ID': 'YOUR APP ID HERE',\n 'OPENEXCHANGE_BASE_CURRENCY': 'USD',\n }\n\nFor more information on the Open Exchange Rates API, see https://openexchangerates.org/\n\nPull the latest Exchange Rates\n------------------------------\n\nOnce your backend is setup, get the latest exchange rates::\n\n $ ./manage.py update_rates\n\nConvert from one currency to another\n------------------------------------\n\nHere's an example of converting 10 Euros to Brazilian Reais:\n\n.. code-block:: python\n\n from moneyed import Money\n from djmoney_rates.utils import convert_money\n brl_money = convert_money(10, \"EUR\", \"BRL\")\n\nFeatures\n--------\n\n* Convert money from one currency to another with an easy to use API.\n\nTODO List\n---------\n\n* Add money converter wrapper for util's `convert_money` function.\n* Add celery periodic task for getting daily exchange rates.\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/evonove/django-money-rates", "keywords": "django-money-rates", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "django-money-rates-nb", "package_url": "https://pypi.org/project/django-money-rates-nb/", "platform": "", "project_url": "https://pypi.org/project/django-money-rates-nb/", "project_urls": { "Homepage": "https://github.com/evonove/django-money-rates" }, "release_url": "https://pypi.org/project/django-money-rates-nb/0.3.1/", "requires_dist": null, "requires_python": "", "summary": "Currency conversion for money", "version": "0.3.1" }, "last_serial": 3557139, "releases": { "0.3.1": [ { "comment_text": "", "digests": { "md5": "842f3b925f9571e7b13335edfda8efee", "sha256": "7bafa271f3e25a37d1f5b09dc35daadfa69d8787d86aaa21cdaf3f150ad7aa00" }, "downloads": -1, "filename": "django-money-rates-nb-0.3.1.tar.gz", "has_sig": false, "md5_digest": "842f3b925f9571e7b13335edfda8efee", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11856, "upload_time": "2018-02-06T14:00:00", "url": "https://files.pythonhosted.org/packages/d3/85/e01d1107dfa742efb011ccb76148cef2cd21b39c82c99987e591b36bc59f/django-money-rates-nb-0.3.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "842f3b925f9571e7b13335edfda8efee", "sha256": "7bafa271f3e25a37d1f5b09dc35daadfa69d8787d86aaa21cdaf3f150ad7aa00" }, "downloads": -1, "filename": "django-money-rates-nb-0.3.1.tar.gz", "has_sig": false, "md5_digest": "842f3b925f9571e7b13335edfda8efee", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11856, "upload_time": "2018-02-06T14:00:00", "url": "https://files.pythonhosted.org/packages/d3/85/e01d1107dfa742efb011ccb76148cef2cd21b39c82c99987e591b36bc59f/django-money-rates-nb-0.3.1.tar.gz" } ] }