Collector of absolute 3rd party packages from existing projects
Project description
Package-Sieve
No BS, but modules :sparkles:. Collector of absolute 3rd party packages from existing projects with relevant versions.
Background
This project aims to generate requirements.txt
file for existing repositories where you have an old file which is filled with dependencies of dependencies :cyclone: :dizzy_face:.
Function
Wall-E uses ast
module of python to parse nodes of any python script. Once the modules are retrieved, pkg_resources
helps to find the right project name :detective: and version of the application installed.
Install
pip3 install package-sieve
Usage
package-sieve --project_folder /absolute/path/to/folder --ignore venv,__pycache__,__init__.py
--project_folder
- this is a mandatory parameter which mentions the root of the directory, defaults to the current working directory.
--ignore
- Mention the folders you want to ignore to create the requirements, optional parameter. By default this holds all the folder patterns added in your .gitignore
file, if exists.
NOTE:
If you get this errorModuleNotFoundError: No module named 'pkg_resources'
Just runpip3 install setuptools
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file package-sieve-0.2.0.tar.gz
.
File metadata
- Download URL: package-sieve-0.2.0.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25f3c7be7e5d0b8758409b1149f2533b0688a8f1d7d185908eca38259ecd3741 |
|
MD5 | 98ead4e326d410c0fd920bd1c40500a4 |
|
BLAKE2b-256 | 6c9c6d9d27ad77dc12b6458287b9da45997a999e7135278f85c923d8272e65d0 |
File details
Details for the file package_sieve-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: package_sieve-0.2.0-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b296ea0f22f1eaedfc2380526cae0e19aae8b88b411fb2b7624a0924e382fca2 |
|
MD5 | 4b0a7a0042aea736dce2d44a64fb3e03 |
|
BLAKE2b-256 | 8f8b367ea7e93cabbebcb393b7db0832622a448f3c8a486436ffbb09f7129dee |