Skip to main content

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 error ModuleNotFoundError: No module named 'pkg_resources' Just run pip3 install setuptools

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

package-sieve-0.2.0.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

package_sieve-0.2.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

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

Hashes for package-sieve-0.2.0.tar.gz
Algorithm Hash digest
SHA256 25f3c7be7e5d0b8758409b1149f2533b0688a8f1d7d185908eca38259ecd3741
MD5 98ead4e326d410c0fd920bd1c40500a4
BLAKE2b-256 6c9c6d9d27ad77dc12b6458287b9da45997a999e7135278f85c923d8272e65d0

See more details on using hashes here.

File details

Details for the file package_sieve-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for package_sieve-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b296ea0f22f1eaedfc2380526cae0e19aae8b88b411fb2b7624a0924e382fca2
MD5 4b0a7a0042aea736dce2d44a64fb3e03
BLAKE2b-256 8f8b367ea7e93cabbebcb393b7db0832622a448f3c8a486436ffbb09f7129dee

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page