Skip to main content

the-datagarden-models

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.

Version 3.0.0 introduces the V2 model family (DemographicsV2, EconomicsV2, TradeV2, …): every quantified value is a Measure (amount × unit, explicit currency and price basis), scalar types are bounded, and key namespaces are generated from the models themselves. The V1 family stays importable and frozen for one major cycle (a DeprecationWarning is emitted on import); stored documents resolve to the right family via resolve_model(name, version). See CHANGELOG.md.

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.

Release files for the-datagarden-models 3.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for the-datagarden-models 3.3.0
File Size Uploaded
the_datagarden_models-3.3.0.tar.gz 76.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for the-datagarden-models 3.3.0
File Interpreter ABI Platform
the_datagarden_models-3.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 200.7 kB

Release files / the_datagarden_models-3.3.0.tar.gz

Download URL the_datagarden_models-3.3.0.tar.gz
Size 76.3 kB
Tags Source
SHA-256 checksum
How to use checksums
9ab7b1f6f2ead753d142319850ff5b93080466d9254b60b69a9fcb1a35d30ad8
BLAKE2b-256 checksum
How to use checksums
3b3b6bef220d9d97f5170ec57395b0b41c76f58c27c5d5ff762c865a5e1781fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / the_datagarden_models-3.3.0-py3-none-any.whl

Download URL the_datagarden_models-3.3.0-py3-none-any.whl
Size 124.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
31c34c2a023c0678c807cfa6da11cc82000a4f4da28389371ae0b344c88b11d6
BLAKE2b-256 checksum
How to use checksums
a1ccc73059e1a3d55226df8fe920236e9df154e10bac465cc33089db65f5abdb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

3.3.0 This release

2 release files

3.2.1

2 release files

3.0.0

2 release files

1.13.0

2 release files

1.8.0

2 release files

1.7.7

2 release files

1.7.6

2 release files

1.7.1

2 release files

1.7.0

2 release files

1.6.16

2 release files

1.6.15

2 release files

1.6.14

2 release files

1.6.13

2 release files

1.6.12

2 release files

1.6.11

2 release files

1.6.10

2 release files

1.6.9

2 release files

1.6.8

2 release files

1.6.7

2 release files

1.6.4

2 release files

1.6.3

2 release files

1.6.2

2 release files

1.6.1

2 release files

1.6.0

2 release files

1.5.6

2 release files

1.5.5

2 release files

1.5.4

2 release files

1.5.3

2 release files

1.5.2

2 release files

1.5.1

2 release files

1.5.0

2 release files

1.4.9

2 release files

1.4.8

2 release files

1.4.7

2 release files

1.4.6

2 release files

1.4.5

2 release files

1.4.4

2 release files

1.4.3

2 release files

1.3.4

2 release files

1.3.3

2 release files

1.3.2

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.8

2 release files

1.2.7

2 release files

1.2.6

2 release files

1.2.5

2 release files

1.2.4

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.1

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page