{"id":15580730,"url":"https://github.com/mar10/fabulist","last_synced_at":"2025-08-22T10:16:00.827Z","repository":{"id":22567054,"uuid":"96704022","full_name":"mar10/fabulist","owner":"mar10","description":"Generate random strings that make sense.","archived":false,"fork":false,"pushed_at":"2025-03-06T04:09:34.000Z","size":259,"stargazers_count":12,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-11T00:44:06.034Z","etag":null,"topics":["mock-data","python","random","test-data","test-data-generator","wordlist-generator"],"latest_commit_sha":null,"homepage":"https://fabulist.readthedocs.io/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mar10.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","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":"2017-07-09T18:43:07.000Z","updated_at":"2024-09-22T10:19:36.000Z","dependencies_parsed_at":"2024-09-14T19:19:00.116Z","dependency_job_id":null,"html_url":"https://github.com/mar10/fabulist","commit_stats":{"total_commits":50,"total_committers":3,"mean_commits":"16.666666666666668","dds":"0.18000000000000005","last_synced_commit":"4491129fb10f517741f970cde535391d82830394"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mar10%2Ffabulist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mar10%2Ffabulist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mar10%2Ffabulist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mar10%2Ffabulist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mar10","download_url":"https://codeload.github.com/mar10/fabulist/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248741199,"owners_count":21154255,"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":["mock-data","python","random","test-data","test-data-generator","wordlist-generator"],"created_at":"2024-10-02T19:35:49.881Z","updated_at":"2025-04-13T16:10:56.455Z","avatar_url":"https://github.com/mar10.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fabulist\n[![Powered by You](http://sapegin.github.io/powered-by-you/badge.svg)](http://sapegin.github.io/powered-by-you/)\n[![Latest Version](https://img.shields.io/pypi/v/fabulist.svg)](https://pypi.python.org/pypi/fabulist/)\n[![Tests](https://github.com/mar10/fabulist/actions/workflows/tests.yml/badge.svg)](https://github.com/mar10/fabulist/actions/workflows/tests.yml)\n[![codecov](https://codecov.io/github/mar10/fabulist/branch/main/graph/badge.svg?token=9xmAFm8Icl)](https://codecov.io/github/mar10/fabulist)\n[![License](https://img.shields.io/pypi/l/fabulist.svg)](https://github.com/mar10/fabulist/blob/master/LICENSE.txt)\n[![Documentation Status](https://readthedocs.org/projects/fabulist/badge/?version=latest)](http://fabulist.readthedocs.io/)\n[![Released with: Yabs](https://img.shields.io/badge/released%20with-yabs-yellowgreen)](https://github.com/mar10/yabs)\n[![StackOverflow: fabulist](https://img.shields.io/badge/StackOverflow-fabulist-blue.svg)](https://stackoverflow.com/questions/tagged/fabulist)\n\n\n\u003e Generate meaningful test data based on string templates.\n\n## Usage\n\n```\n$ pip install fabulist\n```\n\nthen\n\n```py\nfrom fabulist import Fabulist\n\nfab = Fabulist()\n\ntemplates = [\n    \"$(Verb:ing) is better than $(verb:ing).\",\n    \"$(Noun:an) a day keeps the $(noun:plural) away.\",\n    \"If you want to $(verb) $(adv), $(verb) $(adv)!\",\n    'Confucius says: \"The one who wants to $(verb) must $(verb) $(adv) the $(noun)!\"',\n    ]\nprint(\"Fortune cookies:\")\nfor q in fab.generate_quotes(templates, count=10):\n    print(\"- \", q)\n```\nwill produce something like\n```\nFortune cookies:\n-  A statement a day keeps the airports away.\n-  Savoring is better than magnifying.\n-  If you want to sate divisively, disuse calmly!\n-  Praying is better than inspecting.\n-  Confucius says: \"The one who wants to sterilize must inform miserably the possibility!\"\n-  If you want to blur orderly, stride poorly!\n-  A cost a day keeps the gears away.\n-  Subtracting is better than worshipping.\n-  If you want to damage solely, discuss jealously!\n-  Confucius says: \"The one who wants to vanish must swear terribly the punch!\"\n```\n\nSee also the [Introduction Slides](https://rawgit.com/mar10/fabulist/master/docs/intro_slides.html)\nand [Read The Docs](http://fabulist.readthedocs.org/en/latest/) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmar10%2Ffabulist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmar10%2Ffabulist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmar10%2Ffabulist/lists"}