pythiarg


Namepythiarg JSON
Version 0.5.1 PyPI version JSON
download
home_pageNone
SummaryRandom generator for rpgs and the sort.
upload_time2024-10-17 06:15:50
maintainerNone
docs_urlNone
authorNone
requires_python<3.13,>=3.12
licenseMIT License
keywords pythia oracle dnd trpg ttrpg generator random generator
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # PythiaRG

> SOME OF THIS INFO IS OUTDATED. THE PROJECT IS UNDERGOING A REWRITE WHICH WILL MAKE IT WAY EASIER TO CONFIGURE YOUR OWN RANDOM GENERATORS.

## Oracle and Random Generator
**pythiarg** is a cli tool that you can use to randomly generate ***stuff*** fast. What kind of stuff can you generate? Pretty much anything.
I made **pythiarg** as a tool to use with my TTRPG games and worldbuilding. 
IMHO best part about `pythiarg` is how modular it is! PythiaRG doesn't let you "generate" what you want? You can have a look at how easy it is [hacking pythiarg to do your bidding](##Hacking-pythiarg) below.


## Installation
1. Install with pip


## Example usage
```
#>pythiarg evank -p

=========
AVAILABLE PRESETS
---------
1: presetFood
2: presetClothing
3: presetCustomDungeon
4: presetCustomPotion
5: presetHexCrawl
=========


#>pythiarg evank -p presetCustomPotion

Custom Potion Recipe: 
Ingredients: 6 Last breath, 5 Killer’s hand, 5 Larkspur, 2 Witch hazel
Potion of Spider tail
Color: Ultramarine
Scent: Bitter
Taste: Sulphur
Texture: Frigid


#>pythiarg evank -p 1

Food: Undercooked Orange
```


## Hacking pythiarg
### Why would I want to do this?
While `pythiarg` should offer you almost anything that you might need for creating adventures set in a fantasy setting, you might want to use it to generate a character using specific rules from your TTRPG of choice. Maybe you are a Game Master, and want to randomly generate a dungeon for your players to explore, or a musician that can't decide which song they're going to start learning next. Whatever the reason may be, randomness can be very fun -sometimes funny- and very useful for a creative person!

If you are not going to need random **things** often, and specifically **things** that you cannot find already in this software, you may decide it is not really worth your time hacking at this

### How do I go about doing this?
pythiarg is written in *Python*. Python is an easy to learn programming language but in all honesty you won't be doing any more programming throughout this process than a kid does making a drawing by filling in colouring books. PythiaRG is written in a way where it is very modular and easy to append to. Just follow this simple recipe:
1. Make a copy of `template.py`.
1. Rename the file to something better and easily memorable.
1. Make your tables inside of the file by following the instructions.
1. Double check everything.
1. Import your tables in `__main__.py`
1. Copy the **arguments def template**, uncomment it and edit it appropriately.
1. Copy the **arguments parser template**, uncomment it and edit it appropriately.
1. Open a command prompt on the directory of the project.
1. Run `python __main__.py -h`
1. If you don't see the *help message* and instead see errors, then you truly need help. Start by checking spelling and missed quotes or commas. Otherwise, try running the command with the arguments you just made.
1. ???
1. Profit.

#### More info

The `template.py` file contains comments explaining everything relevant to making your tables to to help you throughout the process. "Tables" in this context are just lists of stuff formatted in a specific way. Could be a list of songs, colors, tastes, movies, or some oracle or random tables from your favorite TTRPG. If you want to do the last thing, having a copy of the `.pdf` version of the book and using *ChatGPT* to transform the table that you copied into the format we need can be ridiculously faster than just writing every element of the list, one by one. More info in regards to that can be found on the `template.py` file.

After you've made your **"tables"** it's time to make your ***"Table of Tables"***. This part is really important. Make sure there are no typos in the table names anywhere. If the program doesn't run as it you think it should, you most likely have made a spelling mistake somewhere, are missing a comma, parenthesis, quote or bracket.

Editing `__main__.py` could be ridiculously faster than the other file, depending on the amount and sizes of the tables you made.

#### Advanced

