Twixes / pypi-assistant

🔍 PyPI package information at a glance for Python dependencies – a VS Code extension
https://marketplace.visualstudio.com/items?itemName=twixes.pypi-assistant
MIT License
30 stars 5 forks source link

Poetry/pyproject.toml support? #10

Closed macintacos closed 10 months ago

macintacos commented 2 years ago

I use Poetry for dependency management in several projects. Any chance this could be added?

Docs: https://python-poetry.org/docs/dependency-specification/

Twixes commented 2 years ago

I've actually looked into this a while ago, but unfortunately parsing TOML reliably for the purposes of this extension would be considerably more complex than it is with pip requirements files. While I don't have the time to work on this myself, I'd be very happy to accept a nice implementation.

mrijken commented 1 year ago

Did you look at https://www.npmjs.com/package/toml? It can convert the toml in a regular json object.

alex-way commented 1 year ago

For inspiration, the following project does exactly what's been requested here: https://github.com/ninoseki/vscode-pylens

I'll take a quick look to see if I'm able to put something cohesive together

Zerotask commented 11 months ago

This would be a nice addition, since Poetry is getting more ground recently.

A little thing to consider, you can define groups in poetry. In our case we have [tool.poetry.dependencies] and [tool.poetry.group.dev.dependencies]