Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update __init__.py #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update __init__.py #6

wants to merge 1 commit into from

Conversation

johnfraney
Copy link

Use newer except x as y exception definition syntax

Use newer `except x as y` exception definition syntax
@johnfraney
Copy link
Author

Fixes #5

@stevelacey
Copy link

stevelacey commented Nov 12, 2016

@kadirpekel @metglobal ☝️

@einarf
Copy link

einarf commented Nov 16, 2016

Would be nice with a merge and new release. There are a few projects depending on this one.

@bethnull
Copy link

Is this project abandoned?

One year and a half for merging a pull request?

@dsmurrell
Copy link

This has prevented me from using this and now I will look for an alternative.

@einarf
Copy link

einarf commented Mar 10, 2020

There is a fork located here: https://github.com/lihan/openexchangerates3
It's even on PyPI as openexchangerates3

@dsmurrell
Copy link

Thanks @einarf, I ended up going basic:

import requests

r = requests.get(
    "https://openexchangerates.org/api/currencies.json",
    params={"app_id": "XXXXXXXXXXXXX"},
)
currencies = json.loads(r.text)

r = requests.get(
    "https://openexchangerates.org/api/latest.json",
    params={"app_id": "XXXXXXXXXXXXX"},
)
latest = json.loads(r.text)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants