{"id":14973937,"url":"https://github.com/3n3a/pg-html","last_synced_at":"2026-03-02T12:47:10.493Z","repository":{"id":128829887,"uuid":"609322896","full_name":"3n3a/pg-html","owner":"3n3a","description":"HTML from your Postgres Database","archived":false,"fork":false,"pushed_at":"2023-03-08T18:59:42.000Z","size":134,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-08T22:09:47.580Z","etag":null,"topics":["database","html","pgsql","postgresql","python3"],"latest_commit_sha":null,"homepage":"","language":"PLpgSQL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/3n3a.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-03-03T21:30:58.000Z","updated_at":"2024-10-29T03:23:56.000Z","dependencies_parsed_at":"2023-05-02T14:16:03.329Z","dependency_job_id":null,"html_url":"https://github.com/3n3a/pg-html","commit_stats":{"total_commits":39,"total_committers":1,"mean_commits":39.0,"dds":0.0,"last_synced_commit":"c64883bc91baf71254e260a142418ad2c6a08cc6"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3n3a%2Fpg-html","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3n3a%2Fpg-html/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3n3a%2Fpg-html/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3n3a%2Fpg-html/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/3n3a","download_url":"https://codeload.github.com/3n3a/pg-html/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240815818,"owners_count":19862149,"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":["database","html","pgsql","postgresql","python3"],"created_at":"2024-09-24T13:49:42.540Z","updated_at":"2026-03-02T12:47:05.437Z","avatar_url":"https://github.com/3n3a.png","language":"PLpgSQL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pg-html\nHTML from your Database\n\n\u003e\n\u003e **Disclaimer**: all the content in this repository is for research purposes only. I wouldn't recommend running this in production, well not yet.\n\u003e \n\nThe Idea being, that you can generate HTML from within the SQL, as like a function. Because wouldn't it be cool, if I could say like \"render me this table as a literal html table\", right?\n\n## usage\n\nbecause i needed python in the postgresql enabled. I forked the standard docker-postrgres image and commented out the line that removes these features.\n\nyou can build the image for yourself like so:\n\n```bash\ngit clone https://github.com/3n3a/postgres-plpython3u\ncd postgres-plpython3u\ndocker build -t postgres:14-alpine-py3 ./14/alpine/\n```\n\nfor version 14 you could also pull it from here:\n\n```bash\ndocker pull 3n3a/postgres:14-alpine-py3\n```\n\n### running the db\n\nthe image wasn't modified apart from the addition of the plpython3u library.\nso it supports all the attributes and variables that the standard `postgres` one does too.\n\n## exampl\n\nThe [countries.html](./docs/countries.html) is an example output of `table_to_html` function.\n\n[View Live Version](https://gh.3n3a.ch/pg-html/countries.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F3n3a%2Fpg-html","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F3n3a%2Fpg-html","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F3n3a%2Fpg-html/lists"}