Better HN
topnewbestaskshowjobs
Log inSign up

flo12392

76 karma · joined Sep 13, 2022 (4y ago) · 20 submissions

Submissions

1.

Show HN: PyAtlas – Interactive map of the most popular Python packages on PyPI(pyatlas.io ↗)

1 points · by flo12392 · 11mo ago · discuss

2.

Show HN: PyAtlas - Interactive map of the 10,000 most popular PyPI packages(pyatlas.io ↗)

1 points · by flo12392 · 11mo ago · discuss

3.

Show HN: pypiscout.com – Find packages on PyPI with natural language queries(pypiscout.com ↗)

2 points · by flo12392 · 2y ago · discuss

4.

Show HN: PyPI Scout – Find Python packages on PyPI using vector embeddings(github.com ↗)

1 points · by flo12392 · 2y ago · discuss

comment 2y ago · link · parent

Don't tell your colleagues about deptry, take the afternoon off and tell your manager you manually removed each dependency one by one and ran the unit tests to check if the dependency was needed ;)

comment 2y ago · link · parent

If I understand your question correctly; no, that is out of scope for deptry. Many of the dependency management tools already provide a way to do so, e.g. for PDM `pdm list --tree`.

comment 2y ago · link · parent

There we go: https://github.com/fpgmaas/deptry/issues/608

comment 2y ago · link · parent

Good question, I have not looked into this myself yet. I would say; definitely, since it uses the dependencies from a `requirements.in` or a `pyproject.toml` file to generate a set of locked dependencies. Since `deptry` supports both formats, this should be no problem.

One thing to keep in mind, that would also be good for `deptry` to think about; if users decide to create a `requirements.txt` file from a `requirements.in` file, `deptry` will automatically use the `requirements.txt` file. However, this is wrong: It should use the `requirements.in` file, since the `requirements.txt` file also contains the transitive dependencies. Users can change this using the `requirements-txt` flag though (https://fpgmaas.github.io/deptry/usage/#requirements-txt).

Thanks for raising this, I will probably create an issue in our project to see how we should feal with this :)

comment 2y ago · link · parent

Thanks for the positive feedback! Happy to hear that it turned out to be useful for you.

comment 2y ago · link · parent

I am not aware of functionality within VS Code that does the same thing as `deptry` does. What most IDE's support is removing unused imports, which sounds similar but is different from what deptry aims to do: deptry tries to remove unused dependencies. So if you have e.g. `pandas` in your `requirements.txt`, but you never import (from) `pandas` in your project, `deptry` will tell you that you should remove it from your `requirements.txt`. Does that answer your question?

comment 2y ago · link · parent

This is not an issue when using `deptry`; it does not only match the import name against the dependency name; it first tries to find the modules that are provided by the dependency `beautifulsoup4`. If you run `deptry -v .`, you can see this in the verbose logs:

` Dependency 'beautifulsoup4' with top-levels: {'bs4'}.`

If you ever run into a situation where this does not work, you can use the `pacakge_module_name_map` parameter: https://fpgmaas.github.io/deptry/usage/#package-module-name-...

Hope this helps! Florian

12.

Show HN: deptry 0.14.0 – detect unused Python dependencies up to 10 times faster(github.com ↗)

142 points · by flo12392 · 2y ago · 24 comments

13.

Show HN: Deptry 0.10.0 – detect unused dependencies in your Python project(github.com ↗)

1 points · by flo12392 · 3y ago · discuss

comment 4y ago · link · parent

Hi! I have recently been working on a project called `deptry`, a command line tool to check for issues in the dependencies of Python projects. It can be used to find obsolete, missing, transitive and misplaced development dependencies. It supports the following types of projects:

- Projects that use Poetry and a corresponding pyproject.toml file

- Projects that use a requirements.txt file according to the pip standards

---

* Documentation: https://fpgmaas.github.io/deptry/

* GitHub repository: https://github.com/fpgmaas/deptry

---

I am quite happy with the project in its current form, but I also realise there is still a lot of room left for improvement. Therefore, I hope some people are willing to give it a try and provide me with feedback. So; if you have a project with a long list of dependencies and a little bit of spare time on your hands, please give it a try and let me know what you think!

If you encounter any issues, find a bug, or have any other form of feedback, please don't hesitate to raise an issue in the GitHub repository, or leave a comment here.

Kind regards,

Florian

P.S. Many thanks to Hirokazu Takaya (https://github.com/lisphilar) for incorporating it in the CI/CD pipeline of his project covid19-sir (https://github.com/lisphilar/covid19-sir). It provided me with very valuable early feedback.

15.

Show HN: Deptry, a tool to check for dependency issues in a Python project(github.com ↗)

1 points · by flo12392 · 4y ago · 1 comment

comment 4y ago · link · parent

Hi!

I have recently been working on a project called `deptry`, a command line tool to check for issues in the dependencies of Python projects. It can be used to find obsolete, missing, transitive and misplaced development dependencies. It supports the following types of projects:

- Projects that use Poetry and a corresponding pyproject.toml file

- Projects that use a requirements.txt file according to the pip standards

---

* Documentation: https://fpgmaas.github.io/deptry/

* GitHub repository: https://github.com/fpgmaas/deptry

---

I am quite happy with the project in its current form, but I also realise there is still a lot of room left for improvement. Therefore, I hope some people are willing to give it a try and provide me with feedback. So; if you have a project with a long list of dependencies and a little bit of spare time on your hands, please give it a try and let me know what you think!

If you encounter any issues, find a bug, or have any other form of feedback, please don't hesitate to raise an issue in the GitHub repository, or leave a comment here.

Kind regards,

Florian

P.S. Many thanks to Hirokazu Takaya (https://github.com/lisphilar) for incorporating it in the CI/CD pipeline of his project covid19-sir (https://github.com/lisphilar/covid19-sir). It provided me with very valuable early feedback.

17.

Deptry 0.4.4, a tool to check for dependency issues in a Python project(github.com ↗)

1 points · by flo12392 · 4y ago · 1 comment