Github replica with multiple python packages

I created a Github repository in which I save all the code for my project.

Structure:

myproject \ - package api - package database - package feature 

The api package is responsible for communicating with an external apis like the itunes api.

The database package is responsible for communicating with my database.

Finally, the feature package is the actual project that I am creating.

Each package has its own setup.py.

I have three problems with this structure:

  • How can I add api and database dependencies in setup.py function?

  • How would you recommend I deploy this Python code to Amazon? Using dockers? By the edge? Something else?

  • If we assume that additional functions will be added to the functions in the form of separate packages. How can I deploy only a subset of the code on the server? Let's say the api package along with another function that uses it.

Let me know if my questions are not clear and I will clarify them.

+5
source share

Source: https://habr.com/ru/post/1214653/


All Articles