pyrandtoys

A python module for generating the result of probability-based toys. Installable on any system with pip command.

https://github.com/thenithinbalaji/pyrandtoys

Science Score: 54.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    1 of 3 committers (33.3%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.8%) to scientific vocabulary

Keywords

module open-source pypi-package python
Last synced: 6 months ago · JSON representation ·

Repository

A python module for generating the result of probability-based toys. Installable on any system with pip command.

Basic Info
Statistics
  • Stars: 8
  • Watchers: 1
  • Forks: 2
  • Open Issues: 1
  • Releases: 4
Topics
module open-source pypi-package python
Created almost 4 years ago · Last pushed over 3 years ago
Metadata Files
Readme Contributing Funding License Code of conduct Citation

README.md

PyRandToys

GitHub release (latest by date) GitHub Release Date GitHub repo size
GitHub contributors GitHub closed issues License
pyrandtoys is a python module containing probability-based toys' functions.
It works offline and is compatible with both Python 2 and 3.

🔮 Installation

pip install pyrandtoys

🖥️ Usage

import pyrandtoys print(pyrandtoys.coin()) #there are many other toys in pyrandtoys similar to coin, check below

List of functions available in pyrandtoys module

🎲 Dice

Optional: Number of Dice <int>
Default: Number of Dice = 1
Return Type: <tuple>
dice(number_of_dice)

🏆 Coin

Optional: Number of Coins <int>
Default: Number of Coins = 1
Return Type: <tuple>
coin(number_of_coins)

🃏 Card

Optional: Number of Cards <int>
Default: Number of Cards = 1
Return Type: <tuple>
card(number_of_cards)

🧮 Similar Toys

Optional: Number of Items <int>
Default: Number of Items = 1
Return Type: <tuple>
dreidel(number_of_dreis) cat(number_of_cats) switch(number_of_switches)

⚖️ Spinner

Required: Lower & Upper Limits <int>
Default: Lower Limit = 0
Return Type: <int>
spinner(lowerLimit, upperLimit)

🥂 Toy Combinations

Return Type: <tuple>
Default: Number of Toys = 0

If you want to use a combination of toys then,
Required: names of toys as <tuple>, <list>, <str>
combi("coin", "switch") combi(("switch", "cat", "dice")) combi(["dreidel", "coin", "coin", "cat"])

For combination of x random toys,

combi(x)

📚 Project Links

Owner

  • Name: The Nithin Balaji
  • Login: thenithinbalaji
  • Kind: user

A software developer building things to make the internet a better place.

Citation (CITATION.cff)

# YAML 1.2
---
authors:
  -
    name: "The Nithin Balaji and Team"
    email: thenithinbalaji@outlook.in
cff-version: "1.2.0"
date-released: 2022-03-019
license: MIT
message: "We acknowledge the importance of good software to support research, and we note that research becomes more valuable when it is communicated effectively. To demonstrate the value of pyrandtoys, we ask that you cite pyrandtoys in your work."
title: Pyrandtoys
version: "v1.0.0"
...

GitHub Events

Total
Last Year

Committers

Last synced: almost 3 years ago

All Time
  • Total Commits: 28
  • Total Committers: 3
  • Avg Commits per committer: 9.333
  • Development Distribution Score (DDS): 0.214
Top Committers
Name Email Commits
The Nithin Balaji t****i@g****m 22
Gokulram g****8@s****n 4
Dhravya d****h@g****m 2
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: over 1 year ago

All Time
  • Total issues: 5
  • Total pull requests: 2
  • Average time to close issues: 2 days
  • Average time to close pull requests: about 19 hours
  • Total issue authors: 3
  • Total pull request authors: 2
  • Average comments per issue: 1.8
  • Average comments per pull request: 1.0
  • Merged pull requests: 2
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • Dhravya (3)
  • GokulramGHV (1)
  • thenithinbalaji (1)
Pull Request Authors
  • Dhravya (1)
  • GokulramGHV (1)
Top Labels
Issue Labels
enhancement (4) help wanted (2) good first issue (2) documentation (1)
Pull Request Labels
enhancement (2)

Dependencies

setup.py pypi