{"id":13316290,"url":"https://github.com/questionlp/libwwdtm","last_synced_at":"2025-03-10T22:32:58.116Z","repository":{"id":36350006,"uuid":"194458980","full_name":"questionlp/libwwdtm","owner":"questionlp","description":"Python Data Access Library for Wait Wait... Don't Tell Me! Stats Page Database","archived":true,"fork":false,"pushed_at":"2022-08-02T22:18:41.000Z","size":183,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-03-03T13:11:02.948Z","etag":null,"topics":["dataaccesslayer","database","mariadb","mysql","python","python3","wwdtm"],"latest_commit_sha":null,"homepage":"","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/questionlp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-30T00:13:02.000Z","updated_at":"2023-01-27T22:35:21.000Z","dependencies_parsed_at":"2022-09-06T06:01:29.559Z","dependency_job_id":null,"html_url":"https://github.com/questionlp/libwwdtm","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/questionlp%2Flibwwdtm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/questionlp%2Flibwwdtm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/questionlp%2Flibwwdtm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/questionlp%2Flibwwdtm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/questionlp","download_url":"https://codeload.github.com/questionlp/libwwdtm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242939424,"owners_count":20209874,"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":["dataaccesslayer","database","mariadb","mysql","python","python3","wwdtm"],"created_at":"2024-07-29T18:21:31.472Z","updated_at":"2025-03-10T22:32:58.091Z","avatar_url":"https://github.com/questionlp.png","language":"Python","readme":"# WWDTM\n\n## Note\n\nThis version of the Wait Wait Stats Library has been superceded by version 2.\nThe repository for the new version of the Stats Page is available at\n[wwdtm](https://github.com/questionlp/wwdtm).\n\nNo further development or bugfixes will be made to this project and the\nrepository has been marked as read-only.\n\n## Overview\n\nData Access Library to provide show, host, scoreekeeper, panelist and guest\ndetails from an instance of the\n[Wait Wait... Don't Tell Me! Stats Page](http://wwdt.me) database.\n\n## Requirements\n\n- Python 3.6 or newer (Python 2.x is not supported)\n- MySQL or MariaDB database containing data from the Wait Wait... Don't Tell\n  Me! Stats Page database\n\n### Notes\n\nEven though the library is currently being developed and tested against Python\n3.6, the code makes explicit use of `collections.OrderedDict()` to preserve key\ninsertion order into specific dictionaries. This was done as the code was\noriginally developed on systems with earlier versions of Python 3 that not\npreserve key insertion order for `dict()`.\n\nThat behavior has since changed with Python 3.6 and key insertion order for\nstandard `dict()` is now part of the language's specifications moving forward.\n\nThat said, all development and testing has already been migrated to Python 3.6\nand there is no guarantee that the library will be 100% functional in any older\nversions.\n\n## Installation\n\nA packaged version of the library is available for download and install via\n`pip` by adding \u003chttps://wheels.wwdt.me/\u003e to your Python index list at install\ntime:\n\n```bash\npip3 install --extra-index-url https://wheels.wwdt.me/ wwdtm\n```\n\n`pip` will also install packages that are required to use the library,\nincluding:\n\n- mysql-connector\n- numpy\n- python-dateutil\n- python-slugify\n\n## How to Use\n\n```python\nfrom wwdtm import guest, host, location, panelist, scorekeeper, show\n\nguest.info.retrieve_by_id(id: int, database_connect: mysql.connector.connect)\n\nhost.info.retrieve_by_id(id: int, database_connect: mysql.connector.connect)\n\nlocation.info.retrieve_by_id(id: int, database_connect: mysql.connector.connect)\n\npanelist.info.retrieve_by_id(id: int, database_connect: mysql.connector.connect)\n\nscorekeeper.info.retrieve_by_id(id: int, database_connect: mysql.connector.connect)\n\nshow.info.retrieve_by_id(id: int, database_connect: mysql.connector.connect)\n```\n\n## Running Tests\n\n1. Set up a venv in the current directory by running: `python3 -m venv venv`\n2. Create a copy of `config.dist.json` and name it `config.json`\n3. Edit `config.json` and fill in the `local` section with the appropriate\n   MySQL/MariaDB connection information\n4. Activate the venv by running: `source ${venv}/bin/activate`\n5. Install any required packages via `pip`: `pip3 install -r requirements.txt`\n6. Run the test script: `python3 test.py`\n\n## Packaging\n\n```bash\npython3 setup.py bdist_wheel\n```\n\n## Contributing\n\nIf you would like contribute to this project, please make sure to review both\nthe [Code of Conduct](CODE_OF_CONDUCT.md) and the\n[Contributing](CONTRIBUTING.md) documents in this repository.\n\n## License\n\nThis library is licensed under the terms of the\n[Apache License 2.0](http://www.apache.org/licenses/LICENSE-2.0).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquestionlp%2Flibwwdtm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquestionlp%2Flibwwdtm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquestionlp%2Flibwwdtm/lists"}