Skip to main content

Python API for accessing demand-side grid model (dsgrid) datasets

Project description

dsgrid

Documentation codecov

Python API for contributing to and accessing demand-side grid model (dsgrid) projects and datasets.

⚠️ dsgrid is under active development and does not yet have a formal package release. Details listed here are subject to change. Please reach out to the dsgrid coordination team with any questions or other feedback. ⚠️

Install | Usage | Uninstall

Install

Virtual environment | Dependencies | from PIPY/pip | from pip+git | from cloned repository

Virtual environment

Create a virtual environment in which to install dsgrid. Anaconda or miniconda is recommended.

conda create -n dsgrid python=3.11
conda activate dsgrid

Dependencies

dsgrid uses Apache Spark to manage big data. There are no separate installation steps for Apache Spark beyond installing the dsgrid package and installing:

pip install "dsgrid-toolkit[spark]"

Otherwise installing the pyspark Python dependency handles it.

However, you should be aware that Apache Spark's Microsoft Windows support is poor and essentially limited to local mode. That is, if you use dsgrid on a Windows machine you should not attempt to install a full version of Spark nor expect to run on a Spark cluster. As such, we recommend limiting dsgrid use on Windows to browsing the registry, registering and submitting small- to medium-sized datasets, or development work with small test projects. Full dsgrid functionality with large projects requires additional computational resources, e.g., high performance or cloud computing, typically on a Linux operating system.

Additional Notes

  • If pyspark complains about not finding Python, you may need to locate your python executable file (python.exe on Windows), copy it, and rename the copy to python3 (python3.exe on Windows)

Spark requires Java 8 or later with the JAVA_HOME environment variable set to the Java installation directory.

On Linux you can install OpenJDK with conda:

conda install openjdk

Windows install instructions are below.

Windows

To install Apache Spark on Windows, follow these instructions.

From PIPY/pip

pip install dsgrid-toolkit

or

pip install "dsgrid-toolkit[spark]"

From pip+git

With ssh keys:

pip install git+ssh://git@github.com/dsgrid/dsgrid.git@main

# or

pip install git+ssh://git@github.com/dsgrid/dsgrid.git@develop

From http:

pip install git+https://github.com/dsgrid/dsgrid.git@main

# or

pip install git+https://github.com/dsgrid/dsgrid.git@develop

From Cloned Repository

First, clone the repository and change into the dsgrid directory. For example:

cd ~                                       # or other directory where you put repositories
git clone git@github.com:dsgrid/dsgrid.git # or the http address
cd dsgrid

Then install the pacakge using the pip -e flag to directly use the files in the cloned repository.

Users:

pip install -e .

Developers:

pip install -e '.[dev,spark]'

Usage

dsgrid is primarily a command-line interface (CLI) tool. To see the available commands:

dsgrid --help

Uninstall

pip uninstall dsgrid

If you are using a conda environment

conda deactivate

Software Record

dsgrid is developed under NREL Software Record SWR-21-52, "demand-side grid model".

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

dsgrid_toolkit-0.3.2.tar.gz (264.5 kB view details)

Uploaded Source

Built Distributions

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

dsgrid_toolkit-0.3.2-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.6 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

dsgrid_toolkit-0.3.2-cp314-cp314-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.14Windows x86-64

dsgrid_toolkit-0.3.2-cp313-cp313-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.13Windows x86-64

dsgrid_toolkit-0.3.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

dsgrid_toolkit-0.3.2-cp313-cp313-macosx_11_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

dsgrid_toolkit-0.3.2-cp313-cp313-macosx_10_12_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

dsgrid_toolkit-0.3.2-cp312-cp312-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.12Windows x86-64

dsgrid_toolkit-0.3.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

dsgrid_toolkit-0.3.2-cp312-cp312-macosx_11_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

dsgrid_toolkit-0.3.2-cp312-cp312-macosx_10_12_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

dsgrid_toolkit-0.3.2-cp311-cp311-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.11Windows x86-64

dsgrid_toolkit-0.3.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

dsgrid_toolkit-0.3.2-cp311-cp311-macosx_11_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

dsgrid_toolkit-0.3.2-cp311-cp311-macosx_10_12_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

File details

Details for the file dsgrid_toolkit-0.3.2.tar.gz.

File metadata

  • Download URL: dsgrid_toolkit-0.3.2.tar.gz
  • Upload date:
  • Size: 264.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for dsgrid_toolkit-0.3.2.tar.gz
