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.3.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.3-cp313-cp313-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.13Windows x86-64

dsgrid_toolkit-0.3.3-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.3-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.5 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

dsgrid_toolkit-0.3.3-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.3-cp312-cp312-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.12Windows x86-64

dsgrid_toolkit-0.3.3-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.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

dsgrid_toolkit-0.3.3-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.3-cp311-cp311-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.11Windows x86-64

dsgrid_toolkit-0.3.3-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.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

dsgrid_toolkit-0.3.3-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.3.tar.gz.

File metadata

  • Download URL: dsgrid_toolkit-0.3.3.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.3.tar.gz
Algorithm Hash digest
SHA256 3ac0f7d1c05e46a0fa6feb80aa8230552951047d2578c132202d6553165cd3f2
MD5 9e7c45d056cacbcdadab8b4d2620b8a1
BLAKE2b-256 00f7265be7cfcc39b285a25e781d2efa8da52620fa6139fc292fe637eae3fd16

See more details on using hashes here.

Provenance

The following attestation bundles were made for dsgrid_toolkit-0.3.3.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.3-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for dsgrid_toolkit-0.3.3-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 7a25b0b3b5db9b795b18ce6410a39bfd16d5430330de274873cefaaeaf835d59
MD5 11f81fc8e974cb73e18bcdfb1b9a3cf8
BLAKE2b-256 c7175b127724b1af84e9d3bdeb7aa3b80cb8bac1a71342d551aecb81c2cb774c

See more details on using hashes here.

Provenance

The following attestation bundles were made for dsgrid_toolkit-0.3.3-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.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for dsgrid_toolkit-0.3.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4bb61ffd05f96edbd6924f2d0b929528979c557df0c0a4ac36854957d26cd506
MD5 60f08cbf7ce115f3899b0cc3bb126409
BLAKE2b-256 4ad4f4d461d1f5f24f92742681083e2ad7207d61df75fbedabb8cf2f9769c84c

See more details on using hashes here.

Provenance

The following attestation bundles were made for dsgrid_toolkit-0.3.3-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.3-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for dsgrid_toolkit-0.3.3-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 66386061383050cbb567db25fa59b10221fe567d47c3d511fc4c525f630ea4f3
MD5 5c91e7683c8a98ddf6fe123c23bdd119
BLAKE2b-256 80941a0853f5b6885a154eb155ac22ecd99fed8c31d16276bbb3ded8f4b427ac

See more details on using hashes here.

Provenance

The following attestation bundles were made for dsgrid_toolkit-0.3.3-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.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.3-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for dsgrid_toolkit-0.3.3-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3d877d79ebfd67f2d8e1738b65cfd0c79e2e30641930cd414183c6eee0a9830a
MD5 61f4e99ba691138b83ae9f9fd2a3d254
BLAKE2b-256 fd3e954118dfdafd7dc7072911264ac3226058001c7248b254475ca72e0ae9c5

See more details on using hashes here.

Provenance

The following attestation bundles were made for dsgrid_toolkit-0.3.3-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.3-cp313-cp313-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for dsgrid_toolkit-0.3.3-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 8015ab2e7532e3a74b0df0bfe8ff4a0e99f52104b39d1a6e495d8ea0630528b4
MD5 03e52626b0d2600262ae1728e79831e8
BLAKE2b-256 da4ac6c4d477d491918bea7d122de7aadc0d409381e615a37c62501a10da0291

See more details on using hashes here.

Provenance

The following attestation bundles were made for dsgrid_toolkit-0.3.3-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.3-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for dsgrid_toolkit-0.3.3-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b83505afa78f6b585ce09ac84c574e44ed916441d104cad71d95ee1204034828
MD5 58c2c14b4dd5c879139155582b3a27a3
BLAKE2b-256 c945900838bd77860f95580a23263986baf47854c446a0dc4a04488248e0e88e

See more details on using hashes here.

Provenance

The following attestation bundles were made for dsgrid_toolkit-0.3.3-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.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for dsgrid_toolkit-0.3.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 39fd46b3ffacb02161f18cf036a238bf3ad1851489c9b0a51569cb26b0df8034
MD5 9a21921ded0f6928f7d8813cfe8e4307
BLAKE2b-256 c55fe1fa85c05f5db10cb1bbd8c418bee990c9e03ad1aeb9ebe4a5cfe39cb93f

