Skip to main content

Default template for PDM package

Project description

SRIndexProto

  • Prototype of calculator for Social Relationship Index

Use

$ srindex 

Please read the script and think of people around you carefully.
Please answer the questions faithfully.

You can estimate the Index of overall by calculating average.
and also the Index of case(person) individually.

BUT, PLEASE DO NOT BE SERIOUS.

Results are shown as follows:

--------------------------------- RESULT ----------------------------------------
The importance of each elements you answered: scale of 100
- money: 38.46
- time: 30.77
- emotion: 30.77

The average performance of each elements you answered: scale of 100
- money: 70.00
- time: 55.00
- emotion: 75.00
*The criteria for converting to a score out of 100 are as follows:
point1: 0 | point2: 25 | point3: 50 | point4: 75 | point5: 100

The table of 'Performance' for each case of each element is as follows:
┏━━━━━━━━━┳━━━━━━━┳━━━━━━┳━━━━━━━━━┓
┃ Case ID  Money  Time  Emotion ┃
┡━━━━━━━━━╇━━━━━━━╇━━━━━━╇━━━━━━━━━┩
│ Average   70.0  55.0     75.0 │
│    1      75.0  50.0     75.0 │
│    2      25.0  75.0     50.0 │
│    3      75.0  50.0     75.0 │
│    4     100.0  75.0    100.0 │
│    5      75.0  25.0     75.0 │
└─────────┴───────┴──────┴─────────┘

Totally, the Social Relationship Index is: 66.92

The table of 'Index'(=Importance*Performance) by case is as follows:
┏━━━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Case ID  Money  Time   Emotion  Social Relationship Index ┃
┡━━━━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ Average  26.92  16.92   23.08             66.92           │
│    1     28.85  15.38   23.08             67.31           │
│    2     9.62   23.08   15.38             48.08           │
│    3     28.85  15.38   23.08             67.31           │
│    4     38.46  23.08   30.77             92.31           │
│    5     28.85  7.69    23.08             59.62           │
└─────────┴───────┴───────┴─────────┴───────────────────────────┘
---------------------------------------------------------------------------------

Requirements

To calculate the Index, you need to collect data of arguments as follows:
- Money: give-and-take between each other
- Time: meetings spent together
- Emotion: contact exchanged with each other
and each arguments is quantified as "Performance", measured by scaling on a 5-point scale

On a scale of 1 to 5, please rate the "Importance" of Money, Time, and Emotion invested in your social relationships, based on your personal values. 

Weight of arguments are calculated by using importance1,2,3 as follows:
- (importance of argument / total) * 100
*total: summation of importance 

The Social Relationship Index is "Weighted Sum" of arguments.
 
In order to produce the Social Relationship Index,
please read carefully the Introduction of index and the criteria for evaluating arguments.   

Development environment setting guide

# install PDM
# git clone ...
# pdm venv create
$ source .venv/bin/activate
$ pdm install
# $ vi ...


# TEST
$ pdm install
$ pdm test
$ pip install .

$ git add <FILE_NAME>
$ git commit -a
$ git push
$ pdm publish --username __token__ --password $PYPI_TOKEN

View at:
https://pypi.org/project/SRIndexProto/

# PR - Merge
# Tag - Releases

Test

# $ pdm add -dG test pytest pytest-cov
$ pytest
$ pytest -s
$ pytest --cov

Ref

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

srindexproto-0.3.0.tar.gz (18.9 kB view details)

Uploaded Source

Built Distribution

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

srindexproto-0.3.0-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

Details for the file srindexproto-0.3.0.tar.gz.

File metadata

  • Download URL: srindexproto-0.3.0.tar.gz
  • Upload date:
  • Size: 18.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.22.3 CPython/3.10.12 Linux/5.15.167.4-microsoft-standard-WSL2

File hashes

Hashes for srindexproto-0.3.0.tar.gz
Algorithm Hash digest
SHA256 f9602bd8f2299697cc776855a741be5d11af46e32138cb68211d212a49eca1ff
MD5 1a53fcd5bd0bcf792adc97808a29856a
BLAKE2b-256 9c3fe331890c63888b8942bc9f27fc68883c2c7dbe2c1c8c339b27e59acf862e

See more details on using hashes here.

File details

Details for the file srindexproto-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: srindexproto-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 19.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.22.3 CPython/3.10.12 Linux/5.15.167.4-microsoft-standard-WSL2

File hashes

Hashes for srindexproto-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2c2a00d019bb0a13923aca9c33c3b06d6dffd190d5dcd012451220c6628cc916
MD5 f990d2210cc54584d6a6b66abb650ac8
BLAKE2b-256 76dbb7a5da3b0262206a9f35cc2a526d30b7660b7a434f8054bae104b5501df8

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