{ "info": { "author": "Alex Isayko", "author_email": "alex.isayko@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Application Frameworks", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "django-xe-currencies\r\n====================\r\n\r\n\r\n.. image:: https://pypip.in/v/django-xe-currencies/badge.png\r\n :target: https://crate.io/packages/django-xe-currencies/\r\n :alt: Latest PyPI version\r\n\r\n.. image:: https://pypip.in/d/django-xe-currencies/badge.png\r\n :target: https://crate.io/packages/django-xe-currencies/\r\n :alt: Number of PyPI downloads\r\n\r\n\r\n**django-xe-currencies** allows you to create your own currency exchange\r\nAPI synced with XE datafeed service.\r\n\r\nQuickstart:\r\n===========\r\n\r\nInstall django-xe-currencies:\r\n\r\n::\r\n\r\n $ pip install django-xe-currencies\r\n\r\nAdd tinymce and xe\\_currencies to INSTALLED\\_APPS in settings.py for\r\nyour project:\r\n\r\n::\r\n\r\n INSTALLED_APPS = (\r\n ...\r\n 'xe_currencies',\r\n )\r\n\r\nAdd xe\\_currencies.urls to urls.py for your project:\r\n\r\n::\r\n\r\n urlpatterns = patterns('',\r\n ...\r\n url(r'^currencies/', include('xe_currencies.urls'))\r\n )\r\n\r\nSpecify XE\\_DATAFEED\\_URL in your settings.py:\r\n\r\n::\r\n\r\n XE_DATAFEED_URL = 'http://www.xe.com/dfs/datafeed2.cgi?xeuser'\r\n\r\nTo make a synchronization with XE datafeed run:\r\n\r\n::\r\n\r\n python manage.py xe_sync\r\n\r\nAccess api at the next url:\r\n\r\n::\r\n\r\n http://yourdomain.com/currencies/api/v1/currencies/exchange/?from=EUR&to=USD&amount=100&format=json\r\n\r\nThis example will return exchange data in JSON format:\r\n\r\n::\r\n\r\n {\"from\": \"EUR\", \"to\": \"USD\", \"result\": \"143.45 USD\"}\r\n\r\nTo retrieve currencies list use:\r\n\r\n::\r\n\r\n http://example.com/currencies/api/v1/currencies/?format=json\r\n\r\nUsing exchange in your code:\r\n\r\n::\r\n\r\n from xe_currencies.api.resources import exchange\r\n\r\n exchange('EUR', 'USD', 100)", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/aisayko/django-xe-currencies/zipball/master", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/aisayko/django-xe-currencies", "keywords": "django currency XE sync", "license": "", "maintainer": "", "maintainer_email": "", "name": "django-xe-currencies", "package_url": "https://pypi.org/project/django-xe-currencies/", "platform": "any", "project_url": "https://pypi.org/project/django-xe-currencies/", "project_urls": { "Download": "https://github.com/aisayko/django-xe-currencies/zipball/master", "Homepage": "https://github.com/aisayko/django-xe-currencies" }, "release_url": "https://pypi.org/project/django-xe-currencies/0.0.1/", "requires_dist": null, "requires_python": null, "summary": "Django-based currency exchange app synced with XE datafeed API.", "version": "0.0.1" }, "last_serial": 791048, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "41ce5d33020712cea29f52235a9623b3", "sha256": "b24daa163317df0b59606e6d522f5c6d7d9adb3d1101fd9f43d6d43858944081" }, "downloads": -1, "filename": "django-xe-currencies.tar.gz", "has_sig": false, "md5_digest": "41ce5d33020712cea29f52235a9623b3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9557, "upload_time": "2013-05-17T12:46:47", "url": "https://files.pythonhosted.org/packages/76/f1/30978acf68e59a8839122505fa04ffedaaa426187ab16cb0b0e95b1f4174/django-xe-currencies.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "41ce5d33020712cea29f52235a9623b3", "sha256": "b24daa163317df0b59606e6d522f5c6d7d9adb3d1101fd9f43d6d43858944081" }, "downloads": -1, "filename": "django-xe-currencies.tar.gz", "has_sig": false, "md5_digest": "41ce5d33020712cea29f52235a9623b3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9557, "upload_time": "2013-05-17T12:46:47", "url": "https://files.pythonhosted.org/packages/76/f1/30978acf68e59a8839122505fa04ffedaaa426187ab16cb0b0e95b1f4174/django-xe-currencies.tar.gz" } ] }