Skip to main content

CLI tool to download aggregated data from SIAPE website.

Project description

SIAPE-CLI

SIAPE-cli is a Python package designed to facilitate interaction with the SIAPE website. This tool allows users to download and filter data related to energy efficiency certifications of buildings in Italy.


🌟 Features

  • Filter building-related data using geolocation, qualitative features, climatic zones, and other criteria.
  • Enforce admissible combinations for filter options.
  • Download results as a CSV file with customizable filenames.

🚀 Installation

From PyPI

pip install siape-cli

After installation, the package provides a download command to filter and export building-related data.


🛠️ Command-Line Interface (CLI)

You can invoke the CLI using the siape-cli command:

siape-cli download [OPTIONS]

Options

Option Description Allowed Values
-g, --geolocation Filter by geolocation (region or province). reg, prov
-q, --qualitative_features Filter by qualitative features (years, surface, or both). y, s, ys
-r, --resid Filter by building type (Residential/Non-Residential). res, non-res
-z, --zon_cli_filter Filter by climatic zones. -
-d, --dp412 Filter by law DP412/93. -
-n, --nzeb Filter by NZEB buildings only. -
-o, --output Specify output file name (default: <timestamp>.csv). -

🖋️ Examples

  1. Download data for residential buildings in regions:

    siape-cli download -g reg -r res
    
  2. Filter by climatic zone and qualitative features:

    siape-cli download -z -q ys
    
  3. Download NZEB buildings data and save as nzeb_data.csv:

    siape-cli download -n -o nzeb_data.csv
    
  4. Filter using dp412 law in provinces:

    siape-cli download -d -g prov
    

🚫 Rules and Restrictions

To maintain data integrity, the tool enforces the following admissible combinations:

reg
prov
y
s
ys
zc
dp412
reg, zc
reg, prov
reg, prov, zc
y, zc
s, zc
dp412, reg
dp412, prov
dp412, zc
dp412, y
dp412, s
dp412, ys

Using an invalid combination will produce an error:

NotAdmissibleCombination: Combination of arguments <args_set> is not admissible.

🧑‍💻 Contribution

Contributions are welcome! So far only the main filtering arguments have been implemented, and more features can be added to enhance the tool. Follow these steps to get started:

  1. Open an issue to discuss the feature/fix.
  2. Fork the repository.
  3. Create a new branch for your feature/fix.
  4. Commit your changes and push the branch.
  5. Open a pull request for review.

📜 License

This project is licensed under the MIT License.

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

siape_cli-0.2.0.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

siape_cli-0.2.0-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file siape_cli-0.2.0.tar.gz.

File metadata

  • Download URL: siape_cli-0.2.0.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.11.7 Linux/6.8.0-49-generic

File hashes

Hashes for siape_cli-0.2.0.tar.gz
Algorithm Hash digest
SHA256 9efd48504ed3e2988925eb055f28adfb02a1cc5c0505934a82b56f34c9be10cb
MD5 5b3313cee484ea73c8224e54a9972690
BLAKE2b-256 faaf8c6a7c6dc34f9b03a7452e59308ba33495199134781b93314801b6a2eafb

See more details on using hashes here.

File details

Details for the file siape_cli-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: siape_cli-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 13.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.11.7 Linux/6.8.0-49-generic

File hashes

Hashes for siape_cli-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e3c68b8ad66df181c9915f37830f14b6d68e9210d87f4576929af2e76cd8bb12
MD5 075c93dd02f2b785765665bb8da5d7b0
BLAKE2b-256 f3f79dc7ae2fcd3ef2bd081703eb769f7fdfc380e0ece115b414dc509cb63a57

See more details on using hashes here.

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