Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Grab currency rates from cbr.ru (The Central Bank of the Russian Federation)

Project Description

cbrf_rates - это модуль для скачивания курсов валют с сайта cbr.ru (Центральный банк Российской Федерации)

Лицензия MIT.

Зависимости

  • requests >= 2.5.0
  • xmltodict >= 0.9.0

Установка

Как обычно:

$ pip install cbrf_rates

или

$ easy_install cbrf_rates

или

$ git clone https://github.com/moskrc/cbrf_rates.git
$ cd cbrf_rates
$ python setup.py install

Использование

from cbrf_rates import get_rates

rates = get_rates()

print rates['USD']

OrderedDict([(u’@ID’, u’R01235’), (u’NumCode’, u‘840’), (u’CharCode’, u’USD’), (u’Nominal’, u‘1’), (u’Name’, u’Доллар США’), (u’Value’, 56.8919)])

print rates['USD']['Value']

56.8919

print rates['date']

13.12.2014

Release History

Release History

This version
History Node

1.0.0

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting