Package Search Help

You can use boolean logic (e.g. AND/OR/NOT) for complex search queries. For more help and examples, see the search documentation.

Search by package name:
my-package (implicit)
name:my-package (explicit)

Search by package filename:
filename:my-package.ext 

Search by package tag:
tag:latest 

Search by package version:
version:1.0.0  prerelease:true (prereleases)
prerelease:false (no prereleases)

Search by package architecture:
architecture:x86_64 

Search by package distribution:
distribution:el 

Search by package license:
license:MIT 

Search by package format:
format:deb 

Search by package status:
status:in_progress 

Search by package file checksum:
checksum:5afba 

Search by package security status:
severity:critical 

Search by package vulnerabilities:
vulnerabilities:>1 
vulnerabilities:<1000 

Search by # of package downloads:
downloads:>8 
downloads:<100 

Search by package type:
type:binary 
type:source 

Search by package size (bytes):
size:>50000 
size:<10000 

Search by dependency name/version:
dependency:log4j 
dependency:log4j=1.0.0 
dependency:log4j>1.0.0 

Search by uploaded date:
uploaded:>"1 day ago" 
uploaded:<"August 14, 2022 EST" 

Search by entitlement token (identifier):
entitlement:3lKPVJPosCsY 

Search by policy violation:
policy_violated:true
deny_policy_violated:true
license_policy_violated:true
vulnerability_policy_violated:true

Search by repository:
repository:repo-name

Search by last download date:
last_downloaded:<"30 days ago" 
last_downloaded:>"August 14, 2022 EST" 

Search queries for all Debian-specific (and related) package types

Search by component:
deb_component:unstable

Search queries for all Maven-specific (and related) package types

Search by group ID:
maven_group_id:org.apache

Search queries for all Docker-specific (and related) package types

Search by image digest:
docker_image_digest:sha256:7c5..6d4
(full hashref only)

Search by layer digest:
docker_layer_digest:sha256:4c4..ae4
(full hashref only)

Search queries for all Generic-specific package types

Search by file path:
generic_filepath:path/to/file.txt

Search by directory:
generic_directory:path/to

Field type modifiers (depending on the type, you can influence behaviour)

For all queries, you can use:
~foo for negation

For string queries, you can use:
^foo to anchor to start of term
foo$ to anchor to end of term
foo*bar for fuzzy matching

For number/date or version queries, you can use:
>foo for values greater than
>=foo for values greater / equal
<foo for values less than
<=foo for values less / equal

Need a secure and centralised artifact repository to deliver Alpine, Cargo, CocoaPods, Composer, Conan, Conda, CRAN, Dart, Debian, Docker, Generic, Go, Helm, Hex, HuggingFace, LuaRocks, Maven, MCP, npm, NuGet, P2, Python, RedHat, Ruby, Swift, Terraform, Vagrant, VSX, Raw & More packages?

Cloudsmith is the new standard in Package / Artifact Management and Software Distribution.

With support for all major package formats, you can trust us to manage your software supply chain.

Start My Free Trial

Python logo buildstock-fetch  1.2.0

One-liner (summary)

This library simplifies downloading building characteristics and load curve data from NREL's ResStock and ComStock projects.

Description

# buildstock-fetch

