Base data models for the datagarden.
Project description
The-datagarden-models package is supporting package for the-datagarden api (see The DataGarden Website) and the-datagarden package (see the-datagarden package). The-datagarden api and package are developed to give data professionals easy access to regional data from public sources without having to understand the sources, api’s and data formats from those public data sources.
The-datagarden-models package contains the Pydantic models for the data returned by the-datagarden api and can be used to work with the data returned by the api in a more pythonic way than only using the json.
A quick example
If you have a user account at the-datagarden.io, you can start using the SDK right away:
# Retrieve a country object from the datagarden API
>>> from the-datagarden import TheDataGardenAPI
>>> the_datagarden_api = TheDataGardenAPI(email='your-email@example.com', password='your-password')
>>> nl = the_datagarden_api.netherlands()
>>> nl_demographics = nl.demographics(from_period="2010-01-01", source="united nations")
>>> nl_demographics
TheDataGardenRegionalDataModel : Demographics : (count=15)
this returns a TheDataGardenRegionalDataModel containimg the demographics data in this case 15 records. Each of those records will contain a Demographics object for the region for the specified period.
Read more
Access to The DataGarden API
To use the DataGarden SDK, you need access to the The DataGarden API. Simply register for free at https://www.the-datagarden.io and you will have an inital free access account to the API with access to country and continent data.
Visit https://www.the-datagarden.io for to register for free.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file the_datagarden_models-1.7.7.tar.gz.
File metadata
- Download URL: the_datagarden_models-1.7.7.tar.gz
- Upload date:
- Size: 28.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a2aefd589add7ce417c26feb41e827c17cad143ae36316a7f4d0178365f54b13
|
|
| MD5 |
5daa9386455e45b37fddf220145f3dff
|
|
| BLAKE2b-256 |
10e82f122678aabbfac668140f4dc21971e1e82ff55ddbf46c64755a96b0356b
|
File details
Details for the file the_datagarden_models-1.7.7-py3-none-any.whl.
File metadata
- Download URL: the_datagarden_models-1.7.7-py3-none-any.whl
- Upload date:
- Size: 45.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4d8d599d7d30eacf3e396197d35c2f1f2aa019a7d4c0b30fcddcc857d02b1be
|
|
| MD5 |
c0acf15e38b62950324e89f45d5ae2e3
|
|
| BLAKE2b-256 |
05f9311884bed076b08aa7f0688be754ff0225a4f40b1524c091218697e90a9f
|