Poetry.lock format , can i consider it as a right format for the poetry.lock file ? #10779
-
|
Is this the correct format for poetry.lock file , as i was trying to parse and have taken care of these fields , am i missing something , since there is no offical docs presenting the format of lockfile |
Beta Was this translation helpful? Give feedback.
Answered by
radoering
Mar 23, 2026
Replies: 1 comment 4 replies
-
|
There is no official docs because the exact format is an internal detail and may change without notice. If you want to parse the file anyway, it is read/written in https://github.com/python-poetry/poetry/blob/main/src/poetry/packages/locker.py. In the corresponding test, you will find some examples. |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
harshitbansal184507
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is no official docs because the exact format is an internal detail and may change without notice. If you want to parse the file anyway, it is read/written in https://github.com/python-poetry/poetry/blob/main/src/poetry/packages/locker.py. In the corresponding test, you will find some examples.