topsis-iyasha-102103034


Nametopsis-iyasha-102103034 JSON
Version 0.1 PyPI version JSON
download
home_page
SummaryTopsis Package
upload_time2024-01-22 09:35:17
maintainer
docs_urlNone
authoriyasha
requires_python
licenseMIT
keywords topsis mcdm
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            For: **Assignment-1 (UCS654)** 

Submitted by: **iyasha** 

Roll No: **102103034**

Group: **3COE2**
# Topsis_iyasha_102103034
Topsis_iyasha_102103034 is a Python library for dealing with Multiple Criteria Decision Making (MCDM) problems by applying Technique for Order of Preference by Similarity to Ideal Solution (TOPSIS).
## Installation
Install Topsis_iyasha_102103034 using Pypi via pip.
```sh
$ pip install topsis_iyasha_102103034
```
## Usage
You can use this package in python as :
```python
from topsis_iyasha_102103034 import topsis
inputFile="sample.csv"
weights="1,1,1,1"
impacts="-,+,+,+"
resultFile="result.csv" 
topsis(inputFile, weights, impacts, resultFile)
```
###### OR
You can use this package via commandline as :
```sh
$ topsis [InputDataFile as .csv] [Weights as a string] [Impacts as a string] [ResultFileName as .csv]
```
For Example :
```sh
$ topsis sample.csv "1,1,1,1" "-,+,+,+" result.csv
```
##### Please Note That :
- The first column and first row are removed by the library before processing, in attempt to remove indices and headers. So the csv  MUST follow the format as shown in sample.csv shown in the *Example* section.
- The input data file MUST contain three or more columns.
- The second to last columns of the data file MUST contain *NUMERIC* values.
- The number of weights, impacts and columns (second to last) MUST be *SAME*.
- Impacts MUST either be '+' or '-'.
- Impacts and Weights MUST be separated by ‘,’ (comma).

## Example
#### sample.csv
A csv file that contains data for mobile models and their features.
| Model | Price (in $) | Storage Space (in GB) | Camera (in MP) |  Looks (1 to 5) |
| :-: | :-: | :-: | :-: | :-: |
| M1 | 250 | 16 | 12 | 5 | 
| M2 | 200 | 16 | 8 | 3 |
| M3 | 300 | 32 | 16 | 4 |
| M4 | 275 | 32 | 8 | 4 |
| M5 | 225 | 16 | 16 | 2 |

Weights : 0.25,0.25,0.25,0.25

Impacts : -,+,+,+

#### input :
```cd
$ topsis sample.csv "0.25,0.25,0.25,0.25" "-,+,+,+" result.csv
```
#### result.csv
A csv file that contains the same data as sample.csv with two additional columns 'Topsis Score' and 'Rank'.
| Model | Price (in $) | Storage Space (in GB) | Camera (in MP) |  Looks (1 to 5) | Topsis Score | Rank |
| :-: | :-: | :-: | :-: | :-: | :-: | :-: |
| M1 | 250 | 16 | 12 | 5 | 53.43 | 3 |
| M2 | 200 | 16 | 8 | 3 | 30.84 | 5 |
| M3 | 300 | 32 | 16 | 4 | 69.16 | 1 |
| M4 | 275 | 32 | 8 | 4 | 53.47 | 2 |
| M5 | 225 | 16 | 16 | 2 | 40.1 | 4 |

## License
MIT License

