{"id":15444558,"url":"https://github.com/cariad/py-wordpress-database","last_synced_at":"2026-05-09T15:19:28.060Z","repository":{"id":137282011,"uuid":"159937278","full_name":"cariad/py-wordpress-database","owner":"cariad","description":"A Python package that sets up a WordPress database.","archived":false,"fork":false,"pushed_at":"2018-12-11T20:18:03.000Z","size":39,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-02T08:43:27.080Z","etag":null,"topics":["aws-secrets-manager","mysql","python","wordpress"],"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/cariad.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-12-01T11:21:55.000Z","updated_at":"2019-07-02T21:48:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"1d1ec179-2ab9-460e-9262-abdbc5b1b4ef","html_url":"https://github.com/cariad/py-wordpress-database","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cariad%2Fpy-wordpress-database","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cariad%2Fpy-wordpress-database/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cariad%2Fpy-wordpress-database/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cariad%2Fpy-wordpress-database/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cariad","download_url":"https://codeload.github.com/cariad/py-wordpress-database/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245991585,"owners_count":20706129,"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":["aws-secrets-manager","mysql","python","wordpress"],"created_at":"2024-10-01T19:41:47.942Z","updated_at":"2026-05-09T15:19:23.024Z","avatar_url":"https://github.com/cariad.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# py-wordpress-database\n\n[![CircleCI](https://circleci.com/gh/cariad/py-wordpress-database/tree/master.svg?style=svg)](https://circleci.com/gh/cariad/py-wordpress-database/tree/master)\n\nA Python package that sets up a WordPress database.\n\n`wpdatabase` will:\n - Create the database, if it doesn't exist already.\n - Create the WordPress user, if it doesn't exist already.\n\n`wpdatabase` is idempotent; if the database and the user already exist then it will return successfully.\n\nNote that `wpdatabase` currently only supports MySQL databases.\n\n## Installation\n\n```shell\npip install wpdatabase\n```\n\n## Prerequisites\n\n`wpdatabase` assumes that the following properties have already been set in the `wp-config.php` file:\n\n| Property      | Description\n|-              |-\n| `DB_HOST`     | Host or endpoint of the MySQL database server.\n| `DB_USER`     | WordPress database user.\n| `DB_PASSWORD` | WordPress database password.\n\nIf you need help adding these values to `wp-config.php` then check out [wpconfigr](https://github.com/cariad/py-wpconfigr).\n\n## Command-line usage\n\nIf you need to specify to the database's administrator username and password:\n\n```shell\npython -m wpdatabase --wp-config      /www/wp-config.php \\\n                     --admin-username garnet \\\n                     --admin-password love\n```\n\nIf you're deploying WordPress into Amazon Web Services (AWS) and have your administrator username and password held in Secrets Manager:\n\n```shell\npython -m wpdatabase --wp-config                       /www/wp-config.php \\\n                     --admin-credentials-aws-secret-id AdminSecretID \\\n                     --admin-credentials-aws-region    eu-west-1\n```\n\n## Development\n\nTo install development dependencies:\n\n```shell\npip install -e .[dev]\n```\n\nTo run the tests:\n\n```shell\npython test.py\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcariad%2Fpy-wordpress-database","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcariad%2Fpy-wordpress-database","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcariad%2Fpy-wordpress-database/lists"}