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.4.0.tar.gz (268.3 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.4.0-cp313-cp313-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.13Windows x86-64

dsgrid_toolkit-0.4.0-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.4.0-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.4.0-cp313-cp313-macosx_11_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

dsgrid_toolkit-0.4.0-cp313-cp313-macosx_10_12_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

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

Uploaded CPython 3.12Windows x86-64

dsgrid_toolkit-0.4.0-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.4.0-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.4.0-cp312-cp312-macosx_11_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

dsgrid_toolkit-0.4.0-cp312-cp312-macosx_10_12_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

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

Uploaded CPython 3.11Windows x86-64

dsgrid_toolkit-0.4.0-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.4.0-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.4.0-cp311-cp311-macosx_11_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

dsgrid_toolkit-0.4.0-cp311-cp311-macosx_10_12_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: dsgrid_toolkit-0.4.0.tar.gz
  • Upload date:
  • Size: 268.3 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.4.0.tar.gz
Algorithm Hash digest
SHA256 4717df968459fc2e4ccf1f3b639af0374a2d469f354f39b506f46822429758e0
MD5 0f2ca5c8eb35a6c1061084d540d0c1aa
BLAKE2b-256 4181da9d2bac29a49244408d15983bb06a7ef11f7be41ac27b22b121e81993fc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dsgrid_toolkit-0.4.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 aef2273ba1bc362ec16be5184007928c2ac3e8a076bd0450ce4509f2b10b1190
MD5 f187d00b25faa848860afbeb12e03f2d
BLAKE2b-256 dbe92632a843066d485c7185ca5f734dbd1a641bd9f1a5182c703cb8bdbc3a96

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dsgrid_toolkit-0.4.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fd5cbe6b37c22e8a9c1ec06f4e9c99ef4594c85467df0b53735e916f72c20a38
MD5 0b5aaf58127444e61135f0d816ce5655
BLAKE2b-256 3ad4ca70e2acbbe45f53e7b2976e544941764a590f8f4b86ad22a9b91521118b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dsgrid_toolkit-0.4.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ebb9d9c9e698eeff8b3685727acef1eea68dd1ef024d6d5e4d062659beba339f
MD5 93380abef7e55fa14e787ab87a24cc78
BLAKE2b-256 93b7427990b7c0d10fae3aec8cd841b5a9c9315d49252dbb53889a5464306ecf

See more details on using hashes here.

Provenance

The following attestation bundles were made for dsgrid_toolkit-0.4.0-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.4.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for dsgrid_toolkit-0.4.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6a89d708201999bfa3f3f4c7952649f7c52929bce0fec9a4a1505493f3fd2611
MD5 23e67d2c750f42fb0c61bd8b7dd618ae
BLAKE2b-256 0c95a83987cf07cd85a73517cdd0f8610da883660a4523e012e82e54de084672

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dsgrid_toolkit-0.4.0-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 c0e40382b4c9db711ec333a24e010a4a83a2e5c6d2f6f4f78cf7f28b3b044b82
MD5 443d504d3050a6d99195aa0c452d1080
BLAKE2b-256 7ae7c7b54b063db05624bfa1df6ff9ad4d162501556200112723108ad8f5fb7f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dsgrid_toolkit-0.4.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a5a1abeb3536b738480258f73e6d8af45d6eb73d511f633433ed704bed153a45
MD5 8a76c54a5fcb1ee0ab0ea50fab5d5e38
BLAKE2b-256 297e136dc49c6cb7b8977782dc1bf8909c3cbb54f668c5b9e2836249cae8b26d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dsgrid_toolkit-0.4.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a351c72e07acb929ea6162294a1f737b7e2c7687d347d3cbbd1fa631a15f2844
MD5 e37ff530cb36feecd9201ee38bf88f41
BLAKE2b-256 6abf326d3c617967f8af99d587caf6c4ce9451326a5f4328b179ae67b8e27274

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dsgrid_toolkit-0.4.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 fbe51e40fac8858b670c9a90a986ffce2ef6a3fac7a438fa01ba94377cb62f4e
MD5 fc55181dfe46363d0d8d05c8a14cf1f5
BLAKE2b-256 b9d776a6451686be154207107b96a840ad75685071146b830f701f788011c20e

See more details on using hashes here.

Provenance

The following attestation bundles were made for dsgrid_toolkit-0.4.0-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.4.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for dsgrid_toolkit-0.4.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9c2e958c0cad3f43520f88b5190538bf57af44807527bf5fefc427ffb906c864
MD5 213cc0c150afcaf7995191777e94ba02
BLAKE2b-256 dc65eebb17bf224c4da8983f4b767d2d429966f5f9449b508a45d4e507cc39c9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dsgrid_toolkit-0.4.0-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 7c7b05105835899fd43cf5cde56d368b7253c71553593d171b971bd41807b880
MD5 236ab4e570a17f12ad0cbaff8ad8aca6
BLAKE2b-256 3eda9c95c57c816641b50e4d1dce90df738016adc2beb45a265265598fff58e5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dsgrid_toolkit-0.4.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ea4d16b13af0b5094dbba5a4552707028feb833873febabe94bac50da24380d6
MD5 ecb3ebb4ae99da1a23bcaa2e4a429cc3
BLAKE2b-256 c3fadff89e5a4d0505fa604f7e020478eb7926a82867647c848657ff11694b08

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dsgrid_toolkit-0.4.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 63bb3081c335fde79139522f74439344cd1bc4d9680da29540c4deb77ca45313
MD5 fb77bfa351a5ab93dd91357691b6e686
BLAKE2b-256 d3a99f92ea6cb1d1767a592f9f11cd61a681b193e6186f95f8be8d36abf7f35a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dsgrid_toolkit-0.4.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 4a390cde52bfd3245ecc788ddc2e3861c3f5c11c28fc426ab50c98c27a4366ca
MD5 9b7c8bf6147c960fb4c60f1392b5c87e
BLAKE2b-256 424a6ee76e6d32b735edd85856159e0a870a5436905929cd0b564e4b42d2e429

See more details on using hashes here.

Provenance

The following attestation bundles were made for dsgrid_toolkit-0.4.0-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.4.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for dsgrid_toolkit-0.4.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d5c09ef89737fd099e5fe73e43f8ebf45a808681652602ffa87615d9dde4c0c5
MD5 64bbea8c71e7566addc212e4c820f42e
BLAKE2b-256 5f1e12709ec4a4baba32ecebe574059b44b68c686d81df56182433b8ed49969f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dsgrid_toolkit-0.4.0-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 8e7b455ffe1e933eb63a3f0a582fc09d6a0b3fc4305d2e3c97522ef4bab18172
MD5 cb2b2c65e8f4e5bfe1a6eb2ef3557d93
BLAKE2b-256 95b67b5c81b9f7f80d7e784378f2aa2cadbe8e50ae5604a5456015abf7c75de1

See more details on using hashes here.

Provenance

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