Skip to content

Where should schemas live in Python packages? #986

Answered by sbrunner
t-mart asked this question in Q&A
Discussion options

You must be logged in to vote

Personally, I put it in the code and use pkgutil.get_data("<module>", "<file>") to get it.
With Poetry I add:

include = [
    "<module>/*.json",
]

In the [tool.poetry] of the pyproject.toml.

I didn't find any issue with dev or production mode with this solution :-)

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@Julian
Comment options

Answer selected by t-mart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants