1

I wrote a python script that requires the use of a postgresql DB. For test purpose, I installed the postgresql DB manually, and the DB that comes with that. The script connects to it and make its job. My question is about packaging : what is the best solution for the user to install this script, along with the DB and its schema juste by typing pip install xxx ? Is that possible ?

Thanks

1
  • "what is the best solution for the user to install this script, along with the DB and its schema juste by typing pip install xxx"—the best solution is not to do that. Postgres is a complex product that may require careful tuning. Your users may already have it installed somewhere, or may prefer to use it from a Docker container, or may want to point to a hosted cloud instance like Azure Database for PostgreSQL or to use a specific version or any number of other things. Let them. Commented Feb 21, 2022 at 22:58

1 Answer 1

1

Postgres is great but often you can get away with SQLite. It's part of the standard library and comes bundled with Python

Sign up to request clarification or add additional context in comments.

1 Comment

Thank you very much for your answers, I choose SQLite, that is exactly what I need for this scenario, I was not aware of this very simple DB, that's perfect !

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.