{"id":15561187,"url":"https://github.com/geops/vdv2pg","last_synced_at":"2025-08-20T22:24:08.190Z","repository":{"id":62587172,"uuid":"162409149","full_name":"geops/vdv2pg","owner":"geops","description":"Tool for dumping VDV 451 data into a postgres database","archived":false,"fork":false,"pushed_at":"2020-10-13T09:21:26.000Z","size":45,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-23T21:48:53.330Z","etag":null,"topics":["postgres","postgresql","python","python3","vdv","vdv-451"],"latest_commit_sha":null,"homepage":null,"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/geops.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}},"created_at":"2018-12-19T08:49:22.000Z","updated_at":"2024-10-10T15:17:58.000Z","dependencies_parsed_at":"2022-11-03T22:41:34.136Z","dependency_job_id":null,"html_url":"https://github.com/geops/vdv2pg","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geops%2Fvdv2pg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geops%2Fvdv2pg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geops%2Fvdv2pg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geops%2Fvdv2pg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/geops","download_url":"https://codeload.github.com/geops/vdv2pg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250522294,"owners_count":21444510,"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":["postgres","postgresql","python","python3","vdv","vdv-451"],"created_at":"2024-10-02T16:06:03.187Z","updated_at":"2025-04-23T21:49:20.559Z","avatar_url":"https://github.com/geops.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Dependabot Status](https://api.dependabot.com/badges/status?host=github\u0026repo=geops/vdv2pg)](https://dependabot.com)\n\nTool for dumping VDV 451 data into a database\n---------------------------------------------\n\nThis is intended to quickly analyze the content of a collection of VDV files in\nthe VDV 451 format. By running this script a new schema is created and filled\nwith one table per input file. Alternatively an existing schema may be used. \nAll data from the files will be dumped into the tables.\n\nAfter creating the tables and importing data you may also add definitions to\nthe schema using a SQL-script specified by the `--post_ingest_script` parameter.\n\nWe provide a sample script in `vdv2pg/apply_constraints.sql` that creates some\nknown constraints for a schema following the VDV 452 standard.\n\n### Installation\n\n    pip install vdv2pg\n\n\n### Usage\n\n    usage: vdv2pg [-h] [--schema SCHEMA] [--append]\n                  [--post_ingest_script POST_INGEST_SCRIPT] [-l LOGLEVEL]\n                  database_url input_file [input_file ...]\n\n    positional arguments:\n      database_url          Database to write to.\n      input_file            Files to read data from\n\n    optional arguments:\n      -h, --help            show this help message and exit\n      --schema SCHEMA       Schema to create tables in (default: vdv2pg)\n      --append              Append to existing tables instead of creating a new\n                            schema\n      --post_ingest_script POST_INGEST_SCRIPT\n                            Optional path to a SQL script applied after\n                            ingesting the data\n      -l LOGLEVEL, --loglevel LOGLEVEL\n                            Control verbosity, possible values: DEBUG, INFO,\n                            WARNING, ERROR\n\n### Examples\n\nImport into a new schema and execute `vdv2pg/apply_constraints.sql` on success:\n\n    vdv2pg --schema=vdv --post_ingest_script=vdv2pg/apply_constraints.sql \\\n        postgresql:///vdv_imports *.X10\n\nUpdate existing tables in the `vdv` schema:\n\n    vdv2pg --schema=vdv --append postgresql:///vdv_imports *.X10\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeops%2Fvdv2pg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeops%2Fvdv2pg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeops%2Fvdv2pg/lists"}