From 75fb285f562ba7593acd8e8a3f553ff2aa9474f7 Mon Sep 17 00:00:00 2001 From: Natalie Diaz Date: Mon, 12 Jan 2026 12:23:43 -0800 Subject: [PATCH 1/3] Add deprecation warnings to datacommons and datacommons_pandas packages --- datacommons/README.md | 2 ++ datacommons/__init__.py | 9 +++++++++ datacommons/setup.py | 3 ++- datacommons_pandas/README.md | 2 ++ datacommons_pandas/__init__.py | 9 +++++++++ datacommons_pandas/setup.py | 3 ++- 6 files changed, 26 insertions(+), 2 deletions(-) diff --git a/datacommons/README.md b/datacommons/README.md index 259a7a16..29ceb49c 100644 --- a/datacommons/README.md +++ b/datacommons/README.md @@ -1,3 +1,5 @@ +**DEPRECATED: This library is no longer maintained. Please migrate to the [datacommons_client](https://pypi.org/project/datacommons-client/) library. For help on translating your requests, see the [Migration guide](https://docs.datacommons.org/api/python/v2/migration.html).** + # Data Commons Python API This is a Python library for accessing data in the Data Commons Graph. diff --git a/datacommons/__init__.py b/datacommons/__init__.py index 9e0c1f5b..ecd1b60f 100644 --- a/datacommons/__init__.py +++ b/datacommons/__init__.py @@ -14,6 +14,15 @@ # isort: skip_file +import warnings + +warnings.warn( + "\n\n'datacommons' is deprecated and will no longer be updated. " + "Please migrate to the 'datacommons_client' package. " + "Contact support@datacommons.org with any questions.\n", + category=DeprecationWarning, + stacklevel=2) + ################################## IMPORTANT ################################# # All user-facing functions in this package must be symlinked to the # # datacommons_pandas pkg. This is so that users do not need to import both # diff --git a/datacommons/setup.py b/datacommons/setup.py index b2cee518..e05d54b4 100644 --- a/datacommons/setup.py +++ b/datacommons/setup.py @@ -27,7 +27,7 @@ EMAIL = 'support@datacommons.org' AUTHOR = 'datacommons.org' REQUIRES_PYTHON = '>=3.7' -VERSION = '1.4.3' +VERSION = '1.4.4' REQUIRED = ['six', 'requests'] PACKAGES = ['datacommons'] @@ -48,6 +48,7 @@ include_package_data=True, license='Apache 2.0', classifiers=[ + 'Development Status :: 7 - Inactive', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python', diff --git a/datacommons_pandas/README.md b/datacommons_pandas/README.md index 856ccf67..437af89f 100644 --- a/datacommons_pandas/README.md +++ b/datacommons_pandas/README.md @@ -1,3 +1,5 @@ +**DEPRECATED: This library is no longer maintained. Please migrate to the [datacommons_client](https://pypi.org/project/datacommons-client/) library. For help on translating your requests, see the [Migration guide](https://docs.datacommons.org/api/python/v2/migration.html).** + # Data Commons Pandas API This is a Python library for creating pandas objects with data in the diff --git a/datacommons_pandas/__init__.py b/datacommons_pandas/__init__.py index 8e15b457..e8353687 100644 --- a/datacommons_pandas/__init__.py +++ b/datacommons_pandas/__init__.py @@ -14,6 +14,15 @@ # isort: skip_file +import warnings + +warnings.warn( + "\n\n'datacommons_pandas' is deprecated and will no longer be updated. " + "Please migrate to the 'datacommons_client' package. " + "Contact support@datacommons.org with any questions.\n", + category=DeprecationWarning, + stacklevel=2) + from datacommons_pandas.df_builder import build_time_series, build_time_series_dataframe, build_multivariate_dataframe ################################ SYMLINK FILES ################################ diff --git a/datacommons_pandas/setup.py b/datacommons_pandas/setup.py index 7335c23f..0d7329f8 100644 --- a/datacommons_pandas/setup.py +++ b/datacommons_pandas/setup.py @@ -27,7 +27,7 @@ EMAIL = 'support@datacommons.org' AUTHOR = 'datacommons.org' REQUIRES_PYTHON = '>=3.7' -VERSION = '0.0.3' +VERSION = '0.0.4' REQUIRED = ['pandas', 'six', 'requests'] PACKAGES = ['datacommons_pandas'] @@ -48,6 +48,7 @@ include_package_data=True, license='Apache 2.0', classifiers=[ + 'Development Status :: 7 - Inactive', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python', From 8e2700b0bb4f9bd5e5e1e45044252f417b21a42a Mon Sep 17 00:00:00 2001 From: natalie <77713883+n-h-diaz@users.noreply.github.com> Date: Mon, 12 Jan 2026 13:26:57 -0800 Subject: [PATCH 2/3] Update datacommons/__init__.py Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- datacommons/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/datacommons/__init__.py b/datacommons/__init__.py index ecd1b60f..a156ebbd 100644 --- a/datacommons/__init__.py +++ b/datacommons/__init__.py @@ -17,8 +17,9 @@ import warnings warnings.warn( - "\n\n'datacommons' is deprecated and will no longer be updated. " - "Please migrate to the 'datacommons_client' package. " + "\n\n'datacommons' is deprecated and will no longer be updated.\n" + "Please migrate to the 'datacommons_client' package.\n" + "Migration guide: https://docs.datacommons.org/api/python/v2/migration.html\n" "Contact support@datacommons.org with any questions.\n", category=DeprecationWarning, stacklevel=2) From aa48fc101a43d64c493790da4a59bbbd903d267a Mon Sep 17 00:00:00 2001 From: natalie <77713883+n-h-diaz@users.noreply.github.com> Date: Mon, 12 Jan 2026 13:27:45 -0800 Subject: [PATCH 3/3] Update datacommons_pandas/__init__.py Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- datacommons_pandas/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/datacommons_pandas/__init__.py b/datacommons_pandas/__init__.py index e8353687..c593ca80 100644 --- a/datacommons_pandas/__init__.py +++ b/datacommons_pandas/__init__.py @@ -17,8 +17,9 @@ import warnings warnings.warn( - "\n\n'datacommons_pandas' is deprecated and will no longer be updated. " - "Please migrate to the 'datacommons_client' package. " + "\n\n'datacommons_pandas' is deprecated and will no longer be updated.\n" + "Please migrate to the 'datacommons_client' package.\n" + "Migration guide: https://docs.datacommons.org/api/python/v2/migration.html\n" "Contact support@datacommons.org with any questions.\n", category=DeprecationWarning, stacklevel=2)