### Tables that point to other tables
If you follow the instructions in the `template.py` correctly, you should be able to make it so an element of a list points to another list. Due to the way pythiarg is written, if the element contains a string that matches the **key** of another "table" in your "table of tables", then `pythiarg` will fetch a random element from that table.
This can happen an indefinite amount of times and there are no protections to prevent pythiarg from going into an infinite recursive loop. This will leave her very confused. For your sake, I hope she doesn't get mad at you and lash out on any other programs in memory, though it is unlikely for that to happen.
### Presets
Using the previous bit of knowledge, we can create "Presets". For an example you could try running `python __main__.py spyt --preset potionseller` or `python __main__.py spyt --preset character`.
These two presets are a bit different implementation wise, but they both use the same concept of list elements that point to a random element from another list. Your friend might be happy with your d100 table of surnames, but you can have a dozen different surnames for your vivid character with hopes and dreams during the time it takes for you to roll the dice and look up the result on the table.
#### Implementation 1: Table combinations
The simplest implementation is a small random table that has a combination of words and links that point to different tables. For example, a surname table could be:
- *Name*+son
- *Color*
- *Occupation*
- *Adjective*+*Occupation*
- *Noun*+*Occupation*
- *Item*+man
- *Adjective*
- *Adjective*+*Adjective*
- *Adjective*+*Noun*
- *Noun*+*Noun*
- *Noun*
Now if we have 100 each of Names, Colors, Items, Adjectives and Nouns, we already have enough surnames for a small city in an island.
#### Implementation 2: Programming
Conditionals and loops can help us make some pretty interesting presets, but if you want to learn how to code in Python, then I suggest looking for a tutorial online, or do it the way I did and use [FreeCodeCamp](freecodecamp.org). #NotSponsored


## FAQ
>What is PythiarG?

**pythiarg** was created to be an *automated oracle*, and random *monster/character/item/city* generator for use with TTRPGs, or anything else really.

>Who is Pythia?

