How to Search Package, Module or Library Python using pip_search

Posted on

Introduction

This article has a specific content. The main content is just to show how to search package, module or library of python programming language. In order to search it, there is an useful tool for doing it. Actually, that tool is also a package, module or library from python programming language. Installing the tool is easy. Just execute the tool by typing a command in the command line interface. Just run the Command Line Interface and type the command in it. 

Search Package, Module or Library Python using pip_search

This part actually exist into several segment. The first segment is the preparation step. The next segment is the actual installation step with the execution of the tool itself. The execution step contains the actual searching process with a real example of a package, module or library name.

Preparation Step

Before the tool or the command available for further usage, there are several requirements to do it. Those requirements exist in the following sequence :

  1. Run the command line interface such as Command Prompt.

  2. Make sure that ‘python’ exist. Read the article with the title of ‘How to Install Python in Microsoft Windows’ in this link about installing python in Microsoft Windows.

  3. Following after, also check the existance of ‘pip’. It will need python to run ‘pip’ tool. Furthermore, ‘pip’ tool itself is possible for installing package, module or library of python programming language. For a reference on installing ‘pip’, just read the article with the title of ‘How to Install pip in Microsoft Windows’ in this link.

  4. Before running the command, create and activate a python virtual environment. If the destination of the ‘pip-search’ is just specific to a certain python virtual environment. If it is not, just execute it as is. For the information about creating a python virtual environment, read the article with the title of ‘How to Create a Python Virtual Environment in Microsoft Windows’ in this link. Activate it will in the article with the title of ‘How to Activate Python Virtual Environment in Microsoft Windows’ in this link.

  5. In the command line interface or the Command Prompt, run the following command :

    (env) C:\programming\python>pip install pip-search
    Collecting pip-search
    Downloading pip_search-0.0.7-py3-none-any.whl (3.4 kB)
    Collecting requests
    Downloading requests-2.26.0-py2.py3-none-any.whl (62 kB)
    |████████████████████████████████| 62 kB 88 kB/s
    Collecting bs4
    Using cached bs4-0.0.1.tar.gz (1.1 kB)
    Collecting rich
    Downloading rich-10.10.0-py3-none-any.whl (211 kB)
    |████████████████████████████████| 211 kB 3.3 MB/s
    Collecting beautifulsoup4
    Downloading beautifulsoup4-4.10.0-py3-none-any.whl (97 kB)
    |████████████████████████████████| 97 kB 966 kB/s
    Collecting soupsieve>1.2
    Using cached soupsieve-2.2.1-py3-none-any.whl (33 kB)
    Collecting charset-normalizer~=2.0.0
    Downloading charset_normalizer-2.0.6-py3-none-any.whl (37 kB)
    Collecting idna<4,>=2.5
    Downloading idna-3.2-py3-none-any.whl (59 kB)
    |████████████████████████████████| 59 kB 1.1 MB/s
    Collecting certifi>=2017.4.17
    Downloading certifi-2021.5.30-py2.py3-none-any.whl (145 kB)
    |████████████████████████████████| 145 kB 3.3 MB/s
    Collecting urllib3<1.27,>=1.21.1
    Downloading urllib3-1.26.6-py2.py3-none-any.whl (138 kB)
    |████████████████████████████████| 138 kB 3.2 MB/s
    Collecting colorama<0.5.0,>=0.4.0
    Using cached colorama-0.4.4-py2.py3-none-any.whl (16 kB)
    Collecting pygments<3.0.0,>=2.6.0
    Downloading Pygments-2.10.0-py3-none-any.whl (1.0 MB)
    |████████████████████████████████| 1.0 MB 13 kB/s
    Collecting commonmark<0.10.0,>=0.9.0
    Downloading commonmark-0.9.1-py2.py3-none-any.whl (51 kB)
    |████████████████████████████████| 51 kB 651 kB/s
    Using legacy 'setup.py install' for bs4, since package 'wheel' is not installed.
    Installing collected packages: soupsieve, urllib3, pygments, idna, commonmark, colorama, charset-normalizer, certifi, beautifulsoup4, rich, requests, bs4, pip-search
    Running setup.py install for bs4 ... done
    Successfully installed beautifulsoup4-4.10.0 bs4-0.0.1 certifi-2021.5.30 charset-normalizer-2.0.6 colorama-0.4.4 commonmark-0.9.1 idna-3.2 pip-search-0.0.7 pygments-2.10.0 requests-2.26.0 rich-10.10.0 soupsieve-2.2.1 urllib3-1.26.6
    
    (env) C:\programming\python>
    

