Skip to content

nathanrosspowell/raffle.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

raffle.py

Inputs:

  1. path to entries JSON
  2. path to stock JSON
  3. optional: integer value for an item limit

Example usage: raffle.py entries.json stock.json 2

Example output: results.json

{
    "remaining stock": {
        "Ecto: Topre": 6
    },
    "winners": [
        {
            "RoastPotatoes": [
                "Ecto: Topre",
                "Callisto: MX"
            ]
        },
        {
            "Deductivemonkee": [
                "Pulsate: Topre"
            ]
        },
        {
            "nathanrosspowell": [
                "Ecto: Topre",
                "Pulsate: Topre"
            ]
        },
        {
            "deduction": [
                "Ecto: Topre"
            ]
        },
        {
            "Hispes": [
                "Ecto: Topre"
            ]
        }
    ]
}

About

Basic raffle software in python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages