{"id":17111174,"url":"https://github.com/sercheo87/template-dynamically-report-ppl-postgres","last_synced_at":"2026-05-10T16:04:23.395Z","repository":{"id":185709347,"uuid":"613892106","full_name":"sercheo87/template-dynamically-report-ppl-postgres","owner":"sercheo87","description":"This project is used to generate a report of a client by custom configuration inside **Postgres SQL** using [Python Procedural Language](https://www.postgresql.org/docs/14/plpython.html).","archived":false,"fork":false,"pushed_at":"2025-07-21T16:54:22.000Z","size":59,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-21T18:53:40.289Z","etag":null,"topics":["postgres","postgresql","ppl","python","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/sercheo87.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-14T13:33:34.000Z","updated_at":"2023-03-14T14:37:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"6199ca4e-ca09-424c-8b1d-2cfc4f05e691","html_url":"https://github.com/sercheo87/template-dynamically-report-ppl-postgres","commit_stats":null,"previous_names":["sercheo87/template-dynamically-report-ppl-postgres"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sercheo87/template-dynamically-report-ppl-postgres","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sercheo87%2Ftemplate-dynamically-report-ppl-postgres","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sercheo87%2Ftemplate-dynamically-report-ppl-postgres/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sercheo87%2Ftemplate-dynamically-report-ppl-postgres/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sercheo87%2Ftemplate-dynamically-report-ppl-postgres/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sercheo87","download_url":"https://codeload.github.com/sercheo87/template-dynamically-report-ppl-postgres/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sercheo87%2Ftemplate-dynamically-report-ppl-postgres/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271019388,"owners_count":24685677,"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","status":"online","status_checked_at":"2025-08-18T02:00:08.743Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["postgres","postgresql","ppl","python","python3"],"created_at":"2024-10-14T16:49:51.050Z","updated_at":"2026-05-10T16:04:18.352Z","avatar_url":"https://github.com/sercheo87.png","language":"PLpgSQL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# template-dynamically-report-ppl-postgres\r\n\r\n## Description\r\n\r\nThis project is used to generate a report of a client by custom configuration inside **Postgres SQL** using [Python Procedural Language](https://www.postgresql.org/docs/14/plpython.html).\r\n\r\n## Characteristics\r\n\r\n- The report is generated dynamically by the configuration of the client.\r\n- The configuration is stored in file ***Json*** in server database.\r\n- The configuration client is stored in file ***Json*** in server database.\r\n- All utility used are **functions** in **Postgres SQL** with **Python 3 Language**.\r\n\r\n## Requirements\r\n\r\n- Instance of **Postgres SQL v14**.\r\n- Install **Python 3** in server.\r\n\r\n## Installation\r\n\r\n### Automatic Installation\r\n\r\n```bash\r\nmake up-server\r\nmake build-functions\r\n```\r\n\r\n### Manual\r\n\r\nUp the instance of **Postgres SQL v14**.\r\n\r\n```bash\r\ncd ./pg-python-instance\r\ndocker-compose up -d\r\n``` \r\n\r\nConnect to server with:\r\n\r\n- Host: **localhost**\r\n- Port: **5432**\r\n- User: **postgres**\r\n- Password: **my123password**\r\n\r\nInstall **Python 3 Extension** in server.\r\n\r\n```bash\r\ndocker-compose exec postgres psql -U postgres -d my123password -c \"CREATE EXTENSION IF NOT EXISTS plpython3u;\"\r\n```\r\n\r\nCreate function base of templates configuration.\r\n\r\n```bash\r\ndocker-compose exec postgres psql -U postgres -d my123password -f /pg-scripts/function-template-by-client.sql\r\n```\r\n\r\nCreate function base of client configuration.\r\n\r\n```bash\r\ndocker-compose exec postgres psql -U postgres -d my123password -f /pg-scripts/function-read-client.sql\r\n```\r\n\r\nCreate function for get configuration by client.\r\n\r\n```bash\r\ndocker-compose exec postgres psql -U postgres -d my123password -f /pg-scripts/function-template-by-client.sql\r\n```\r\n\r\nCreate function for generate report.\r\n\r\n```bash\r\ndocker-compose exec postgres psql -U postgres -d my123password -f /pg-scripts/function_generate_report.sql\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsercheo87%2Ftemplate-dynamically-report-ppl-postgres","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsercheo87%2Ftemplate-dynamically-report-ppl-postgres","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsercheo87%2Ftemplate-dynamically-report-ppl-postgres/lists"}