Algorithm Hash digest
SHA256 6ee8368b5804d0628c71289fcee45a1b4fd595f3ba92d81a65bded5b21941c33
MD5 c0dd371a9fd675cc762e3115ba17e922
BLAKE2b-256 7e7d8a66e43b7ed2500acbb6642267b8826c969fc370792fbddab4e3481857a8

See more details on using hashes here.

Provenance

The following attestation bundles were made for dsgrid_toolkit-0.3.2.tar.gz:

Publisher: publish_to_pypi.yml on dsgrid/dsgrid

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dsgrid_toolkit-0.3.2-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for dsgrid_toolkit-0.3.2-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0928616b370d7c6eeaf469c9a1df3ecb41f04bb7744ecd30229f3caf02dd0b80
MD5 d72f0069ae8f6f3d8e9411c808ff9e78
BLAKE2b-256 14a29b036bf377ddf2a067f0a2cd8d76198fa0db3c13b5eec5f7fc4985f6f644

See more details on using hashes here.

Provenance

The following attestation bundles were made for dsgrid_toolkit-0.3.2-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: publish_to_pypi.yml on dsgrid/dsgrid

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dsgrid_toolkit-0.3.2-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for dsgrid_toolkit-0.3.2-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 41e7c318862099c0d11e710eb44aec7f6f686e83c7c462d65899fbb3ca070cc4
MD5 023096098c1b20edcf9d2914e4c865d6
BLAKE2b-256 5bfc600fc6febd729065365455079476f84b9db8439a0ea1fdae18490e314898

See more details on using hashes here.

Provenance

The following attestation bundles were made for dsgrid_toolkit-0.3.2-cp314-cp314-win_amd64.whl:

Publisher: publish_to_pypi.yml on dsgrid/dsgrid

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dsgrid_toolkit-0.3.2-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for dsgrid_toolkit-0.3.2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 b70ee3708716122087ccbccc68892fa11923d3eaa8149dfa54bf681882792206
MD5 da64d2a94e62b3475f22e4446e03257d
BLAKE2b-256 1674d233c92734a052a23e440d28254d43348e8c6477d701e8387ef72c801dca

See more details on using hashes here.

Provenance

The following attestation bundles were made for dsgrid_toolkit-0.3.2-cp313-cp313-win_amd64.whl:

Publisher: publish_to_pypi.yml on dsgrid/dsgrid

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dsgrid_toolkit-0.3.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for dsgrid_toolkit-0.3.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0e2706cf62defa99115b5ec9cb235b5a545f45bc0ad7e2431ebd9295ab32f575
MD5 fc6a1150c7f1b6393bc7b6ef816cd5f3
BLAKE2b-256 a5ec71883b3d2243b06be1685bd4e5d441b2adc8354ccba296c6108b9b7e86cd

See more details on using hashes here.

Provenance

The following attestation bundles were made for dsgrid_toolkit-0.3.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: publish_to_pypi.yml on dsgrid/dsgrid

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dsgrid_toolkit-0.3.2-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for dsgrid_toolkit-0.3.2-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9d726e5a243e510b99cd258219ee34b0baec108173e5a06aa78b6666c3d3f257
MD5 2df80bd04b54ceef4105eb2c08af40da
BLAKE2b-256 948f877161b0ac439d88beaebec64de6c12968792c5b188d3fc98c3ec8c6cca5

See more details on using hashes here.

Provenance

The following attestation bundles were made for dsgrid_toolkit-0.3.2-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: publish_to_pypi.yml on dsgrid/dsgrid

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dsgrid_toolkit-0.3.2-cp313-cp313-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for dsgrid_toolkit-0.3.2-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 5a35b22fd7ea098a7100ef10617c5d84da56248eefd193b616bbbd1a375f8639
MD5 81b08e82e7cc0cb011c0f7a9e5de637f
BLAKE2b-256 1c15e784ee813a2691a033f3d0abf19a192c8c317272152bddd971bdff52a3b8

See more details on using hashes here.

Provenance

The following attestation bundles were made for dsgrid_toolkit-0.3.2-cp313-cp313-macosx_10_12_x86_64.whl:

Publisher: publish_to_pypi.yml on dsgrid/dsgrid

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dsgrid_toolkit-0.3.2-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for dsgrid_toolkit-0.3.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e7b91be6f75bb9f84e0be14eb7d3f9d37615985542d16d974f9cffde75036f5a
MD5 c50ed415ae53f1bce9a020aa7588f234
BLAKE2b-256 cf7a492540f881a768cde950fc5cd335f9bff786bad3514798b5c4b19ff5df75