Execution Step

This is a segment of the step where the main focus is just to run the tool. Running the tool to search package, module or library with the parameter of the string name. So, below is the execution of ‘pip_search’ :

  1. After successfully installing the pip-search module, just use it to search a certain module. Run the following command in the command prompt :

    (env) C:\programming\python>pip-search django
    'pip-search' is not recognized as an internal or external command,
    operable program or batch file.
    

    The package itself is ‘pip-search’ but the command execution is actually ‘pip_search’ as in the following command execution :

    (env) C:\programming\python>pip_search django
    🐍 https://pypi.org/search/?q=django 🐍
    ┌─────────────────────────────────────┬───────────┬──────────────┬────────────────────────────────────────────────────┐
    │ Package                             │ Version   │ Released     │ Description                                        │
    ├─────────────────────────────────────┼───────────┼──────────────┼────────────────────────────────────────────────────┤
    │ 📂 Django                            3.2.7       Sep 1, 2021    A high-level Python Web framework that encourages   
    │                                     │           │              │ rapid development and clean, pragmatic design.     │
    │ 📂 django-503                        0.1         Oct 3, 2011    An app to show 503 error page, while your django    
    │                                     │           │              │ site is on maintenance.                            │
    │ 📂 django-scribbler-django2.0        0.9.3       Oct 28, 2018   django-scribbler is an application for managing      
    │                                     │           │              │ snippets of text for a Django website.             │
    │ 📂 django-filebrowser-django13       3.0         Mar 14, 2011   Media-Management with the Django Admin-Interface.  
    │                                     │           │              │ Package for using without django-grapelli in       │
    │                                     │           │              │ Django 1.3                                         │
    │ 📂 django-tracking-analyzer-django2  0.3         Jan 2, 2019    User actions tracking and analytics for Django     
    │                                     │           │              │ sites.                                             │
    │ 📂 django-jchart-django3-uvm         0.4.2       Feb 5, 2020    A Django App to plot charts using the excellent      
    │                                     │           │              │ Chart.JS library. Updated for Django 3.x           │
    │                                     │           │              │ compatibility                                      │
    │ 📂 django-totalsum-admin-django3     1.0.0       Jan 8, 2020    A django app that initializes admin changelist      
    │                                     │           │              │ view with last row in results as sum of some       │
    │                                     │           │              │ numerical fields or properties                     │
    │ 📂 django-debug-toolbar-django13     0.8.4       Mar 14, 2011   A configurable set of panels that display various  
    │                                     │           │              │ debug information about the current                │
    │                                     │           │              │ request/response. Version fully Django 1.3         │
    │                                     │           │              │ compatible                                         │
    │ 📂 django-suit-redactor-django2      0.5.1       Feb 19, 2020   Imperavi Redactor (WYSIWYG editor) integration app 
    │                                     │           │              │ for Django admin. http://imperavi.com/redactor/    │
    │ 📂 django-django_csv_exports         1.0.0       Jul 10, 2015   <Include a description of your project> 
    │ 📂 django-thumborize                 1.0         Oct 21, 2014   Minimal interface for thumbor imaging service 
    │ 📂 django-lgi                        0.1.2       Jul 7, 2020    Django Lambda Gateway Interface 
    │ 📂 ng2django                         20.7.13     Jul 14, 2020   Convert your Angular built index.html file to 
    │                                     │           │              │ Django Template syntax                             │
    │ 📂 django-ssr                        0.0.1       Jul 2, 2018    SSR for django project 
    │ 📂 django-blogs                      0.2.0       Nov 18, 2012   Django blogs - module that provide blogs to your 
    │                                     │           │              │ django application. - One user blog - Multi        │
    │                                     │           │              │ blogging system - Blog per user - Safe html in     │
    │                                     │           │              │ posts - System to manage permissions to            │
    │                                     │           │              │ read\write\moderate blogs                          │
    │ 📂 django-paybills                   1.0.0       May 10, 2019   Django app for paypal integration. 
    │ 📂 django-cast                       0.1.35      Oct 26, 2020   Just another blogging / podcasting package 
    │ 📂 django-polyfield                  0.1.0       May 21, 2017   Django Polyfield 
    │ 📂 django-activitysync               0.2.2       Feb 14, 2011   Fast, easy, and extensible social activity 
    │                                     │           │              │ aggregation for Django projects                    │
    │ 📂 django-inviter                    0.2.4       Mar 28, 2012   Invite users to your Django apps 
    │ 📂 django-directapps                 0.7         Apr 26, 2019   Django app for direct client access to all models. 
    │ 📂 django-xenforo                    1.2.0       May 21, 2020   A little app to integrate Xenforo 2 users in your 
    │                                     │           │              │ Django project.                                    │
    │ 📂 django-followit                   0.4.1       Dec 8, 2019    A Django application that allows users to follow 
    │                                     │           │              │ django model objects                               │
    │ 📂 django-extracontent               0.1         Sep 11, 2010   A django abstract model and form for handling 
    │                                     │           │              │ extra content in a model.                          │
    │ 📂 django-authtools                  1.7.0       Jun 26, 2019   Custom user model app for Django featuring email 
    │                                     │           │              │ as username and class-based views for              │
    │                                     │           │              │ authentication.                                    │
    │ 📂 django-ember                      0.3.1       Jul 30, 2013   Django Ember.js integration 
    │ 📂 django-redis                      5.0.0       May 30, 2021   Full featured redis cache backend for Django. 
    │ 📂 django-errorlog                   0.1.1       Dec 5, 2016    Django reuseable app to collect the unexpcted 
    │                                     │           │              │ exception then generate comprehansive report just  │
    │                                     │           │              │ like what you get in debug mode and store in       │
    │                                     │           │              │ database                                           │
    │ 📂 django-markers                    1.3.2       Aug 21, 2019   Dynamic map marker generation using template 
    │                                     │           │              │ images and arbitrary text                          │
    │ 📂 django-mauveinternet              1.0.1       Apr 27, 2016   A collection of extensions for Django developed by 
    │                                     │           │              │ Mauve Internet                                     │
    │ 📂 django-mailtrail                  0.3         Feb 20, 2017   A seamless integration that makes Django email 
    │                                     │           │              │ awesome.                                           │ 
    │ 📂 django-polymodels                 1.7.0       Mar 20, 2021   Polymorphic models implementation for django 
    │ 📂 django-address                    0.2.5       Aug 30, 2020   A django application for describing addresses. 
    │ 📂 django-watson                     1.5.5       Mar 30, 2020   Full-text multi-table search application for 
    │                                     │           │              │ Django. Easy to install and use, with good         │
    │                                     │           │              │ performance.                                       │
    │ 📂 django-esteid                     3.1.post1   Feb 22, 2021   Django-esteid is a package that provides Esteid 
    │                                     │           │              │ based authentication for your Django applications. │
    │ 📂 django-suit2                      2.0a1       Jan 18, 2020   Modern theme for Django admin interface. (Making 
    │                                     │           │              │ the latest updates available on Pypi)              │
    │ 📂 django-assets                     2.0         Dec 20, 2019   Asset management for Django, to compress and merge 
    │                                     │           │              │ CSS and Javascript files.                          │
    │ 📂 django-userswitch                 0.2.2       Mar 22, 2011   A quick 'n' dirty Django app for switching between 
    │                                     │           │              │ different users while testing                      │
    │ 📂 django-dbbackup                   3.3.0       Apr 14, 2020   Management commands to help backup and restore a 
    │                                     │           │              │ project database and media                         │
    │ 📂 django-wsgi                       1.0b1       Nov 30, 2015   Enhanced WSGI support for Django applications 
    └─────────────────────────────────────┴───────────┴──────────────┴────────────────────────────────────────────────────┘
    
    (env) C:\programming\python>
    

    As exist in the above output command execution, executing the ‘pip_search’ command is a success. The package containing string of ‘Django’ in its name appear in the list above.

Leave a Reply