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.1.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.1.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.1.0-cp314-cp314-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.14Windows x86-64

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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

dsgrid_toolkit-0.1.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.1.0.tar.gz.

File metadata

  • Download URL: dsgrid_toolkit-0.1.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.1.0.tar.gz
Algorithm Hash digest
SHA256 cdfbf0f7b35ce708e4edb193de46576a59294c09e4924720514be74594a8527f
MD5 984cff20bfd91d34254429348d8dc64d
BLAKE2b-256 284d21b00df5effa54d4df18cc29cf91216adbfd9f732c6a5fa6d6b04b2e7afe

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dsgrid_toolkit-0.1.0-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 16a3a59eb38908de5c640a19159a356751a3fbc4fddaf68859059add9bc88814
MD5 9bb81d584a71e02ac157c5d45ca6f4c7
BLAKE2b-256 c095c9c955755a096c75f0e2a029c50dd5c5923d51047c4b17b5975694725553

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dsgrid_toolkit-0.1.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 a8cdd973a2aaffcdb61a2013f70a3793970f0a7a02adf6c5c18165fd840277e9
MD5 394a7f2bc3098e3f2910cee1e2d4b7c7
BLAKE2b-256 e017c281d3bc58f8881708f5649c586aac350e7edb155bf0df551b4179715bbb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dsgrid_toolkit-0.1.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 5fdb4f39ef74dad88d91621d3b268ddb4d8764bda58e9cc9b30d294f361d95ad
MD5 54ace2c4d0ea786b16b8142e8602a54c
BLAKE2b-256 6d62721ddd1ca1560f54e56cbc26a3907d1cd6c7a2794d329ab41ac22e1b8d35

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dsgrid_toolkit-0.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0eb14577621640e4c3356b8812e781c1c49b6dd743f0ce78efd856317e516654
MD5 1c38b7710fc58a7b535692429afc97a8
BLAKE2b-256 43c1b60e282b3ef1ac181108938758e5172128e22bbaf2ac5d21458e3923fa99

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dsgrid_toolkit-0.1.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 98e785ebd0bafb78fd2734daecf9ffeb27628f19e5cac6bf1dbfb0f32e8e688e
MD5 c607bd717c37da7b987eebce7765abc7
BLAKE2b-256 c90b3ff06a0695097dfe163ff88e62758bdb76c79e5a0a4fc729c3bbdb0c656d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dsgrid_toolkit-0.1.0-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 c095ea78b1c5c47dc574006985156095949333bfe67b5f92f03589658774104d
MD5 a226e2c7490d045009d7134385eb2e59
BLAKE2b-256 ef36278c3f8dba8cb3efb22565eeaa37d4e2da08da7a916ab9003e9f2c5a66b2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dsgrid_toolkit-0.1.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 af6d55fd416889a83d27807483d543b913b1b441bc193e1da7efc6579fa8d1fd
MD5 cc72e9d1edea76dd28b6c92370c904ac
BLAKE2b-256 99af8980e6426cfca718618862ba4519776a5faa68c03f36bfa79678e064d1ef

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dsgrid_toolkit-0.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d2352fca4b896cf9ea97d60b46b53bddadd416d7d575b777d854a3e999c9a076
MD5 834ba1e30d6c8b92d57362d508e9824e
BLAKE2b-256 981c371e1e5a84a91ac8a4a94646792fadd5ae42b414f2b22745d705312a9073

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dsgrid_toolkit-0.1.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 aea313d3f4fc49d83e006fea99517fdbd849a4dde9e99c77a4de4c86c3dd1ca6
MD5 6a00259a9acc39efb790999194caded1
BLAKE2b-256 faff241f3d62cf40b1fef94a4fd5d486fe6f15395651ddc67097214c226507bd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dsgrid_toolkit-0.1.0-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 8397267e9da9b473cbf2623e35a2640ff0c5633bf17e92dfd3f3e06dc438ebf5
MD5 7939d5a0764688fa8cab1eec0a5695c7
BLAKE2b-256 63b457f4637b6f5101c499e8e99a370854677abb13cdda3075fe3e2c4ae64ea9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dsgrid_toolkit-0.1.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d47bd381ad76150ff04726346827a48b0fdbe449bc16a42aa4540a62ea2f9eee
MD5 b10e481918561b02bb832ccecfd8d594
BLAKE2b-256 6bd2c44d6b69f638bb240b2e48a24f6397820470c5a2cfdbd67488a391272976

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dsgrid_toolkit-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4e6788f3eb5b6ebc196d4750874eff5ef960383cff3cb250307aa1351033dc66
MD5 154b5ebb12900596d48f939b76b07649
BLAKE2b-256 5379e76caa2882ad309cec70a3c1f7e2f034490f86c62391dead9aff11720574

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dsgrid_toolkit-0.1.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6a43859c29dbe684a2eb8ef9422cde2922d402fcc09f31c122004e493a8b3d82
MD5 597fb6a18cef1404a9094b47b6ab93cc
BLAKE2b-256 3c7f3f7e7183ca2f747ba0798c25046c045803d270114ad8f74bd7766b21cc54

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dsgrid_toolkit-0.1.0-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 a1182973116d00f5ff382602adb548994a9238cb17e0f915c0a26b2f4d6175b6
MD5 3f9275e13af622bf63520039f51ff6d6
BLAKE2b-256 3a394756f4a6f9c2eb68cf0e38f77d5ae7b5a76587a8efccd7dad3338288c33f

See more details on using hashes here.

Provenance

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