Copyright (c) 2024 iyasha

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "topsis-iyasha-102103034",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "TOPSIS,MCDM",
    "author": "iyasha",
    "author_email": "iiyasha_be21@thapar.edu",
    "download_url": "https://files.pythonhosted.org/packages/a8/24/2b333f53966480f891a4a55a52a779be87f5dc3a1c60c18526ca3b9f14f3/topsis_iyasha_102103034-0.1.tar.gz",
    "platform": null,
    "description": "For: **Assignment-1 (UCS654)** \r\n\r\nSubmitted by: **iyasha** \r\n\r\nRoll No: **102103034**\r\n\r\nGroup: **3COE2**\r\n# Topsis_iyasha_102103034\r\nTopsis_iyasha_102103034 is a Python library for dealing with Multiple Criteria Decision Making (MCDM) problems by applying Technique for Order of Preference by Similarity to Ideal Solution (TOPSIS).\r\n## Installation\r\nInstall Topsis_iyasha_102103034 using Pypi via pip.\r\n```sh\r\n$ pip install topsis_iyasha_102103034\r\n```\r\n## Usage\r\nYou can use this package in python as :\r\n```python\r\nfrom topsis_iyasha_102103034 import topsis\r\ninputFile=\"sample.csv\"\r\nweights=\"1,1,1,1\"\r\nimpacts=\"-,+,+,+\"\r\nresultFile=\"result.csv\" \r\ntopsis(inputFile, weights, impacts, resultFile)\r\n```\r\n###### OR\r\nYou can use this package via commandline as :\r\n```sh\r\n$ topsis [InputDataFile as .csv] [Weights as a string] [Impacts as a string] [ResultFileName as .csv]\r\n```\r\nFor Example :\r\n```sh\r\n$ topsis sample.csv \"1,1,1,1\" \"-,+,+,+\" result.csv\r\n```\r\n##### Please Note That :\r\n- The first column and first row are removed by the library before processing, in attempt to remove indices and headers. So the csv  MUST follow the format as shown in sample.csv shown in the *Example* section.\r\n- The input data file MUST contain three or more columns.\r\n- The second to last columns of the data file MUST contain *NUMERIC* values.\r\n- The number of weights, impacts and columns (second to last) MUST be *SAME*.\r\n- Impacts MUST either be '+' or '-'.\r\n- Impacts and Weights MUST be separated by \u00e2\u20ac\u02dc,\u00e2\u20ac\u2122 (comma).\r\n\r\n## Example\r\n#### sample.csv\r\nA csv file that contains data for mobile models and their features.\r\n| Model | Price (in $) | Storage Space (in GB) | Camera (in MP) |  Looks (1 to 5) |\r\n| :-: | :-: | :-: | :-: | :-: |\r\n| M1 | 250 | 16 | 12 | 5 | \r\n| M2 | 200 | 16 | 8 | 3 |\r\n| M3 | 300 | 32 | 16 | 4 |\r\n| M4 | 275 | 32 | 8 | 4 |\r\n| M5 | 225 | 16 | 16 | 2 |\r\n\r\nWeights : 0.25,0.25,0.25,0.25\r\n\r\nImpacts : -,+,+,+\r\n\r\n#### input :\r\n```cd\r\n$ topsis sample.csv \"0.25,0.25,0.25,0.25\" \"-,+,+,+\" result.csv\r\n```\r\n#### result.csv\r\nA csv file that contains the same data as sample.csv with two additional columns 'Topsis Score' and 'Rank'.\r\n| Model | Price (in $) | Storage Space (in GB) | Camera (in MP) |  Looks (1 to 5) | Topsis Score | Rank |\r\n| :-: | :-: | :-: | :-: | :-: | :-: | :-: |\r\n| M1 | 250 | 16 | 12 | 5 | 53.43 | 3 |\r\n| M2 | 200 | 16 | 8 | 3 | 30.84 | 5 |\r\n| M3 | 300 | 32 | 16 | 4 | 69.16 | 1 |\r\n| M4 | 275 | 32 | 8 | 4 | 53.47 | 2 |\r\n| M5 | 225 | 16 | 16 | 2 | 40.1 | 4 |\r\n\r\n## License\r\nMIT License\r\n\r\nCopyright (c) 2024 iyasha\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Topsis Package",
    "version": "0.1",
    "project_urls": null,
    "split_keywords": [
        "topsis",
        "mcdm"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0837488af4b0753361321c836f0b6a72274fb3446359907d4ff195507ed5a6e4",
                "md5": "00627e0e6e91ee4ae8a4b54dc9570553",
                "sha256": "826bd23b4d6055c9e79e234e0ded860f75ef7e3f982794b1e207c07d8abb855b"
            },
            "downloads": -1,
            "filename": "topsis_iyasha_102103034-0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "00627e0e6e91ee4ae8a4b54dc9570553",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 6072,
            "upload_time": "2024-01-22T09:35:16",
            "upload_time_iso_8601": "2024-01-22T09:35:16.015017Z",
            "url": "https://files.pythonhosted.org/packages/08/37/488af4b0753361321c836f0b6a72274fb3446359907d4ff195507ed5a6e4/topsis_iyasha_102103034-0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a8242b333f53966480f891a4a55a52a779be87f5dc3a1c60c18526ca3b9f14f3",
                "md5": "5986e6f59278a963dc23e859efc5fdc5",
                "sha256": "dbf2b3bdbb4da15015ee2cb9577284cb6c85532ebc6d0f11f67d2025efb8c3d0"
            },
            "downloads": -1,
            "filename": "topsis_iyasha_102103034-0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "5986e6f59278a963dc23e859efc5fdc5",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 5197,
            "upload_time": "2024-01-22T09:35:17",
            "upload_time_iso_8601": "2024-01-22T09:35:17.903087Z",
            "url": "https://files.pythonhosted.org/packages/a8/24/2b333f53966480f891a4a55a52a779be87f5dc3a1c60c18526ca3b9f14f3/topsis_iyasha_102103034-0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-22 09:35:17",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "topsis-iyasha-102103034"
}
        
Elapsed time: 0.17194s