Skip to main content

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

Project description

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

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

idf-tags-0.1.1.tar.gz (485.9 kB view details)

Uploaded Source

Built Distribution

idf_tags-0.1.1-py2.py3-none-any.whl (8.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file idf-tags-0.1.1.tar.gz.

File metadata

  • Download URL: idf-tags-0.1.1.tar.gz
  • Upload date:
  • Size: 485.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for idf-tags-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3a9a8a5f4de503cd8aaf9f3ef5d79f921256f98ef6835341538d46b6883b441c
MD5 ee1f9d33f71e0a7e4bd52992c833318e
BLAKE2b-256 3570ff48280e2c5fa613537f8f8657771c5c2e62a4ed00820896bf5192718421

See more details on using hashes here.

File details

Details for the file idf_tags-0.1.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for idf_tags-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 bd1a950383472e9f3c889744c7fda91fa7ab83e85f40694616f238abc80f5fff
MD5 66cfd01e96e8bd24d2fbe8b35721a92f
BLAKE2b-256 efb9f69190a11a5784d3dc386cee64e2d9e508ef4ec1a71c0ed176e4aa074a41

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page