Skip to main content

Smellscapy Logo

Smellscapy

PyPI version Documentation status License

SmellscaPy is a Python library for analysing and representing indoor smellscape perceptual data.
It provides tools for data validation, calculation of perceptual indices, visualization, descriptive statistics and modelling to support reproducible research in smellscape studies.

Features

  • Data validation & preprocessing of smellscape survey datasets
  • Computation of perceptual indicators (i.e., pleasantness, presence)
  • Visualizations: scatter plots, density plots, simplified density plots, dynamic plots
  • Integration with the Python scientific stack (Pandas, NumPy, Matplotlib)
  • Ready-to-use example datasets for tutorials and testing
  • Analysis: descriptive statistics

Installation

Smellscapy can be installed with pip:

pip install smellscapy

Requires Python 3.12.9+.

Quick Start

Here’s a minimal example using the included sample dataset.
It loads the data, validates it, computes perceptual indicators, and generates simple visualizations:

from smellscapy.surveys import validate
from smellscapy.databases.DataExample import load_example_data_Eurac
from smellscapy.calculations import calculate_pleasantness, calculate_presence
from smellscapy.plotting.scatter import plot_scatter
from smellscapy.plotting.simple_density import plot_simple_density

# Load example dataset
df = load_example_data_Eurac()

# Validate data
df, excl_df = validate(df)

# Compute perceptual indices
df = calculate_pleasantness(df)
df = calculate_presence(df)

# Visualization
plot_scatter(df)
plot_simple_density(df)
plot_density(df)
plot_dynamic(df)

#Analysis
df_stat = descriptive_statistics(df)

Tutorials for using Smellscapy can be found in the documentation.

Citation

If you are using Smellscapy in your research, please help our scientific visibility by citing our work! Please include a citation to our accompanying paper:

G. Torriani, R. Albatici, F. Babich, M. Vescovi, M. Zampini, S. Torresin, Developing a principal components model of indoor smellscape perception in office buildings, Build Environ 279 (2025) 113044. https://doi.org/10.1016/j.buildenv.2025.113044.

Contributing

If you would like to contribute or if you have any bugs you have found while using `Smellscapy', please feel free to get in touch or submit an issue or pull request!

Licence

This project is licensed under the BSD 3-Clause License. Please see LICENSE for licence guidelines.

Aknowledgment

The smellscape-representation methods implemented in the plotting functions of SmellscaPy are derived and adapted from the probabilistic soundscape framework described in the publication by Andrew Mitchell et al. [1] and implemented in the Soundscapy open-source library (c) 2025, Andrew Mitchell All rights reserved [2] . We gratefully acknowledge the authors of Soundscapy for their conceptual and methodological foundation, which significantly informed the development of the smellscape visualisation tools in this project.

  1. Mitchell, A., Aletta, F., & Kang, J. (2022). How to analyse and represent quantitative soundscape data. JASA Express Letters, 2, 37201.
  2. Mitchell, A. (2024, October). Soundscapy: A python package for soundscape assessment and analysis. In INTER-NOISE and NOISE-CON Congress and Conference Proceedings (Vol. 270, No. 7, pp. 4029-4039). Institute of Noise Control Engineering.

Metadata

Release files for smellscapy 0.2.6

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

Source distribution (sdist)

Source distribution for smellscapy 0.2.6
File Size Uploaded Provenance Actions
smellscapy-0.2.6.tar.gz 34.5 kB Without provenance Details for smellscapy-0.2.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for smellscapy 0.2.6
File Interpreter ABI Platform Actions
smellscapy-0.2.6-py3-none-any.whl Python 3 none any Details for smellscapy-0.2.6-py3-none-any.whl

Total release size: 76.8 kB

Release files / smellscapy-0.2.6.tar.gz

Download URL smellscapy-0.2.6.tar.gz
Size 34.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f6bc7f5af8ead1b53f6b65a57506fbbac267387a719844da3c932f64c8b9a24e
BLAKE2b-256 checksum
How to use checksums
4fe0174c2e57e81fe8cb8eb1d178e69439ce2cee57dd195257c2e93de1d12ad4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / smellscapy-0.2.6-py3-none-any.whl

Download URL smellscapy-0.2.6-py3-none-any.whl
Size 42.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4150d142558c686f9a52b326e9e3c6054e4806754e8053fff03ae4a65063957c
BLAKE2b-256 checksum
How to use checksums
1fed361f2350e362998f091cf250b1db0c298ae51e662158413795ea5e40ab45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for smellscapy 0.2.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.6 This release

2 release files No provenance

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