Google has launched a Python consumer library to question the Data Commons platform, which organizes the world’s publicly accessible statistical knowledge. The library helps customized situations, amongst different capabilities.
Announced June 26, the brand new Data Commons Python library can be utilized to discover the Data Common information graph and retrieve statistical knowledge from greater than 200 datasets. Available domains embrace demographics, economic system, training, setting, vitality, well being, and housing. Developers can use the library’s customized situations to programmatically question any public or personal occasion, whether or not hosted domestically or on the Google Cloud Platform. Developers can use customized situations to seamlessly combine proprietary datasets with the Data Commons information graph, in keeping with Google.
Based on the V2 REST API, the Data Commons Python library helps Pandas dataframe APIs as an integral module, with a single set up package deal permitting seamless use with different API endpoints in the identical consumer, Google says. API key administration and different stateful operations are constructed into the consumer class. Integration with Pydantic libraries improves kind security, serialization, and validation. Additionally, a number of response codecs are supported, together with JSON and Python dictionaries. With the library, builders can map entities from different datasets to entities in Data Commons. The Data Commons Python API consumer library is hosted on GitHub and accessible on pypi.org.







