Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

the_datagarden_models-1.6.1.tar.gz (19.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

the_datagarden_models-1.6.1-py3-none-any.whl (28.8 kB view details)

Uploaded Python 3

File details

Details for the file the_datagarden_models-1.6.1.tar.gz.

File metadata

  • Download URL: the_datagarden_models-1.6.1.tar.gz
  • Upload date:
  • Size: 19.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.21

File hashes

Hashes for the_datagarden_models-1.6.1.tar.gz
Algorithm Hash digest
SHA256 53bdd6873e609149d8a0f39d83e4c37db8b781984393df28d7fc968b4d1fc479
MD5 a460f0f396ef79f72bc1353104dcc844
BLAKE2b-256 af863fa4e5a55f11623f5fad17f8cf864e29c2f55900109e4536976377090f09

See more details on using hashes here.

File details

Details for the file the_datagarden_models-1.6.1-py3-none-any.whl.

File metadata

File hashes

Hashes for the_datagarden_models-1.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 992dbc799473a1338a57ffd4bbe5b77451ab37142ed49e7b0884f07c3023ce2d
MD5 2f229010b7c1da9c12b079bd4db32de9
BLAKE2b-256 5c89ebbef0f6422590b5f440a62331b572f1b1c1e7cec31d9202faba02cb69b0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page