# Topsis Package (API & CLI)
> CLI scripts takes `csv/excel` files as input!
## Installation
```
pip install Topsis-Nandini-102067009
```
## Command Line Usage
```
topsis input_file weights impacts output_file
```
### Arguments
| Arguments | Description |
|------------| -----------------|
| input_file | "CSV/Excel" file path |
| weights | Comma separated numbers |
| impacts | Comma separated '+' or '-' |
| output_file | Output CSV file path |
### Output
Creates a *output_file*, that contains the original data with performance score and rank.
Example:
```bash
topsis data.xlsx "1,1,1,1,1" "+,-,+,-,+" output.csv
```
## API Usage
### Steps
1. Import topsis function from module topsis
2. Invoke topsis function by passing in data, weights, impacts
Example:
```python
from topsis import topsis
import pandas as pd
df = pd.read_csv('data.csv')
weights = [2,2,3,3,4]
impacts=[1,-1,1,-1,1]
print(topsis(df, weights, impacts))
```
Raw data
{
"_id": null,
"home_page": "https://github.com/NandiniMehta0603/Topsis",
"name": "Topsis-Nandini-102067009",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "topsis,python,pypi,csv,xlsx,xls,cli",
"author": "Nandini Mehta",
"author_email": "mehtanandini684@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/f6/5b/cf32dfb4e4b1172a04525b27f61988f7d63acc7de91302b62d6ab07f9463/Topsis-Nandini-102067009-1.1.4.tar.gz",
"platform": null,
"description": "# Topsis Package (API & CLI)\n\n> CLI scripts takes `csv/excel` files as input!\n\n## Installation\n```\npip install Topsis-Nandini-102067009\n```\n\n## Command Line Usage\n```\ntopsis input_file weights impacts output_file\n```\n### Arguments\n| Arguments | Description |\n|------------| -----------------|\n| input_file | \"CSV/Excel\" file path |\n| weights | Comma separated numbers |\n| impacts | Comma separated '+' or '-' |\n| output_file | Output CSV file path |\n\n### Output\nCreates a *output_file*, that contains the original data with performance score and rank.\n\nExample:\n```bash\ntopsis data.xlsx \"1,1,1,1,1\" \"+,-,+,-,+\" output.csv \n```\n\n## API Usage\n### Steps\n1. Import topsis function from module topsis\n2. Invoke topsis function by passing in data, weights, impacts\n\nExample:\n```python\nfrom topsis import topsis\nimport pandas as pd\n\ndf = pd.read_csv('data.csv')\nweights = [2,2,3,3,4]\nimpacts=[1,-1,1,-1,1]\nprint(topsis(df, weights, impacts))\n```\n\n\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "API and CLI tool to calculate Topsis, CLI tool inputs CSV/Excel files",
"version": "1.1.4",
"split_keywords": [
"topsis",
"python",
"pypi",
"csv",
"xlsx",
"xls",
"cli"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "e30e69ece7503b0741c8d7c7b5c5f7de2c3a2de02bcfa6a42d2db476cd42263e",
"md5": "3b962249840360fb8f3f32a26abc3fcb",
"sha256": "3bcf139c71c1c9c3551d85d2631d47819ce4a7c50719e02bbd95ea7b878b29c2"
},
"downloads": -1,
"filename": "Topsis_Nandini_102067009-1.1.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "3b962249840360fb8f3f32a26abc3fcb",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 4776,
"upload_time": "2023-01-22T17:37:51",
"upload_time_iso_8601": "2023-01-22T17:37:51.518032Z",
"url": "https://files.pythonhosted.org/packages/e3/0e/69ece7503b0741c8d7c7b5c5f7de2c3a2de02bcfa6a42d2db476cd42263e/Topsis_Nandini_102067009-1.1.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "f65bcf32dfb4e4b1172a04525b27f61988f7d63acc7de91302b62d6ab07f9463",
"md5": "b6d0b3caace413571140b9c2afa9532b",
"sha256": "0d40a54ea919669d0ab1fcbcb3bb2b93be22df01530a4f4be19716047fd11cfc"
},
"downloads": -1,
"filename": "Topsis-Nandini-102067009-1.1.4.tar.gz",
"has_sig": false,
"md5_digest": "b6d0b3caace413571140b9c2afa9532b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4205,
"upload_time": "2023-01-22T17:37:53",
"upload_time_iso_8601": "2023-01-22T17:37:53.554644Z",
"url": "https://files.pythonhosted.org/packages/f6/5b/cf32dfb4e4b1172a04525b27f61988f7d63acc7de91302b62d6ab07f9463/Topsis-Nandini-102067009-1.1.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-01-22 17:37:53",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "NandiniMehta0603",
"github_project": "Topsis",
"lcname": "topsis-nandini-102067009"
}