{"id":22230176,"url":"https://github.com/xlab-si/demo-report-generator","last_synced_at":"2026-04-28T22:35:00.062Z","repository":{"id":108986796,"uuid":"124379754","full_name":"xlab-si/demo-report-generator","owner":"xlab-si","description":"Sample python report generator (SQL workshop project)","archived":false,"fork":false,"pushed_at":"2018-03-12T20:25:59.000Z","size":13,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-13T06:52:43.227Z","etag":null,"topics":["openpyxl","postgresql","psycopg2","python","reportlab"],"latest_commit_sha":null,"homepage":null,"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/xlab-si.png","metadata":{"files":{"readme":"README.rst","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-03-08T11:07:31.000Z","updated_at":"2022-07-25T11:34:48.000Z","dependencies_parsed_at":"2023-10-02T05:54:10.390Z","dependency_job_id":null,"html_url":"https://github.com/xlab-si/demo-report-generator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xlab-si/demo-report-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xlab-si%2Fdemo-report-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xlab-si%2Fdemo-report-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xlab-si%2Fdemo-report-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xlab-si%2Fdemo-report-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xlab-si","download_url":"https://codeload.github.com/xlab-si/demo-report-generator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xlab-si%2Fdemo-report-generator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32402671,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T19:38:08.556Z","status":"ssl_error","status_checked_at":"2026-04-28T19:37:55.688Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["openpyxl","postgresql","psycopg2","python","reportlab"],"created_at":"2024-12-03T01:14:33.642Z","updated_at":"2026-04-28T22:35:00.056Z","avatar_url":"https://github.com/xlab-si.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Demo report generator\n=====================\n\nThis repository contains sample code for the SQL workshop that was held at the\nUniversity of Ljubljana, Faculty for Mathematics and Physics.\n\n\nInstallation\n------------\n\n.. code:: bash\n\n   $ git clone https://github.com/xlab-si/demo-report-generator.git\n   $ cd demo-report-generator\n   $ python -m venv venv\n   $ . venv/bin/activate  # GNU/Linux\n   $ venv\\Scripts\\activate.bat  # Windows + cmd\n   (venv) $ pip install -e .\n\n\nUsage\n-----\n\n.. code:: bash\n\n   $ report\n   usage: report [-h] host port user dbname\n\n   Demo report generator\n\n   positional arguments:\n     host        Database host IP address\n     port        Database host port\n     user        Database user\n     dbname      Database name\n\n   optional arguments:\n     -h, --help  show this help message and exit\n   error: the following arguments are required: host, port, user, dbname\n\n\nInstalling sample database\n--------------------------\n\nThis report generator is meant to be used in conjunction with the PostgreSQL\nport of the sakila sample database that is available from the\n`PostgreSQL tutorial`_ site. This site also contains instructions on how to\ninstall PostgreSQL on Windows.\n\n.. _PostgreSQL tutorial: http://www.postgresqltutorial.com/\n\nFor installing PostgreSQL on GNU/Linux, one can use instructions that were\nprovided as part of the workshop (for CentOS 7, but they will also work on\nFedora and RHEL with slight modifications).\n\nHow to load sample database is described `load sample database`_ section of\nthe PostgreSQL tutorial.\n\n.. _load sample database:\n      http://www.postgresqltutorial.com/load-postgresql-sample-database/\n\nFor the people new to SQL, going through the first five sections of the\ntutorial is recomended before trying to inspect the code in this sample\nproject.\n\n\nOther relevant links\n--------------------\n\nAnother source of laernig material is also w3schools_ page on SQL that\ncontains a lot of material to get started. Another benefit of this page is the\nability to run the SQL queries online in their try it editor. This way there\nis no need to have database installed while getting our feet wet.\n\n.. _w3schools: https://www.w3schools.com/sql/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxlab-si%2Fdemo-report-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxlab-si%2Fdemo-report-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxlab-si%2Fdemo-report-generator/lists"}