Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions mpcontribs-client/mpcontribs/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -889,6 +889,19 @@ def __init__(
project (str): use this project for all operations (query, update, create, delete)
session (requests.Session): override session for client to use
"""

logger.warning(
"The `mpcontribs-client` package is entering long-term maintenance. "
"All new features will be added to the main Materials Project "
"(MP) API client `mp-api`. To use the MP Contribs client with "
"up-to-date features, please `pip install 'mp-api[contribs]'`:\n"
"```py\n"
"from mp_api.client import MPRester\n"
"with MPRester() as mpr:\n"
" mpr.contribs.query_contributions(...)\n"
"```"
)

# NOTE bravado future doesn't work with concurrent.futures
# - Kong forwards consumer headers when api-key used for auth
# - forward consumer headers when connecting through localhost
Expand Down
Loading