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.0.tar.gz (263.6 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.0-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.0-cp314-cp314-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.14Windows x86-64

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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

dsgrid_toolkit-0.3.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.3.0.tar.gz.

File metadata

  • Download URL: dsgrid_toolkit-0.3.0.tar.gz
  • Upload date:
  • Size: 263.6 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.0.tar.gz
Algorithm Hash digest
SHA256 4ae89444e2b2940aee9b3b68d12140d0ab640ec36f980cc22902118d098732f3
MD5 a250dd9337ada9244d47a7ded442d691
BLAKE2b-256 bd8888a9cca7e7bf78f12ba4b78d82fc3bc979322897ccbb6baf50e2894f94ff

See more details on using hashes here.

Provenance

The following attestation bundles were made for dsgrid_toolkit-0.3.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.3.0-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for dsgrid_toolkit-0.3.0-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 65e5fa352d256deb58d99855d6bfe18442df65a61d1b81f30a1285f64b89207d
MD5 428ed2b628a2e5330da9d3cdcc2cea76
BLAKE2b-256 e35f8c3dad215563510530f81cc7b5fedc32f260bd9a82b756ac4440050265aa

See more details on using hashes here.

Provenance

The following attestation bundles were made for dsgrid_toolkit-0.3.0-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.0-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for dsgrid_toolkit-0.3.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 78e53e89694a471a3d5f14dedd7b96aa60000f3ae67483e8c73ff19fbebf120b
MD5 70256a017d2c8eab095c45cbb8d05b4d
BLAKE2b-256 13259b6bb93c76900ca34827008f219e6aaae7f4f260e392bb4f9489d02c28a4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dsgrid_toolkit-0.3.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 701e139177a80adf17315e2aa7b15b68a48e7b532fae1067c7c38de0d47c6ddb
MD5 f8cc77b2facd928b00b846c4900ae1b0
BLAKE2b-256 9661a34c46d22ff87072afc7aca765c24e43b8e5a550a49341e2f2c484931c39

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dsgrid_toolkit-0.3.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d03fadb3d48f70e8c524f81c3ed61e4bac75883db409fdfb8e20e118f2528ad4
MD5 e8b5840ae00881f0c1e4263a0392646c
BLAKE2b-256 712558f2da16e84683251f6ec50b778af8f12270fee548df7c8371a5e5d3a090

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dsgrid_toolkit-0.3.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dec4cddc3e3338dace79c0ce62ee86840619bfd3d876ce0ab653e41963bade2a
MD5 8be0bfb4578b3bc2c50d1c82d698c517
BLAKE2b-256 f53c346ad9d7b15c47b376f1d32b1b307d8ea853914e68ac456f9d66910849d7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dsgrid_toolkit-0.3.0-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 c5388d8b192e69ff557f719fee57c2bde8f84584e8105a8c21bc9ff88add0a1a
MD5 1c79f922ea0b295eebae1c563934c5a4
BLAKE2b-256 7720858397296cb37b62ab6918db6b013a275a8c01a98cda44ab8b303d8e4b7b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dsgrid_toolkit-0.3.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4a173e173b4cd49b5fbccf1dee3291d7d364dd2df61b750af8ea5e05acd80d77
MD5 e16ba4c315eb1235c106a3f22f7dc7d3
BLAKE2b-256 6579dedc4262119adea796c13b7ae41f919edf44c9b2d0fe6337c0661b5269c0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dsgrid_toolkit-0.3.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 961e9882101e0484caacb9ecf1544327606750e9eca0a630572597bcdf2a16a5
MD5 4ad4e6589f577efc2671bf1435b37658
BLAKE2b-256 5d4bb3667ec09d27d046401599ee4e8373540b0f7c1cf1adc3fd16f4d03a75d6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dsgrid_toolkit-0.3.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4ca708c17481502f15cc580c74e32b482fa56ca575854b235660afe236ccc013
MD5 3ec7e266d2777c9beed4723029534e29
BLAKE2b-256 4a88f8b96b3d7f5d203e704121fc80bbcf89d9e791625bbbd40b55d6cfb37e3f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dsgrid_toolkit-0.3.0-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 a493995ff1748c140835a17bc270898845709768bc9becbcbd4746bdf04c17b3
MD5 c03b91feb61284a21aaa708c22cfb32d
BLAKE2b-256 d24a7546b15ad5e99ef0b10239a594d51c6740eea397ba86c70d7e0899f32fa4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dsgrid_toolkit-0.3.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 fde4b46ade67aefc512987f573392ec98535c7b90444dcad71b746ef07e1bdc2
MD5 19f1ec889b4c399b9c23f623444bb877
BLAKE2b-256 ca36160395c4c3a69158064f8df47253785c2d8c805eaba6f8d1e9d15e1b0aef

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dsgrid_toolkit-0.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ae7455acb2e013021f181feb5e1c7f9b8c147d6f9986a99b36367fa13873a735
MD5 e251c0d283ae800b10a28e417f46ff81
BLAKE2b-256 564eb2b5e22f16dd9fe1dfd175eb027d68b69c04ac36ddc90e51598def6838f3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dsgrid_toolkit-0.3.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c413af7981c47c9540fc8f6333783a30bc4f678b538bc53d1f13d437b7f3c44e
MD5 ce9898a84811a26086e057a1da4870fd
BLAKE2b-256 94380a3d1d7dda751f58bebbfd12a04e02928fc88ca68fd85968e32d916f8982

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dsgrid_toolkit-0.3.0-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 4403dcf725b1a6cb47d51c02d16daea3cbde6a6f917721d06aa85dc87f5213d1
MD5 ff548524f5e3769450a3a3dbf4615f62
BLAKE2b-256 fd0766facf3511ed2c5d7a2479af079d9efece497de21162e4699da90bbaf04e

See more details on using hashes here.

Provenance

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