Skip to content

Repository files navigation

Data Commons Python Client API

This is a Python library for accessing data in the Data Commons knowledge graph. To get started, install this package from pip.

pip install git+https://github.com/google/datacommons.git@stable-1.x

Once the package is installed, import datacommons.

import datacommons as dc

You will also need to provision an API key by enabling the Data Commons API on GCP. Once you have the API key, simply add the following line to your code.

dc.set_api_key('YOUR-API-KEY')

Please take a look at datacommons/examples for examples on how to use this package. To find more tutorials and documentation, please refer to our readthedocs!

Licence

Apache 2.0

Development

The Python Client API currently supports python>=3.6. We use bazel as our build system. To test, first install bazel then run the following:

    $ bazel build //...
    $ bazel test //...

Support

For general questions or issues about the API, please open an issue on our issues page. For all other questions, please send an email to support@datacommons.org.

Note - This is not an officially supported Google product.

About

Python client library to access Data Commons

Topics

Resources

Contributing

Security policy

Stars

100 stars

Watchers

24 watching

Forks

Releases

Packages

Used by

Contributors

Languages