2

I want to have multiple Python projects in the same package. For example: mycompany.parser, mycompany.database. These projects have to be able to be installed separately. So a user can have only mycompany.parser or only mycompany.database, or both.

Is it possible to achieve?

1 Answer 1

2

Yes, it is possible to achieve. You are describing namespace packages.

For instructions on how to create namespace packages, follow the guide here: https://packaging.python.org/en/latest/guides/packaging-namespace-packages/

You may also want to review PEP 420 – Implicit Namespace Packages.

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

Comments

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.