{"id":25438186,"url":"https://github.com/jeffwright13/faker_music","last_synced_at":"2025-06-17T05:32:53.831Z","repository":{"id":57428279,"uuid":"368352801","full_name":"jeffwright13/faker_music","owner":"jeffwright13","description":"An add-on provider for the awesome Faker module to provide random and/or fake data in music-related categories.","archived":false,"fork":false,"pushed_at":"2024-07-10T09:02:20.000Z","size":86,"stargazers_count":7,"open_issues_count":2,"forks_count":5,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-01-17T00:22:07.874Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/jeffwright13.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}},"created_at":"2021-05-18T00:07:04.000Z","updated_at":"2024-01-01T10:12:13.000Z","dependencies_parsed_at":"2022-09-02T15:31:26.825Z","dependency_job_id":null,"html_url":"https://github.com/jeffwright13/faker_music","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffwright13%2Ffaker_music","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffwright13%2Ffaker_music/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffwright13%2Ffaker_music/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffwright13%2Ffaker_music/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jeffwright13","download_url":"https://codeload.github.com/jeffwright13/faker_music/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239265869,"owners_count":19610246,"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":"2025-02-17T09:32:26.053Z","updated_at":"2025-02-17T09:32:27.594Z","avatar_url":"https://github.com/jeffwright13.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# faker_music: music provider for Faker\n\nAn add-on provider for the Python Faker module to generate random and/or fake data for music-related categories.\n\n## Description\n\n`faker_music` provides music-related fake data for testing purposes.  The definition of \"fake\" in this context really means \"random,\" as the musical data are real. Invocation of this module simply provides a random choice from the underlying real-world data.\n\nNo claims are made as to the accuracy or completeness of this data. However, suggestions/corrections/additional data are happily accepted.\n\nCurrently implemented:\n- Music genres\n- Musical instruments\n\nComing soon:\n- Composers\n- Performers\n\nFor future implementation:\n- Band names (existing)\n- Fake band name generator\n- Theory (notes/scales/chord-types/progressions)\n- ...?\n\n## Installation\n\nFrom PyPi:\n\n``` bash\npip install faker_music\n```\n\nFrom source code:\n\n``` bash\ngit clone https://github.com/jeffwright13/faker_music/\ncd faker_music \u0026\u0026 python setup.py install\n```\n\n## Execution\n\nAdd as a provider to your Faker instance:\n``` python\n\u003e\u003e\u003e from faker import Faker\n\u003e\u003e\u003e from faker_music import MusicProvider\n\u003e\u003e\u003e fake = Faker()\n\u003e\u003e\u003e fake.add_provider(MusicProvider)\n```\n\nNow you can start to generate data:\n```python\n\u003e\u003e\u003e fake.music_genre()\n\u003e\u003e\u003e fake.music_subgenre()\n\u003e\u003e\u003e fake.music_instrument()\n\u003e\u003e\u003e fake.music_instrument_category()\n```\n\n## About faker_music Objects\n\nThe `music_genre_object` is a dictionary consisting of a 'genre' string, and an associated 'subgenre' list. The purpose is to provide data that ties together a given genre with all of it known subgenres.\n\nFor example:\n\n``` python\n\u003e\u003e\u003e fake.music_genre_object()\n\n{'genre': 'Singer/Songwriter',\n 'subgenres': [\n  'Alternative Folk',\n  'Contemporary Folk',\n  'Contemporary Singer/Songwriter',\n  'Indie Folk',\n  'Folk-Rock',\n  'Love Song',\n  'New Acoustic',\n  'Traditional Folk']}\n```\n\nSimilarly, The `music_instrument_object` is a dictionary consisting of an instrument 'category' string, and an associated 'instrument' list. The purpose is to provide data that ties together a given caegory with all of it known instruments.\n\nFor example:\n\n``` python\n\u003e\u003e\u003e fake.music_instrument_object()\n\n{'category': 'electronics',\n 'instruments': [\n  'Drum machine',\n  'Electric guitar',\n  'Keyboard',\n  'Synthesizer',\n  'Theremin',\n  'Turntable']}\n```\n\n## Data Sources\n\nOriginal data for this project (stored in `genres.py`, `instruments.py`) was lifted from https://www.musicgenreslist.com and [Wikipedia](https://simple.wikipedia.org/wiki/List_of_musical_instruments), and massaged into a format suitable for coding using the `genre_parser.py` and `instrument_parser.py` code [found here](https://gist.github.com/jeffwright13/ded48a18ba6db7feb47eea5892665d86).\n\n## Acknowlegements\n\n- I would like to thank the maintainer of the [faker_airtravel](https://github.com/dkotschessa/faker_airtravel/) repository, since I used its structure to create this one.\n- Big thanks also to [Bob Belderbos](https://github.com/bbelderbos) for his expert guidance in getting this litte project off the ground.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeffwright13%2Ffaker_music","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeffwright13%2Ffaker_music","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeffwright13%2Ffaker_music/lists"}