Skip to content

Commit ffd9425

Browse files
deprec warning
1 parent c46ee8e commit ffd9425

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

mpcontribs-client/mpcontribs/client/__init__.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -889,6 +889,18 @@ def __init__(
889889
project (str): use this project for all operations (query, update, create, delete)
890890
session (requests.Session): override session for client to use
891891
"""
892+
893+
logger.warning(
894+
"""The `mpcontribs-client` package has been deprecated in favor of the main Materials Project (MP) API client `mp-api`.
895+
To use the MP Contribs client swith up-to-date features, please `pip install 'mp-api[contribs]'`:
896+
```py
897+
from mp_api.client import MPRester
898+
899+
with MPRester() as mpr:
900+
mpr.contribs.query_contributions(...)
901+
```"""
902+
)
903+
892904
# NOTE bravado future doesn't work with concurrent.futures
893905
# - Kong forwards consumer headers when api-key used for auth
894906
# - forward consumer headers when connecting through localhost

0 commit comments

Comments
 (0)