This repository ingests data from a CSV/Parquet url into a Postgres table overwriting the previous table if it exists.
Installation
uv add url2pgor
pip install url2pgUsage:
url2pg \
--user=<postgres_user:default=root> \
--password=<postgres_password:default=root> \
--host=<postgres_host:default=localhost> \
--port=<postgres_port:default=5432> \
--db=<*_db> \
--table_name=<*_destiny_table> \
--url_file=<*_source_url>You can use as a Docker image as well:
docker run -it \
--network=<*_destiny_network> \
cesarbouli/url2pg \
--user=<postgres_user:default=root> \
--password=<postgres_password:default=root> \
--host=<postgres_host:default=localhost> \
--port=<postgres_port:default=5432> \
--db=<*_db> \
--table_name=<*_destiny_table> \
--url_file=<*_source_url>In your docker compose file:
services:
ingestion-data:
image: cesarbouli/url2pg
command: --db=<_db_> (...)
(...)- Github: https://github.com/bouli/url2pg
- PyPI: https://pypi.org/project/url2pg/
- Docker image: https://hub.docker.com/r/cesarbouli/url2pg
This package is distributed under the MIT license.