{"id":17942506,"url":"https://github.com/b1f6c1c4/pythoness","last_synced_at":"2025-03-24T14:32:42.492Z","repository":{"id":34071896,"uuid":"168447500","full_name":"b1f6c1c4/pythoness","owner":"b1f6c1c4","description":"Check how pythonic a Github user is.","archived":false,"fork":false,"pushed_at":"2025-03-11T19:35:27.000Z","size":94,"stargazers_count":3,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-19T03:57:58.228Z","etag":null,"topics":["demography","github","programming-language","python"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/b1f6c1c4.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-31T02:12:36.000Z","updated_at":"2025-03-11T19:35:25.000Z","dependencies_parsed_at":"2024-01-16T14:03:53.287Z","dependency_job_id":"8d5bf5a7-8e29-4920-8743-0b623c617ebd","html_url":"https://github.com/b1f6c1c4/pythoness","commit_stats":{"total_commits":32,"total_committers":3,"mean_commits":"10.666666666666666","dds":0.25,"last_synced_commit":"cc0895408a9733c5396d56e90cbe13acc871a6b4"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b1f6c1c4%2Fpythoness","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b1f6c1c4%2Fpythoness/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b1f6c1c4%2Fpythoness/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b1f6c1c4%2Fpythoness/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/b1f6c1c4","download_url":"https://codeload.github.com/b1f6c1c4/pythoness/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245289773,"owners_count":20591130,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["demography","github","programming-language","python"],"created_at":"2024-10-29T03:05:58.047Z","updated_at":"2025-03-24T14:32:42.198Z","avatar_url":"https://github.com/b1f6c1c4.png","language":"JavaScript","readme":"# pythoness\n\n[![npm](https://img.shields.io/npm/v/pythoness.svg?style=flat-square)](https://www.npmjs.com/package/pythoness)\n[![npm](https://img.shields.io/npm/dt/pythoness.svg?style=flat-square)](https://www.npmjs.com/package/pythoness)\n[![GitHub last commit](https://img.shields.io/github/last-commit/b1f6c1c4/pythoness.svg?style=flat-square)](https://github.com/b1f6c1c4/pythoness)\n[![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/b1f6c1c4/pythoness.svg?style=flat-square)](https://github.com/b1f6c1c4/pythoness)\n[![license](https://img.shields.io/github/license/b1f6c1c4/pythoness.svg?style=flat-square)](https://github.com/b1f6c1c4/pythoness/blob/master/LICENSE.md)\n\n\u003e Check how pythonic a Github user is.\n\n:heavy_exclamation_mark:\n:heavy_exclamation_mark:\n**DO NOT judge any one based on how pythonic/a-pythonic they are/it is.**\n:heavy_exclamation_mark:\n:heavy_exclamation_mark:\n\n## TL;DR\n\n```sh\nnpm i -g pythoness\n# Generate a token at https://github.com/settings/tokens\necho the-token \u003e ~/.pythoness\npythoness             # Check your daily Pythoness, public \u0026 private\npythoness --public    # Check your daily Pythoness, public repo only\npythoness b1f6c1c4    # How Pythonic another user is? (public only)\n```\n\n## Installation\n\n```sh\n$ npm install --global pythoness\n```\n## Usage\n\n```\npythoness [\u003cwho\u003e]\n\nCheck pythoness of a Github user\n\nCommands:\n  pythoness.js show-limit     Show GitHub API usage and limit\n  pythoness.js check [\u003cwho\u003e]  Check pythoness of a Github user         [default]\n\nPositionals:\n  who  Github username                                                  [string]\n\nOptions:\n  --version        Show version number                                 [boolean]\n  --token-file     Github token file for full control of private repos, see\n                   https://github.com/settings/tokens\n                                              [string] [default: \"~/.pythoness\"]\n  -t, --token      Github token for full control of private repos, see\n                   https://github.com/settings/tokens                   [string]\n  --public         Ignore all private repos                            [boolean]\n  --help           Show help                                           [boolean]\n  -s, --self       Check their own repos               [boolean] [default: true]\n  -S, --star       Include starred repos               [boolean] [default: true]\n  -f, --following  Check following's repos (depth=1)   [boolean] [default: true]\n  -F, --followers  Check followers' repos (depth=1)    [boolean] [default: true]\n```\n\n## FAQ\n\n### Why this program is written in JavaScript, not Python?\n\nBecause of neutrality of accounting.\n\n### How Pythoness calculated?\n\n#### Pythoness of a single repo\n\n\u003cimg src=\"https://latex.codecogs.com/gif.latex?1-\\exp\\left(1+\\frac{2/3}{\\lambda-2/3}\\right)\" /\u003e\n\nwhere \u003cimg src=\"https://latex.codecogs.com/gif.latex?\\lambda\" /\u003e is the ratio of Python bytes among all code bytes (the proportion of Python blue in the Github webpage).\n\n#### Self-Pythoness of an user\n\nSelf-Pythoness of an user is defined to be the \"congress\" average of their repos' Pythoness.\nFirst, a repo is assigned senate and the house seats, separatedly, based on the following rules:\n\n| type | Senate seats | The House seats |\n| --- | --- | --- |\n| owner, empty, source | 100 | 0 |\n| owner, empty, fork | 1 | 0 |\n| owner, non-empty, source | 1000 | Number of total code bytes |\n| owner, non-empty, fork | 50 | 0 |\n| non-owner, starred | 10 | 0 |\n\nThen, senate and the house will \"vote\", or calculate weighted arithmetic average.\nFinally, the \"congress\" average is defined as\n\n\u003cimg src=\"https://latex.codecogs.com/gif.latex?\\sqrt{\\frac{\\text{Senate}^2+\\text{House}^2}{2}}\" /\u003e\n\n#### Following-Pythoness of an user\n\nFirst, all users followed by the targeted user will be enumerated and have their self-pythoness calculated.\nNext, each one is assigned senate and the house seats, separatedly, based on the following rules:\n\n| type | Senate seats | The House seats |\n| --- | --- | --- |\n| has written at least one byte code | 1000 | Number of total code bytes |\n| has not writeen any code | 10 | 0 |\n\nThen follow the same procedure as above.\n\n#### Followers-Pythoness of an user\n\nAll users following the targeted user will be enumerated and have their self-pythoness calculated.\nThe same procedure as above applies.\n\n#### Final Pythoness of an user\n\nIt's defined as the RMS (root-mean-square) of their self-, following-, followers- Pythoness (whichever enabled in the command line).\n\n## Legal\n\nThis repo is licensed with GNU AGPLv3 or later.\n\nAgain, the output of this program has absolutely no relationship with the Github user's personality, morality, and/or technical skills.\nDo NOT judge any person, organization, or entity based on how pythonic they are(aren't)/it is(isn't).\nThe author(s) hold(s) absolutely no liability for anything caused by any interpretation of pythonic information, including but not limited to the output of this program.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb1f6c1c4%2Fpythoness","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fb1f6c1c4%2Fpythoness","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb1f6c1c4%2Fpythoness/lists"}