See more details on using hashes here.

Provenance

The following attestation bundles were made for dsgrid_toolkit-0.3.3-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.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for dsgrid_toolkit-0.3.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 37cf4eff34fd18af265640374b959d1086965ca2c4ecb15e9989a5d2f6534268
MD5 a2e99c9e85abb94069c34c70b6fbcee9
BLAKE2b-256 a3f5b1995be7b391849b5fcf013c959fcfa7f13a899fb1dac9f069c2fa014821

See more details on using hashes here.

Provenance

The following attestation bundles were made for dsgrid_toolkit-0.3.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.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.3-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for dsgrid_toolkit-0.3.3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1a925cb28534567c3475c8568f5f2a63944150a698d7002a8a24cc1ba94ea8fb
MD5 8034412c72c7e2491da109b20349b638
BLAKE2b-256 ba3f9cd5cb48e249b4bd9b9b44de0877c0799c9e5ba12bb447fb70fad9259198

See more details on using hashes here.

Provenance

The following attestation bundles were made for dsgrid_toolkit-0.3.3-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.3-cp312-cp312-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for dsgrid_toolkit-0.3.3-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 3f8090850db53746599f5177c2a8eac6d293cde980f93b0bd254b78e5a997ed8
MD5 22347f5dd1694e0cb52af9e06bfc58af
BLAKE2b-256 31840df667899bd1cecfbe16bcd6fceb0fd9e7181e3609078b0760d13d361166

See more details on using hashes here.

Provenance

The following attestation bundles were made for dsgrid_toolkit-0.3.3-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.3-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for dsgrid_toolkit-0.3.3-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b6e48352d5bfdb67c173d5d1e21ccd689701e36f2f91d985699274b882f51aaf
MD5 0d60dbc772f17afabbdbf21e6110d984
BLAKE2b-256 9d26ca1367cfef57cdbd40cd39711cefab99552b8dbf75b0d6e937ab37af52fd

See more details on using hashes here.

Provenance

The following attestation bundles were made for dsgrid_toolkit-0.3.3-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.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for dsgrid_toolkit-0.3.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7efafe7cfc328e69fa5aee8647dabff4a2912a1461fb8b38b848ef6becff68da
MD5 5d73d03cc9fdb038cc253232a8dd11d8
BLAKE2b-256 482933cc4ef9a0f011f8f988ecd6c6cb3312eb84f0ad3230cce670d7ce67b51a

See more details on using hashes here.

Provenance

The following attestation bundles were made for dsgrid_toolkit-0.3.3-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.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for dsgrid_toolkit-0.3.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 4432336a8c4c38c0efcd69a047883eaf9dcb2b6c8e3a0f1f6aaea9bee7cd5d36
MD5 e42806562170129f823886eebed4096c
BLAKE2b-256 6a7674f2ca58b68ad1586392b09b812f346de9a148ea689724686dae938186ed

See more details on using hashes here.

Provenance

The following attestation bundles were made for dsgrid_toolkit-0.3.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.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.3-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for dsgrid_toolkit-0.3.3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 86680c0984d4de5ab3e78f9a5d650b2d59ab365d1113a5a4c26c8b989de08902
MD5 08c4897115a791f4e6eebe8b30931685
BLAKE2b-256 5cd4a012be9764695896008ddf41a364e5e38f1ecf5248560ee0f33f67719f57

See more details on using hashes here.

Provenance

The following attestation bundles were made for dsgrid_toolkit-0.3.3-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.3-cp311-cp311-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for dsgrid_toolkit-0.3.3-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 bf1208c0003bafbe8806365c47d6bc6bce7e7c5e190b89d1c98468acb565c827
MD5 97aec841fa4f0b7c1efa19006f6618a8
BLAKE2b-256 3b98cb34f5d9e52230459606caf6dc9391b0bd5984b2a1ea927c44f0b6192841

See more details on using hashes here.

Provenance

The following attestation bundles were made for dsgrid_toolkit-0.3.3-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