Skip to main content

A ViM-usable tags file generator for EnergyPlus IDF files.

Purpose

EnergyPlus IDF files can be huge, and you’ve probably wanted a way to jump to another object that the object you’re looking at references.

For example jump from one object that references a schedule to a schedule itself.

If you use ViM, you’ve probably been using tags files. This utility is a tags generator for EnergyPlus IDF files.

It also comes with a Command Line Interface (CLI) for easy generation of said tags.

Note that because tags expects proper variables names, and EnergyPlus doesn’t enforce such rules for the Name of objects, we have to create a new IDF file where the name doesn’t include any spaces or other special characters.

Usage

It installs a CLI idf-tags. Here’s the output of idf-tags

$ idf-tags

idf-tags

Usage:

idf-tags idf-tags [–recursive | -r | <idf_path>] idf-tags -h | –help idf-tags -v | –version

Options:

-r –recursive Search for IDF files is recursive (includes subdirectories) -h –help Show this screen. -v –version Show version.

Examples:

idf-tags Generates a tag file for all files in current directory idf-tags -r Tag file including subdirectories idf-tags in.idf Tag file for a specific IDF file

Help:

For help using this tool, please open an issue on the Github repository: https://github.com/jmarrec/idf-tags

Developper

If you’ve cloned this project, and want to install the library (and all development dependencies), the command you’ll want to run is:

$ pip install -e .[test]

If you’d like to run all tests for this project, against Python 2.7 and 3.6, I have implemented tox, and you can just run:

$ tox

or, for only your current environment:

$ python setup.py test

Both will trigger py.test, along with its popular coverage plugin.

Uploading a new version to PyPi, the Python Package Index (PyPI):

$ python setup.py sdist bdist_wheel
$ twine upload dist/*

This will build both a source tarball of your CLI tool, as well as a newer wheel build (and this will, by default, run on all platforms). You need twine

Release files for idf-tags 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for idf-tags 0.1.1
File Size Uploaded
idf-tags-0.1.1.tar.gz 485.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for idf-tags 0.1.1
File Interpreter ABI Platform
idf_tags-0.1.1-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size:494.5 kB

Release files / idf-tags-0.1.1.tar.gz

Download URL idf-tags-0.1.1.tar.gz
Size 485.9 kB
Tags Source
SHA-256 checksum
How to use checksums
3a9a8a5f4de503cd8aaf9f3ef5d79f921256f98ef6835341538d46b6883b441c
BLAKE2b-256 checksum
How to use checksums
3570ff48280e2c5fa613537f8f8657771c5c2e62a4ed00820896bf5192718421
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / idf_tags-0.1.1-py2.py3-none-any.whl

Download URL idf_tags-0.1.1-py2.py3-none-any.whl
Size 8.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
bd1a950383472e9f3c889744c7fda91fa7ab83e85f40694616f238abc80f5fff
BLAKE2b-256 checksum
How to use checksums
efb9f69190a11a5784d3dc386cee64e2d9e508ef4ec1a71c0ed176e4aa074a41
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page