File2Package/File2Package.py
1
0
Fork
You've already forked File2Package.py
0
A framework and a CLI tool for fast retrieving reverse mapping from files to packages (and maybe other package information) in order to discover dependencies automatically
  • Python 100%
Find a file
2023年02月13日 18:06:57 +03:00
.github Initial commit 2023年02月13日 18:06:57 +03:00
File2Package Initial commit 2023年02月13日 18:06:57 +03:00
tests Initial commit 2023年02月13日 18:06:57 +03:00
.editorconfig Initial commit 2023年02月13日 18:06:57 +03:00
.gitignore Initial commit 2023年02月13日 18:06:57 +03:00
.gitlab-ci.yml Initial commit 2023年02月13日 18:06:57 +03:00
Code_Of_Conduct.md Initial commit 2023年02月13日 18:06:57 +03:00
fix_python_modules_paths.py Initial commit 2023年02月13日 18:06:57 +03:00
logo.svg Initial commit 2023年02月13日 18:06:57 +03:00
MANIFEST.in Initial commit 2023年02月13日 18:06:57 +03:00
pyproject.toml Initial commit 2023年02月13日 18:06:57 +03:00
ReadMe.md Initial commit 2023年02月13日 18:06:57 +03:00
UNLICENSE Initial commit 2023年02月13日 18:06:57 +03:00

File2Package.py Unlicensed work

GitLab Build Status GitLab Coverage Coveralls Coverage Libraries.io Status Code style: antiflash

Just stores some data identifying packages in a SQLite DB and paths of their files in a prefix tree. Allows you to get a package by a file.

See tests/tests.py for the examples.

Requirements

  • Python >=3.4. Python 2 is dead, stop raping its corpse. Use 2to3 with manual postprocessing to migrate incompatible code to 3. It shouldn't take so much time. For unit-testing you need Python 3.6+ or PyPy3 because their dict is ordered and deterministic. Python 3 is also semi-dead, 3.7 is the last minor release in 3.
  • datrie for a prefix tree.