Observed since 20 Oct, 15:08 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
A Python package for multi-criteria decision-making using the TOPSIS method.
This Python package provides a straightforward implementation of the TOPSIS (Technique for Order of Preference by Similarity to Ideal Solution) method for multi-criteria decision-making. With this tool, you can rank alternatives based on multiple criteria using weights and impacts for each criterion.
To execute TOPSIS, use the following command:
python topsis.py <input_file> <weights> <impacts> <output_file>
<input_file>: Path to the CSV file containing the input data. The first column should contain alternative names, and subsequent columns should contain numerical criteria values.<weights>: Comma-separated weights for each criterion (e.g., 1,2,3).<impacts>: Comma-separated impacts for each criterion (+ for benefit criteria, - for cost criteria, e.g., +, -, +).<output_file>: Path to the CSV file where the results will be saved.Suppose you have the following input file (data.csv):
| Alternative | Criterion 1 | Criterion 2 | Criterion 3 |
|---|---|---|---|
| A1 | 250 | 16 | 12 |
| A2 | 200 | 20 | 8 |
| A3 | 300 | 12 | 15 |
| A4 | 275 | 14 | 10 |
To rank the alternatives with weights 1,1,1 and impacts +, +, -, run:
python topsis.py data.csv 1,1,1 +,+,- results.csv
The output (results.csv) will include the TOPSIS scores and ranks:
| Alternative | Criterion 1 | Criterion 2 | Criterion 3 | Topsis Score | Rank |
|---|---|---|---|---|---|
| A1 | 250 | 16 | 12 | 0.6547 | 2 |
| A2 | 200 | 20 | 8 | 0.3001 | 4 |
| A3 | 300 | 12 | 15 | 0.8234 | 1 |
| A4 | 275 | 14 | 10 | 0.4921 | 3 |
The output file will contain the original data along with two additional columns:
Topsis Score: The calculated TOPSIS score for each alternative.Rank: The rank of each alternative based on the TOPSIS score (1 = best).The package validates inputs and raises errors for:
+ or -).This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Feel free to open an issue or submit a pull request.
For questions or feedback, please contact [aryan10767@gmail.com.com].
pypistats · 57 observations shown. Missing days are unknown. Source category: overall: without mirrors.
| Date / source period | Value | Observed at |
|---|---|---|
| 2026-10-19 – 2026-10-19 | 2 | 2026-10-20T21:06:39.7807731Z |
| 2026-10-17 – 2026-10-17 | 1 | 2026-10-20T21:06:39.7807731Z |
| 2026-10-13 – 2026-10-13 | 1 | 2026-10-20T21:06:39.7807731Z |
| 2026-10-09 – 2026-10-09 | 1 | 2026-10-20T21:06:39.7807731Z |
| 2026-10-08 – 2026-10-08 | 2 | 2026-10-20T21:06:39.7807731Z |
| 2026-10-07 – 2026-10-07 | 1 | 2026-10-20T21:06:39.7807731Z |
| 2026-10-06 – 2026-10-06 | 1 | 2026-10-20T21:06:39.7807731Z |
| 2026-10-03 – 2026-10-03 | 1 | 2026-10-20T21:06:39.7807731Z |
| 2026-10-01 – 2026-10-01 | 1 | 2026-10-20T21:06:39.7807731Z |
| 2026-09-30 – 2026-09-30 | 5 | 2026-10-20T21:06:39.7807731Z |
| 2026-09-29 – 2026-09-29 | 1 | 2026-10-20T21:06:39.7807731Z |
| 2026-09-27 – 2026-09-27 | 2 | 2026-10-20T21:06:39.7807731Z |
| 2026-09-26 – 2026-09-26 | 2 | 2026-10-20T21:06:39.7807731Z |
| 2026-09-24 – 2026-09-24 | 3 | 2026-10-20T21:06:39.7807731Z |
| 2026-09-22 – 2026-09-22 | 1 | 2026-10-20T21:06:39.7807731Z |
| 2026-09-20 – 2026-09-20 | 3 | 2026-10-20T21:06:39.7807731Z |
| 2026-09-17 – 2026-09-17 | 3 | 2026-10-20T21:06:39.7807731Z |
| 2026-09-16 – 2026-09-16 | 1 | 2026-10-20T21:06:39.7807731Z |
| 2026-09-14 – 2026-09-14 | 1 | 2026-10-20T21:06:39.7807731Z |
| 2026-09-13 – 2026-09-13 | 1 | 2026-10-20T21:06:39.7807731Z |
| 2026-09-12 – 2026-09-12 | 1 | 2026-10-20T21:06:39.7807731Z |
| 2026-09-10 – 2026-09-10 | 2 | 2026-10-20T21:06:39.7807731Z |
| 2026-09-09 – 2026-09-09 | 4 | 2026-10-20T21:06:39.7807731Z |
| 2026-09-08 – 2026-09-08 | 2 | 2026-10-20T21:06:39.7807731Z |
| 2026-09-07 – 2026-09-07 | 1 | 2026-10-20T21:06:39.7807731Z |
| 2026-09-05 – 2026-09-05 | 2 | 2026-10-20T21:06:39.7807731Z |
| 2026-09-03 – 2026-09-03 | 1 | 2026-10-20T21:06:39.7807731Z |
| 2026-09-01 – 2026-09-01 | 2 | 2026-10-20T21:06:39.7807731Z |
| 2026-08-31 – 2026-08-31 | 4 | 2026-10-20T21:06:39.7807731Z |
| 2026-08-30 – 2026-08-30 | 2 | 2026-10-20T21:06:39.7807731Z |
| 2026-08-28 – 2026-08-28 | 5 | 2026-10-20T21:06:39.7807731Z |
| 2026-08-24 – 2026-08-24 | 9 | 2026-10-20T21:06:39.7807731Z |
| 2026-08-23 – 2026-08-23 | 7 | 2026-10-20T21:06:39.7807731Z |
| 2026-08-22 – 2026-08-22 | 2 | 2026-10-20T21:06:39.7807731Z |
| 2026-08-20 – 2026-08-20 | 5 | 2026-10-20T21:06:39.7807731Z |
| 2026-08-18 – 2026-08-18 | 18 | 2026-10-20T21:06:39.7807731Z |
| 2026-08-17 – 2026-08-17 | 9 | 2026-10-20T21:06:39.7807731Z |
| 2026-08-16 – 2026-08-16 | 1 | 2026-10-20T21:06:39.7807731Z |
| 2026-08-14 – 2026-08-14 | 7 | 2026-10-20T21:06:39.7807731Z |
| 2026-08-13 – 2026-08-13 | 4 | 2026-10-20T21:06:39.7807731Z |
| 2026-08-12 – 2026-08-12 | 5 | 2026-10-20T21:06:39.7807731Z |
| 2026-08-09 – 2026-08-09 | 2 | 2026-10-20T21:06:39.7807731Z |
| 2026-08-07 – 2026-08-07 | 5 | 2026-10-20T21:06:39.7807731Z |
| 2026-08-06 – 2026-08-06 | 4 | 2026-10-20T21:06:39.7807731Z |
| 2026-08-05 – 2026-08-05 | 5 | 2026-10-20T21:06:39.7807731Z |
| 2026-08-04 – 2026-08-04 | 5 | 2026-10-20T21:06:39.7807731Z |
| 2026-08-03 – 2026-08-03 | 6 | 2026-10-20T21:06:39.7807731Z |
| 2026-08-02 – 2026-08-02 | 2 | 2026-10-20T21:06:39.7807731Z |
| 2026-08-01 – 2026-08-01 | 2 | 2026-10-20T21:06:39.7807731Z |
| 2026-07-31 – 2026-07-31 | 5 | 2026-10-20T21:06:39.7807731Z |
| 2026-07-30 – 2026-07-30 | 6 | 2026-10-20T21:06:39.7807731Z |
| 2026-07-29 – 2026-07-29 | 12 | 2026-10-20T21:06:39.7807731Z |
| 2026-07-27 – 2026-07-27 | 5 | 2026-10-20T21:06:39.7807731Z |
| 2026-07-25 – 2026-07-25 | 2 | 2026-10-20T21:06:39.7807731Z |
| 2026-07-24 – 2026-07-24 | 2 | 2026-10-20T21:06:39.7807731Z |
| 2026-07-23 – 2026-07-23 | 3 | 2026-10-20T21:06:39.7807731Z |
| 2026-07-22 – 2026-07-22 | 2 | 2026-10-20T21:06:39.7807731Z |
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 1.0.0 | 19 Jan 2025 | 2 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 15:08 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:2447c3130b96f46c3c071d2706974d18a29cc4c93a108d0bdb6b90f3953d693a