See more details on using hashes here.

Provenance

The following attestation bundles were made for dsgrid_toolkit-0.3.2-cp312-cp312-win_amd64.whl:

Publisher: publish_to_pypi.yml on dsgrid/dsgrid

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dsgrid_toolkit-0.3.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for dsgrid_toolkit-0.3.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f6e593105d9fb891ed433eb8c2acef8b9dfb11d5fd8113d94c21c3474f460589
MD5 c6a9b13f000c7ad9f20b060b80fa50b2
BLAKE2b-256 ae120896d1e84b1e9102c52e3299bd9c21dda383c6eb042fe6497a0445c4a7d0

See more details on using hashes here.

Provenance

The following attestation bundles were made for dsgrid_toolkit-0.3.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: publish_to_pypi.yml on dsgrid/dsgrid

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dsgrid_toolkit-0.3.2-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for dsgrid_toolkit-0.3.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 03a9904b9842ce6d3bb23f9f9feb256d38fb76b3349256adcd2a6a3ac0186d0b
MD5 6fcca5ee6f21522ed451a80d6a20e094
BLAKE2b-256 2ed5adf8d245448a899cd14b4dc1eeb695c70b0cd6a6e4e2d0e941227306aa5b

See more details on using hashes here.

Provenance

The following attestation bundles were made for dsgrid_toolkit-0.3.2-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: publish_to_pypi.yml on dsgrid/dsgrid

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dsgrid_toolkit-0.3.2-cp312-cp312-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for dsgrid_toolkit-0.3.2-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 5a745830249f53d6ff6be00b698d35e011e8aecd53be4f37625382770772a828
MD5 502eb57f3b99bfee78831ccd90c3ffef
BLAKE2b-256 66641c904b0fc7280d2350ee39666b9da7dbe7f7303b54a63dff461c5c4959c5

See more details on using hashes here.

Provenance

The following attestation bundles were made for dsgrid_toolkit-0.3.2-cp312-cp312-macosx_10_12_x86_64.whl:

Publisher: publish_to_pypi.yml on dsgrid/dsgrid

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dsgrid_toolkit-0.3.2-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for dsgrid_toolkit-0.3.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 99f613dc891b8e70e2542ddd7f2743d1779b08385f451a922adc7ae18aa5830a
MD5 c700ad1408bdca7b80c5016750df0f2a
BLAKE2b-256 53bc0b2437b9a9b4f8bcd2268e8a817452f900a844e4a347cf1dbbeeb40b2108

See more details on using hashes here.

Provenance

The following attestation bundles were made for dsgrid_toolkit-0.3.2-cp311-cp311-win_amd64.whl:

Publisher: publish_to_pypi.yml on dsgrid/dsgrid

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dsgrid_toolkit-0.3.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for dsgrid_toolkit-0.3.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1cc0e94323e469962a44c94a5f7a363eb3bed6c8b9a14e1f2b2ace427d6d665e
MD5 e620712bae308aaf106398121807cd2e
BLAKE2b-256 23745f809da0f74dad149893efbe45bd1052316e5b5d356b3da1fff8fe480584

See more details on using hashes here.

Provenance

The following attestation bundles were made for dsgrid_toolkit-0.3.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: publish_to_pypi.yml on dsgrid/dsgrid

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dsgrid_toolkit-0.3.2-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for dsgrid_toolkit-0.3.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3d9cd7d2d434c85928a2394774ca0b5cd729dbf2579333aa21b977019ba937e1
MD5 837cd27ed1ecbafc2937a353e1abff74
BLAKE2b-256 53b8f3046a3431ff7d6f40a32193b67b8bf00903fc3282979864766cbfe19028

See more details on using hashes here.

Provenance

The following attestation bundles were made for dsgrid_toolkit-0.3.2-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: publish_to_pypi.yml on dsgrid/dsgrid

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dsgrid_toolkit-0.3.2-cp311-cp311-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for dsgrid_toolkit-0.3.2-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 7bfe8d4a068f178fe6c9fcbc0660f83df6bd2d20992fbb3c873dbf8ac25b3440
MD5 30c553703a45ce39c1fe44b305be97d5
BLAKE2b-256 d1f8fe055168765668d16550af939aff08e6bb4dfc1b27a33873c3629974f116

See more details on using hashes here.

Provenance

The following attestation bundles were made for dsgrid_toolkit-0.3.2-cp311-cp311-macosx_10_12_x86_64.whl:

Publisher: publish_to_pypi.yml on dsgrid/dsgrid

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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