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.3.0.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

package_sieve-0.3.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file package-sieve-0.3.0.tar.gz.

File metadata

  • Download URL: package-sieve-0.3.0.tar.gz
  • Upload date:
  • Size: 7.9 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.3.0.tar.gz
Algorithm Hash digest
SHA256 a7929582bbab19c12129fccd83336f65c7c6b227fa264b29d6298ce1764d05bd
MD5 b862ad3c394d283a30a18b8cedc6864b
BLAKE2b-256 9148f3d46057fa7ba9f3aefadabf157fb814d7aadf99827c9ed03886b6a6b424

See more details on using hashes here.

File details

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

File metadata

  • Download URL: package_sieve-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for package_sieve-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0698a2bd12333da00a830da5e856b18f87264103fa21e94fdebdeb5827a63549
MD5 511e46ce6065919f88caff5d6e62ba9f
BLAKE2b-256 e6e7a0e75997f0a1f61291c2a3069482af9c46ca44b77c2d6af92fccdf1353e9

See more details on using hashes here.

Supported by

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