{"id":20792625,"url":"https://github.com/mkrl/pgrant","last_synced_at":"2025-03-12T01:17:17.104Z","repository":{"id":114879080,"uuid":"134535973","full_name":"mkrl/pgrant","owner":"mkrl","description":"Valve promo distribution tool","archived":false,"fork":false,"pushed_at":"2018-05-24T06:05:46.000Z","size":7779,"stargazers_count":0,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-18T11:11:38.401Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mkrl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2018-05-23T08:11:34.000Z","updated_at":"2020-05-31T15:59:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"be56e9e7-440c-410d-9f71-e0bc746e56f3","html_url":"https://github.com/mkrl/pgrant","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkrl%2Fpgrant","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkrl%2Fpgrant/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkrl%2Fpgrant/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkrl%2Fpgrant/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mkrl","download_url":"https://codeload.github.com/mkrl/pgrant/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243136025,"owners_count":20241990,"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":[],"created_at":"2024-11-17T15:53:05.616Z","updated_at":"2025-03-12T01:17:17.082Z","avatar_url":"https://github.com/mkrl.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# pgrant\nA GUI wrapper for a TF2 promotional [distribution script](https://gist.github.com/BenjaminSchaaf/e65c9dbccf32d49c23d97d94b61b95da), originally made by Benjamin Schaaf.\n\n## Installation\n\nFor Linux systems, you should already have Python 3 installed. You can check if you have it by typing in the following command in terminal:\n`python3`\n\nInstall requests module with pip:\n\n`pip install requests`\n\nFor Windows, download any Python version that is greater than 3.4 [here](https://www.python.org/downloads/), OR use the compiled executable from the release tab. Please double check that, Python 2.7 will **not** run this.\n\n## Running \n\nFor Linux, download the [latest release](https://github.com/mkrl/pgrant/releases), put it anywhere on your disk. Open up a terminal in the directory you have this program in, and use `python3 grant.py` to run the program.\n\nFor Windows, if you did install Python, you can either follow the Linux way, or just double-click on the file. Otherwise, if you downloaded the executable, simply run `grant.exe`\n\n## Usage\n\nOn startup, you'll see 2 windows: console and a window prompting your Steam API key and a promo ID that represents the item you are giving away.\n\nThe program works with a file formatted in the following way: 1 steamID64 per line.\nSteamID64 is a 17-symbol digit string.\n\nThis is an example of how your input file can look like:\n\n`file.txt`:\n```\n76561198071371521\n76561198071371521\n76561198071371511\n76561198071361421\n76561198071371551\n76561198071312451\n```\n\nFill in your API key and a Promo ID, press \"Load a file\" button and select the file you need. The path to the file will appear at the bottom of the window. \nThe console window will show how many SteamIDs it detected in the file.\n\nOnce the file was loaded, you'll be able to press the \"Grant\" button. Once pressed, the window may become non-responsive, this is normal. \n\nTake a look at the console window, it will show you the progress of the distrubution process.\nYou'll see something that looks like this:\n\n```\nGranting [promo id] to:\n76561198071371521 [SUCCESS!]\n76561198071371511 [SUCCESS!]\n76561198071361421 [SUCCESS!]\n76561198071371551 [SUCCESS!]\n76561198071312451 [SUCCESS!]\n76561198071371551 [SUCCESS!]\n--------------------------\nFinished file processing\n```\n\nIf the distribution fails, you'll see `[FAIL (reason)]`  instead of the usual success message. Usually it will be either invalid token or internet connection problems.\n\n## Logging\n\nOn every program launch, it will generate/overwrite `log.txt` file, at the same directory the program is running.\nThis file is basically an echo of what you'll see in the console window.\n\nIf you had some of your requests failed, be sure to save your log / steamids that failed into another place and try granting again later.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkrl%2Fpgrant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmkrl%2Fpgrant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkrl%2Fpgrant/lists"}