[Pythia](https://wikipedia.com/wiki/Pythia), **was** the oracle of Delphi. There are few people with that name.

>What is an automated oracle?

A glorified random list element selector.

>What happened to that ~~YOUTUBER'S_OSR_GAME~~ generator you made?

We don't talk about that here.

> While looking at your code/While using `pythiarg`, I noticed that your available lists are small and so the results predictable. Add more stuff.

Well you can make a **pull request** if you are so smart and creative yourself.

> Why did you make this instead of using the oracles you can find in ~~your choice of an awesome book with oracles or/and/orand random tables~~?

Because I enjoy wasting an amount of time from my life I do not want to disclose in order to save 10 seconds doing something that could be done in 1. Those seconds add up you know! Also, for the heck of it.

> Why use this instead of an online generator?

- You don't have internet.
- You want something you can customize
- You find it faster, simpler or easier to run a command than to use an online tool.
- What you want doesn't exist. (Yet?)
- Cause I made this for you. (And me.)

> I run the example command and I didn't get the result stated.

That's good.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "pythiarg",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<3.13,>=3.12",
    "maintainer_email": "Todd Sonjiku <dev.50nj1ku@erine.email>",
    "keywords": "pythia, oracle, dnd, trpg, ttrpg, generator, random generator",
    "author": null,
    "author_email": "Todd Sonjiku <dev.50nj1ku@erine.email>",
    "download_url": "https://files.pythonhosted.org/packages/eb/af/08b90a07fdc55d523df2a5dee2b4d0949203cc215cc88f09c197b3bdcdb0/pythiarg-0.5.1.tar.gz",
    "platform": null,
    "description": "# PythiaRG\n\n> SOME OF THIS INFO IS OUTDATED. THE PROJECT IS UNDERGOING A REWRITE WHICH WILL MAKE IT WAY EASIER TO CONFIGURE YOUR OWN RANDOM GENERATORS.\n\n## Oracle and Random Generator\n**pythiarg** is a cli tool that you can use to randomly generate ***stuff*** fast. What kind of stuff can you generate? Pretty much anything.\nI made **pythiarg** as a tool to use with my TTRPG games and worldbuilding. \nIMHO best part about `pythiarg` is how modular it is! PythiaRG doesn't let you \"generate\" what you want? You can have a look at how easy it is [hacking pythiarg to do your bidding](##Hacking-pythiarg) below.\n\n\n## Installation\n1. Install with pip\n\n\n## Example usage\n```\n#>pythiarg evank -p\n\n=========\nAVAILABLE PRESETS\n---------\n1: presetFood\n2: presetClothing\n3: presetCustomDungeon\n4: presetCustomPotion\n5: presetHexCrawl\n=========\n\n\n#>pythiarg evank -p presetCustomPotion\n\nCustom Potion Recipe: \nIngredients: 6 Last breath, 5 Killer\u2019s hand, 5 Larkspur, 2 Witch hazel\nPotion of Spider tail\nColor: Ultramarine\nScent: Bitter\nTaste: Sulphur\nTexture: Frigid\n\n\n#>pythiarg evank -p 1\n\nFood: Undercooked Orange\n```\n\n\n## Hacking pythiarg\n### Why would I want to do this?\nWhile `pythiarg` should offer you almost anything that you might need for creating adventures set in a fantasy setting, you might want to use it to generate a character using specific rules from your TTRPG of choice. Maybe you are a Game Master, and want to randomly generate a dungeon for your players to explore, or a musician that can't decide which song they're going to start learning next. Whatever the reason may be, randomness can be very fun -sometimes funny- and very useful for a creative person!\n\nIf you are not going to need random **things** often, and specifically **things** that you cannot find already in this software, you may decide it is not really worth your time hacking at this\n\n### How do I go about doing this?\npythiarg is written in *Python*. Python is an easy to learn programming language but in all honesty you won't be doing any more programming throughout this process than a kid does making a drawing by filling in colouring books. PythiaRG is written in a way where it is very modular and easy to append to. Just follow this simple recipe:\n1. Make a copy of `template.py`.\n1. Rename the file to something better and easily memorable.\n1. Make your tables inside of the file by following the instructions.\n1. Double check everything.\n1. Import your tables in `__main__.py`\n1. Copy the **arguments def template**, uncomment it and edit it appropriately.\n1. Copy the **arguments parser template**, uncomment it and edit it appropriately.\n1. Open a command prompt on the directory of the project.\n1. Run `python __main__.py -h`\n1. If you don't see the *help message* and instead see errors, then you truly need help. Start by checking spelling and missed quotes or commas. Otherwise, try running the command with the arguments you just made.\n1. ???\n1. Profit.\n\n#### More info\n\nThe `template.py` file contains comments explaining everything relevant to making your tables to to help you throughout the process. \"Tables\" in this context are just lists of stuff formatted in a specific way. Could be a list of songs, colors, tastes, movies, or some oracle or random tables from your favorite TTRPG. If you want to do the last thing, having a copy of the `.pdf` version of the book and using *ChatGPT* to transform the table that you copied into the format we need can be ridiculously faster than just writing every element of the list, one by one. More info in regards to that can be found on the `template.py` file.\n\nAfter you've made your **\"tables\"** it's time to make your ***\"Table of Tables\"***. This part is really important. Make sure there are no typos in the table names anywhere. If the program doesn't run as it you think it should, you most likely have made a spelling mistake somewhere, are missing a comma, parenthesis, quote or bracket.\n\nEditing `__main__.py` could be ridiculously faster than the other file, depending on the amount and sizes of the tables you made.\n\n#### Advanced\n\n### Tables that point to other tables\nIf you follow the instructions in the `template.py` correctly, you should be able to make it so an element of a list points to another list. Due to the way pythiarg is written, if the element contains a string that matches the **key** of another \"table\" in your \"table of tables\", then `pythiarg` will fetch a random element from that table.\nThis can happen an indefinite amount of times and there are no protections to prevent pythiarg from going into an infinite recursive loop. This will leave her very confused. For your sake, I hope she doesn't get mad at you and lash out on any other programs in memory, though it is unlikely for that to happen.\n### Presets\nUsing the previous bit of knowledge, we can create \"Presets\". For an example you could try running `python __main__.py spyt --preset potionseller` or `python __main__.py spyt --preset character`.\nThese two presets are a bit different implementation wise, but they both use the same concept of list elements that point to a random element from another list. Your friend might be happy with your d100 table of surnames, but you can have a dozen different surnames for your vivid character with hopes and dreams during the time it takes for you to roll the dice and look up the result on the table.\n#### Implementation 1: Table combinations\nThe simplest implementation is a small random table that has a combination of words and links that point to different tables. For example, a surname table could be:\n- *Name*+son\n- *Color*\n- *Occupation*\n- *Adjective*+*Occupation*\n- *Noun*+*Occupation*\n- *Item*+man\n- *Adjective*\n- *Adjective*+*Adjective*\n- *Adjective*+*Noun*\n- *Noun*+*Noun*\n- *Noun*\nNow if we have 100 each of Names, Colors, Items, Adjectives and Nouns, we already have enough surnames for a small city in an island.\n#### Implementation 2: Programming\nConditionals and loops can help us make some pretty interesting presets, but if you want to learn how to code in Python, then I suggest looking for a tutorial online, or do it the way I did and use [FreeCodeCamp](freecodecamp.org). #NotSponsored\n\n\n## FAQ\n>What is PythiarG?\n\n**pythiarg** was created to be an *automated oracle*, and random *monster/character/item/city* generator for use with TTRPGs, or anything else really.\n\n>Who is Pythia?\n\n[Pythia](https://wikipedia.com/wiki/Pythia), **was** the oracle of Delphi. There are few people with that name.\n\n>What is an automated oracle?\n\nA glorified random list element selector.\n\n>What happened to that ~~YOUTUBER'S_OSR_GAME~~ generator you made?\n\nWe don't talk about that here.\n\n> While looking at your code/While using `pythiarg`, I noticed that your available lists are small and so the results predictable. Add more stuff.\n\nWell you can make a **pull request** if you are so smart and creative yourself.\n\n> Why did you make this instead of using the oracles you can find in ~~your choice of an awesome book with oracles or/and/orand random tables~~?\n\nBecause I enjoy wasting an amount of time from my life I do not want to disclose in order to save 10 seconds doing something that could be done in 1. Those seconds add up you know! Also, for the heck of it.\n\n> Why use this instead of an online generator?\n\n- You don't have internet.\n- You want something you can customize\n- You find it faster, simpler or easier to run a command than to use an online tool.\n- What you want doesn't exist. (Yet?)\n- Cause I made this for you. (And me.)\n\n> I run the example command and I didn't get the result stated.\n\nThat's good.\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "Random generator for rpgs and the sort.",
    "version": "0.5.1",
    "project_urls": {
        "Changelog": "https://github.com/sonjiku/pythiarg/blob/main/CHANGELOG.md",
        "Documentation": "https://github.com/sonjiku/pythiarg/wiki",
        "Homepage": "https://github.com/sonjiku/pythiarg",
        "Issues": "https://github.com/sonjiku/pythiarg/issues",
        "Source": "https://github.com/sonjiku/pythiarg.git"
    },
    "split_keywords": [
        "pythia",
        " oracle",
        " dnd",
        " trpg",
        " ttrpg",
        " generator",
        " random generator"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0d9e83bcdb8954b6d199fe0c6344a6b8cdbe3aef41063b352000cb1e335f4e7a",
                "md5": "cda21cb8cb70c55555e6423e1565cb4d",
                "sha256": "d979a58fca1a5664098a0cf28970eb42cf7dbbf350ce2b145ed2fbf1ea194543"
            },
            "downloads": -1,
            "filename": "pythiarg-0.5.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "cda21cb8cb70c55555e6423e1565cb4d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<3.13,>=3.12",
            "size": 80912,
            "upload_time": "2024-10-17T06:15:47",
            "upload_time_iso_8601": "2024-10-17T06:15:47.187475Z",
            "url": "https://files.pythonhosted.org/packages/0d/9e/83bcdb8954b6d199fe0c6344a6b8cdbe3aef41063b352000cb1e335f4e7a/pythiarg-0.5.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ebaf08b90a07fdc55d523df2a5dee2b4d0949203cc215cc88f09c197b3bdcdb0",
                "md5": "71031a51e009b67c9dbdd61d35b4bc8c",
                "sha256": "473021255e88cb768b6bf8c5fd71be51ce1317a3f9b07f166b6b574fd1b039ba"
            },
            "downloads": -1,
            "filename": "pythiarg-0.5.1.tar.gz",
            "has_sig": false,
            "md5_digest": "71031a51e009b67c9dbdd61d35b4bc8c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<3.13,>=3.12",
            "size": 83216,
            "upload_time": "2024-10-17T06:15:50",
            "upload_time_iso_8601": "2024-10-17T06:15:50.271495Z",
            "url": "https://files.pythonhosted.org/packages/eb/af/08b90a07fdc55d523df2a5dee2b4d0949203cc215cc88f09c197b3bdcdb0/pythiarg-0.5.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-17 06:15:50",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "sonjiku",
    "github_project": "pythiarg",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "pythiarg"
}
        
Elapsed time: 0.61364s