[![Release](https://img.shields.io/github/v/release/switchbox-data/buildstock-fetch)](https://img.shields.io/github/v/release/switchbox-data/buildstock-fetch) [![Build status](https://img.shields.io/github/actions/workflow/status/switchbox-data/buildstock-fetch/main.yml?branch=main)](https://github.com/switchbox-data/buildstock-fetch/actions/workflows/main.yml?query=branch%3Amain) [![Commit activity](https://img.shields.io/github/commit-activity/m/switchbox-data/buildstock-fetch)](https://img.shields.io/github/commit-activity/m/switchbox-data/buildstock-fetch) [![License](https://img.shields.io/github/license/switchbox-data/buildstock-fetch)](https://img.shields.io/github/license/switchbox-data/buildstock-fetch)

This library simplifies downloading building characteristics and load curve data from NREL's ResStock and ComStock projects.

## Installing the library

buildstock-fetch is available on [PyPI](https://pypi.org/project/buildstock-fetch/) and can be installed via:

`bash pip install buildstock-fetch `

or

`bash uv add buildstock-fetch `

## Using the library

To use the CLI tool in buildstock-fetch run:

`bash bsf `

to activate the interactive mode. Alternatively, provide the inputs directly. For example,

`bash bsf --product resstock --release_year 2022 --weather_file tmy3 --release_version 1 --states CA --file_type "hpxml metadata" --upgrade_id "0 1 2" --output_directory ./CA_data `

If the above options don't work, try:

`bash python -m buildstock_fetch `

For more details about the usage, see [Usage](https://switchbox-data.github.io/buildstock-fetch/usage/)

## Developing the library

To simplify development, this library uses [devcontainers](https://containers.dev/) for reproducible development environments and the [just](https://github.com/casey/just) command runner for all major tasks.

Available commands are defined in [Justfile](Justile). To view available them:

`bash just --list `

### Setting up development environment

This library uses [uv](https://docs.astral.sh/uv/) for managing python versions, virtual environments, and packages.

However, given the presence of system dependencies, the easiest way to set up the library's develop environment is to use devcontainers. To do so, open up the repo in VSCode, or a VSCode fork like Cursor or Positron.

The editor will auto-detect the presence of the repo's devcontainer (configured in [.devcontainer/devcontainer.json](.devcontainer/devcontainer.json)). Click "Reopen in Container" to launch the devcontainer.

If you prefer not to use a devcontainer, you can install uv, install the pre-commit hooks, launch the virtualenv, and download the packages (pinned in [uv.lock](uv.lock)) by running:

`bash ./devcontainer/postCreateCommand.sh just install `

Using a system package manager (like brew or apt), you'll also need to manually install just and quarto.

### Adding a package To add a python package to the project:

`bash uv add <package-name> `

This replaces pip install <package-name>, and has the effect of adding the package to [pyproject.toml](pyproject.toml), as well as pinning the package version in [uv.lock](uv.lock).

To add a package that will only be used as a development tool:

`bash uv add --dev <package-name> `

This will update the dev dependency-groups in [pyproject.toml](pyproject.toml), and ensure that the package isn't declared as a run-time dependency of the library itself.

### Running code quality checks

We use [ruff](https://github.com/astral-sh/ruff) for linting and code formatting, [mypy](https://mypy.readthedocs.io/en/stable/running_mypy.html) for type checking, and a series of [post-commit hooks](pre-commit-config.yaml) for validating YAML, JSON, whitespaces, and so on.

To run code quality checks:

`bash just check `

The checks will also be run automatically by Github Actions when opening PRs, merging to main, or creating a new release.

### Running tests

Our test are written using pytest and live in [tests/](tests/). They are checked against multiple python versions using tox.

To run the tests:

`bash just test `

### Rendering docs

We use mkdocs and [mkdocs-material](https://squidfunk.github.io/mkdocs-material/) for writing and rendering docs. The docs are written in markdown and live in [docs/](docs/).

To dynamically render the docs as you develop them:

`bash just docs `

To statically render the docs into HTML:

`bash just docs-test `

The docs are served by Github Pages out of the gh-pages branch. We do not publish them manually: they are automatically rendered and published by the Github Actions workflow when merging to main.

### Releasing the library

To build the package into a wheel file, type:

`bash just build `

To publish a release to PyPI using [twine](https://pypi.org/project/twine/):

`bash just publish `

To do both in one go:

`bash just build-and-publish `

---

Repository initiated with [fpgmaas/cookiecutter-uv](https://github.com/fpgmaas/cookiecutter-uv).

Size

94.5 MB

Downloads

6

Status  Completed
Checksum (MD5) 9525c989a3f135666b0e7723ca2f3d6d
Checksum (SHA-1) de2b23f3ee4f7dd4ed05518acd36481818c23ebe
Checksum (SHA-256) 7521aaa80784d67a5f7aa95184a4738402461291136477c39b423ad14140b1cf
Checksum (SHA-512) a739dedab6492a6302d02c3a96a5ae180d6937c6accd652f0c930e07fe15516d50…
GPG Signature
GPG Fingerprint 6811684bac0b8895434e97bdd4391b8fb999e537
Storage Region  Dublin, Ireland
Type  Binary (contains binaries and binary artifacts)
Uploaded At 4 months, 3 weeks ago
Uploaded By Fetched by Cloudsmith
Slug Id buildstock_fetch-120-py3-none-anywhl-y2og
Unique Id 92fmh3sBDAMw0C3B
Version (Raw) 1.2.0
Version (Parsed)
  • Major: 1
  • Minor: 2
  • Patch: 0
  • Type: SemVer (Compat)
  extended metadata
Author Switchbox <hello@switch.box>
Classifiers Intended Audience :: Developers | Programming Language :: Python | Programming Language :: Python :: 3 | Programming Language :: Python :: 3.10 | Programming Language :: Python :: 3.11 | Programming Language :: Python :: 3.12 | Programming Language :: Python :: 3.13 | Programming Language :: Python :: 3.9 | Topic :: Software Development :: Libraries :: Python Modules
Keywords python
Metadata Version 2.4
Project Urls Documentation, https://switchbox-data.github.io/buildstock-fetch/ | Homepage, https://switchbox-data.github.io/buildstock-fetch/ | Repository, https://github.com/switchbox-data/buildstock-fetch
Py Filetype bdist_wheel
Py Version py3
Requires Dist boto3>=1.33.0; extra == "dev-utils" | botocore>=1.33.0; extra == "dev-utils" | buildstock-fetch[dev-utils,docs,lint,test]; extra == "dev" | deptry>=0.23.0; extra == "lint" | mkdocs-material>=8.5.10; extra == "docs" | mkdocs>=1.4.2; extra == "docs" | mkdocstrings[python]>=0.26.1; extra == "docs" | mypy>=0.991; extra == "lint" | numpy>=1.26.4; extra == "dev-utils" | pandas-stubs>=2.2.0; extra == "lint" | polars>=0.20.0 | pre-commit>=2.20.0; extra == "lint" | pyarrow>=14.0.1; extra == "dev-utils" | pytest>=7.2.0; extra == "test" | questionary>=1.11.0 | requests>=2.32.3 | rich>=13.9.5 | ruff>=0.11.5; extra == "lint" | scikit-learn>=1.6.1; extra == "dev-utils" | tox-uv>=1.11.3; extra == "dev" | typer>=0.9.0 | types-boto3>=1.33.0; extra == "lint" | types-requests>=2.31.0; extra == "lint" | xmltodict>=0.14.2; extra == "dev-utils"
Requires Python <4.0,>=3.9
pkg buildstock_fetch-1.2.0-py3-none… 6
94.5 MB
md5 sha1 sha256 sha512
Package Contents (buildstock_fetch-1.2.0-py3-none-any.whl)
Loading...

This package has 2503 files/directories.

 Newer Python logo
buildstock-fetch
 1.4.5
7 Fetched by Cloudsmith
 Newer Python logo
buildstock-fetch
 1.4.4
8 Fetched by Cloudsmith
 Newer Python logo
buildstock-fetch
 1.4.3
6 Fetched by Cloudsmith
 Newer Python logo
buildstock-fetch
 1.4.0
7 Fetched by Cloudsmith
 Newer Python logo
buildstock-fetch
 1.3.1
9 Fetched by Cloudsmith
 Newer Python logo
buildstock-fetch
 1.3.0
6 Fetched by Cloudsmith
  Python logo
buildstock-fetch
 1.2.0
6 Fetched by Cloudsmith
 Older Python logo
buildstock-fetch
 1.1.0
7 Fetched by Cloudsmith
 Older Python logo
buildstock-fetch
 1.0.4
9 Fetched by Cloudsmith
 Older Python logo
buildstock-fetch
 1.0.3
5 Fetched by Cloudsmith
 Older Python logo
buildstock-fetch
 1.0.2
6 Fetched by Cloudsmith
 Older Python logo
buildstock-fetch
 1.0.1
6 Fetched by Cloudsmith
 Older Python logo
buildstock-fetch
 1.0.0
6 Fetched by Cloudsmith
 Older Python logo
buildstock-fetch
 0.1.0
5 Fetched by Cloudsmith

Last scanned

4 months, 3 weeks ago

Scan result

Clean

Vulnerability count

0

Max. severity

Unknown

You can embed a badge in another website that shows this or the latest version of this package.

To embed the badge for this specific package version, use the following:

[![This version of 'buildstock-fetch' @ Cloudsmith](https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/buildstock-fetch/1.2.0/a=noarch;xf=bdist_wheel;xn=buildstock-fetch;xv=py3/?render=true)](https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/buildstock-fetch/1.2.0/a=noarch;xf=bdist_wheel;xn=buildstock-fetch;xv=py3/)
|This version of 'buildstock-fetch' @ Cloudsmith|
.. |This version of 'buildstock-fetch' @ Cloudsmith| image:: https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/buildstock-fetch/1.2.0/a=noarch;xf=bdist_wheel;xn=buildstock-fetch;xv=py3/?render=true
   :target: https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/buildstock-fetch/1.2.0/a=noarch;xf=bdist_wheel;xn=buildstock-fetch;xv=py3/
image::https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/buildstock-fetch/1.2.0/a=noarch;xf=bdist_wheel;xn=buildstock-fetch;xv=py3/?render=true[link="https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/buildstock-fetch/1.2.0/a=noarch;xf=bdist_wheel;xn=buildstock-fetch;xv=py3/",title="This version of 'buildstock-fetch' @ Cloudsmith"]
<a href="https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/buildstock-fetch/1.2.0/a=noarch;xf=bdist_wheel;xn=buildstock-fetch;xv=py3/"><img src="https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/buildstock-fetch/1.2.0/a=noarch;xf=bdist_wheel;xn=buildstock-fetch;xv=py3/?render=true" alt="This version of 'buildstock-fetch' @ Cloudsmith" /></a>

rendered as: This version of 'buildstock-fetch' @ Cloudsmith

To embed the badge for the latest package version, use the following:

[![Latest version of 'buildstock-fetch' @ Cloudsmith](https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/buildstock-fetch/latest/a=noarch;xf=bdist_wheel;xn=buildstock-fetch;xv=py3/?render=true&show_latest=true)](https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/buildstock-fetch/latest/a=noarch;xf=bdist_wheel;xn=buildstock-fetch;xv=py3/)
|Latest version of 'buildstock-fetch' @ Cloudsmith|
.. |Latest version of 'buildstock-fetch' @ Cloudsmith| image:: https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/buildstock-fetch/latest/a=noarch;xf=bdist_wheel;xn=buildstock-fetch;xv=py3/?render=true&show_latest=true
   :target: https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/buildstock-fetch/latest/a=noarch;xf=bdist_wheel;xn=buildstock-fetch;xv=py3/
image::https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/buildstock-fetch/latest/a=noarch;xf=bdist_wheel;xn=buildstock-fetch;xv=py3/?render=true&show_latest=true[link="https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/buildstock-fetch/latest/a=noarch;xf=bdist_wheel;xn=buildstock-fetch;xv=py3/",title="Latest version of 'buildstock-fetch' @ Cloudsmith"]
<a href="https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/buildstock-fetch/latest/a=noarch;xf=bdist_wheel;xn=buildstock-fetch;xv=py3/"><img src="https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/buildstock-fetch/latest/a=noarch;xf=bdist_wheel;xn=buildstock-fetch;xv=py3/?render=true&show_latest=true" alt="Latest version of 'buildstock-fetch' @ Cloudsmith" /></a>

rendered as: Latest version of 'buildstock-fetch' @ Cloudsmith

These instructions assume you have setup the repository first (or read it).

To install/use buildstock-fetch @ version 1.2.0 ...

pip install 'buildstock-fetch==1.2.0'

You can also install the latest version of this package:

pip install --upgrade 'buildstock-fetch'

If necessary, you can specify the repository directly:

pip install \
  --index-url=https://dl.cloudsmith.io/public/demo-docs/awesome-repo/python/simple/ \
  buildstock-fetch==1.2.0

If you've got a project requirements.txt file, you can specify this as a dependency:

--index-url=https://dl.cloudsmith.io/public/demo-docs/awesome-repo/python/simple/
buildstock-fetch==1.2.0

In addition, you can use this repository as an extra index url. However, please read our documentation on this parameter before using it. For example in a requirements.txt file:

--extra-index-url=https://dl.cloudsmith.io/public/demo-docs/awesome-repo/python/simple/
buildstock-fetch==1.2.0
Warning: We highly recommend using pip (or similar) rather than installing directly.
Top