Skip to content

Update __init__.py#6

Open
johnfraney wants to merge 1 commit into
metglobal:masterfrom
johnfraney:patch-1
Open

Update __init__.py#6
johnfraney wants to merge 1 commit into
metglobal:masterfrom
johnfraney:patch-1

Conversation

@johnfraney

Copy link
Copy Markdown

Use newer except x as y exception definition syntax

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

Copy link
Copy Markdown
Author

Fixes #5

@stevelacey

stevelacey commented Nov 12, 2016

Copy link
Copy Markdown

@kadirpekel @metglobal ☝️

@einarf

einarf commented Nov 16, 2016

Copy link
Copy Markdown

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

@bethnull

Copy link
Copy Markdown

Is this project abandoned?

One year and a half for merging a pull request?

@dsmurrell

Copy link
Copy Markdown

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

@einarf

einarf commented Mar 10, 2020

Copy link
Copy Markdown

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

@dsmurrell

Copy link
Copy Markdown

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