Skip to content

Remove API key requirement and rebrand to Python API (not Python Clie… - #131

Merged
tjann merged 6 commits into
datacommonsorg:masterfrom
tjann:rm-api-key-restriction
Jul 22, 2020
Merged

Remove API key requirement and rebrand to Python API (not Python Clie…#131
tjann merged 6 commits into
datacommonsorg:masterfrom
tjann:rm-api-key-restriction

Conversation

@tjann

@tjann tjann commented Jul 21, 2020

Copy link
Copy Markdown
Contributor

…nt API).

@tjann

tjann commented Jul 22, 2020

Copy link
Copy Markdown
Contributor Author

Tested in a notebook-- but fixed the date after.
image

@tjann
tjann requested review from beets and shifucun July 22, 2020 01:51
Comment thread datacommons/utils.py
"""
os.environ[_ENV_VAR_API_KEY] = api_key
"""DEPRECATED FUNCTION--API keys no longer required."""
logging.warning('Data Commons has removed the API key requirement. This function will be removed by Dec 1st, 2020.')

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@beets wanted you to review this decision :)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lg. Do we have other docs/codes to remove this as well?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah need to update docsite... I think that's it. I went through the api-python repo pretty carefully to remove api key refs.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for calling this out!

I don't think we want to remove this completely. We're allowing you to use it without a key, but if you already have one, we should continue allowing you to set it.

Comment thread datacommons/utils.py
"""
os.environ[_ENV_VAR_API_KEY] = api_key
"""DEPRECATED FUNCTION--API keys no longer required."""
logging.warning('Data Commons has removed the API key requirement. This function will be removed by Dec 1st, 2020.')

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lg. Do we have other docs/codes to remove this as well?

@tjann

tjann commented Jul 22, 2020

Copy link
Copy Markdown
Contributor Author

Thanks for review! @beets I can submit a patch if you have any other feedback. Will follow up with you tomorrow, before doing PIP release

@tjann
tjann merged commit c5786fb into datacommonsorg:master Jul 22, 2020
@tjann
tjann deleted the rm-api-key-restriction branch July 22, 2020 03:33
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.

3 participants