prypip


Nameprypip JSON
Version 1.0.8 PyPI version JSON
download
home_pagehttps://www.github.com/precious112/prypip
Summarypip for wrapper for properly auto updating requirements.txt and sorting out dependencies
upload_time2022-12-15 22:05:38
maintainer
docs_urlNone
authorBalogun Precious
requires_python>=3.8
license
keywords pip requirements requirements.txt dependency management
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# Prypip

Python package for auto updating requirements.txt and managing dependencies installed with pip.

[![License](https://img.shields.io/badge/License-BSD_3--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause) 

![Python](https://img.shields.io/badge/python-3670A0?style=for-the-badge&logo=python&logoColor=ffdd54)

[![Python 3.6](https://img.shields.io/badge/python-3.8-blue.svg)](https://www.python.org/downloads/release/python-360/)

# Why Prypip?

updating requirements.txt file in your python project requires manually adding the package or running :

```
pip freeze

```
which is not ideal because it could introduce packages useless to the project which could possibly break your 
code in production (trust me,been there 😪) especially when using environments like conda and also adds sub dependencies ( packages that are required by packages you installed) which will fill up the requirements.txt with too much packages and can be a hussle trying to uninstall a package  as you won't know immediately which package is dependent on another.

Prypip helps with these issues by :

- Auto updates your requirements.txt whenever you install,uninstall and upgrade a package via pip.

- Only adds packages you installed directly and separates sub dependencies in the ``` dependency_tree.json ``` file

- Doesn't allow redundant packages lying in your project.

In summary prypip will make your development and coding process much easier.

Would appreciate you using prypip, i'm very much open to feed backs 😁 .

# More

Contributors a very much welcomed, more ideas,features and correction are welcomed.

I also want to put this here that i'm open to remote and possibly sponsored relocation roles incase you have any job roles you know of or an employer, recommendations for roles are very much welcomed, I'm a fullstack developer with extensive knowledge of the foillowing technologies:

- Django
- Flask
- Fast api
- React js
- Next js

You can reach me via my email address preciouskent8@gmail.com, linked in profile link https://www.linkedin.com/in/precious-balogun-7392141b2/ . Link to my resume https://drive.google.com/file/d/1ItIuzXq_srjgVg6DzNVmTWb1x8wHPK-q/view?fbclid=IwAR0ccEf0woz5UIbBt8m26RFd0MT3pry4MtQS1sF2g7xlYvn_GDpJVliSiuE .

Thank you 😁 .







## Usage/Examples

you can install prypip by simply:

```
pip install prypip
```

Note: prypip should only be used within a virtual environment.
you shouldn't add prypip to your requirements.txt to avoid adding 
it to production,prypip is only meant to work locally.

After installing via pip you will need to create a
```venv_py_path.txt``` file that will contain the path
to two file paths namely:

- The path to the virtual environment's python interpreter,this is usually within the Scripts folder in the virtual environment directory.An example of this path in windows is :

```
C:\Users\user\otherPipProj\otherpipENV\Scripts\python
```

- The second line in the ```venv_py_path.txt``` should contain the site-packages path where pip stores all installed packages,specifying this path is required for the package to fully work. An example of this path in windows is :

```
C:\Users\user\otherPipProj\otherpipENV\Lib\site-packages
```

All these file paths are available on all OS,you can make a bit of google search to know exactly how to find these file paths in your PC.

After all is set,viola! you're ready to use prypip 🥳 .

Prypip can be used on the command line with the root command ``` prypip ``` .

To install a package you can use :

```
prypip run pip install <package_name>
```

This will perform the regular pip install function with the added fuctionality of updating your requirements.txt automatically.

Note: Make sure you're within the root directory of your project which is where the requirements.txt file usually resides.

Other commands and examples include:

```

prypip run pip uninstall <package_name>  [<automatically removes a package from requirements.txt when pip uninstalls a package>]

prypip run pip install <package_name> --upgrade [<automatically updates the version of the upgraded package in requirements.txt>]

prypip open dependency_tree.json [<this command opens the dependency_tree.json file(check api reference for more) and displays every package with their dependencies in a tree structure>]

```

## API Reference

``` venv_py_path.txt ``` : file created by user to store virtual environment's python interpreter path and site-packages
path.

``` dependency_tree.json ``` : file that stores each installed package as a key and every sub packages that it requires
(packages in which the installed package depends on) as value in a dict then converted to json.

``` prypip ``` : The main command for working with prypip.

``` run ``` : used to specify execution of commands external to prypip e.g pip

``` open ``` : used for opening and displaying special documents in prypip, e.g ``` prypip open dependency_tree.json ```
displays tthe content of dependency_tree.json in a tree like structure.






            

Raw data

            {
    "_id": null,
    "home_page": "https://www.github.com/precious112/prypip",
    "name": "prypip",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "pip,requirements,requirements.txt,dependency management",
    "author": "Balogun Precious",
    "author_email": "preciouskent8@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/94/64/07da39e9e3e9d4b730516ac34062f9fc2be58f93855d2f4aa320f4ffd4d2/prypip-1.0.8.tar.gz",
    "platform": null,
    "description": "\r\n# Prypip\r\n\r\nPython package for auto updating requirements.txt and managing dependencies installed with pip.\r\n\r\n[![License](https://img.shields.io/badge/License-BSD_3--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause) \r\n\r\n![Python](https://img.shields.io/badge/python-3670A0?style=for-the-badge&logo=python&logoColor=ffdd54)\r\n\r\n[![Python 3.6](https://img.shields.io/badge/python-3.8-blue.svg)](https://www.python.org/downloads/release/python-360/)\r\n\r\n# Why Prypip?\r\n\r\nupdating requirements.txt file in your python project requires manually adding the package or running :\r\n\r\n```\r\npip freeze\r\n\r\n```\r\nwhich is not ideal because it could introduce packages useless to the project which could possibly break your \r\ncode in production (trust me,been there \ud83d\ude2a) especially when using environments like conda and also adds sub dependencies ( packages that are required by packages you installed) which will fill up the requirements.txt with too much packages and can be a hussle trying to uninstall a package  as you won't know immediately which package is dependent on another.\r\n\r\nPrypip helps with these issues by :\r\n\r\n- Auto updates your requirements.txt whenever you install,uninstall and upgrade a package via pip.\r\n\r\n- Only adds packages you installed directly and separates sub dependencies in the ``` dependency_tree.json ``` file\r\n\r\n- Doesn't allow redundant packages lying in your project.\r\n\r\nIn summary prypip will make your development and coding process much easier.\r\n\r\nWould appreciate you using prypip, i'm very much open to feed backs \ud83d\ude01 .\r\n\r\n# More\r\n\r\nContributors a very much welcomed, more ideas,features and correction are welcomed.\r\n\r\nI also want to put this here that i'm open to remote and possibly sponsored relocation roles incase you have any job roles you know of or an employer, recommendations for roles are very much welcomed, I'm a fullstack developer with extensive knowledge of the foillowing technologies:\r\n\r\n- Django\r\n- Flask\r\n- Fast api\r\n- React js\r\n- Next js\r\n\r\nYou can reach me via my email address preciouskent8@gmail.com, linked in profile link https://www.linkedin.com/in/precious-balogun-7392141b2/ . Link to my resume https://drive.google.com/file/d/1ItIuzXq_srjgVg6DzNVmTWb1x8wHPK-q/view?fbclid=IwAR0ccEf0woz5UIbBt8m26RFd0MT3pry4MtQS1sF2g7xlYvn_GDpJVliSiuE .\r\n\r\nThank you \ud83d\ude01 .\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n## Usage/Examples\r\n\r\nyou can install prypip by simply:\r\n\r\n```\r\npip install prypip\r\n```\r\n\r\nNote: prypip should only be used within a virtual environment.\r\nyou shouldn't add prypip to your requirements.txt to avoid adding \r\nit to production,prypip is only meant to work locally.\r\n\r\nAfter installing via pip you will need to create a\r\n```venv_py_path.txt``` file that will contain the path\r\nto two file paths namely:\r\n\r\n- The path to the virtual environment's python interpreter,this is usually within the Scripts folder in the virtual environment directory.An example of this path in windows is :\r\n\r\n```\r\nC:\\Users\\user\\otherPipProj\\otherpipENV\\Scripts\\python\r\n```\r\n\r\n- The second line in the ```venv_py_path.txt``` should contain the site-packages path where pip stores all installed packages,specifying this path is required for the package to fully work. An example of this path in windows is :\r\n\r\n```\r\nC:\\Users\\user\\otherPipProj\\otherpipENV\\Lib\\site-packages\r\n```\r\n\r\nAll these file paths are available on all OS,you can make a bit of google search to know exactly how to find these file paths in your PC.\r\n\r\nAfter all is set,viola! you're ready to use prypip \ud83e\udd73 .\r\n\r\nPrypip can be used on the command line with the root command ``` prypip ``` .\r\n\r\nTo install a package you can use :\r\n\r\n```\r\nprypip run pip install <package_name>\r\n```\r\n\r\nThis will perform the regular pip install function with the added fuctionality of updating your requirements.txt automatically.\r\n\r\nNote: Make sure you're within the root directory of your project which is where the requirements.txt file usually resides.\r\n\r\nOther commands and examples include:\r\n\r\n```\r\n\r\nprypip run pip uninstall <package_name>  [<automatically removes a package from requirements.txt when pip uninstalls a package>]\r\n\r\nprypip run pip install <package_name> --upgrade [<automatically updates the version of the upgraded package in requirements.txt>]\r\n\r\nprypip open dependency_tree.json [<this command opens the dependency_tree.json file(check api reference for more) and displays every package with their dependencies in a tree structure>]\r\n\r\n```\r\n\r\n## API Reference\r\n\r\n``` venv_py_path.txt ``` : file created by user to store virtual environment's python interpreter path and site-packages\r\npath.\r\n\r\n``` dependency_tree.json ``` : file that stores each installed package as a key and every sub packages that it requires\r\n(packages in which the installed package depends on) as value in a dict then converted to json.\r\n\r\n``` prypip ``` : The main command for working with prypip.\r\n\r\n``` run ``` : used to specify execution of commands external to prypip e.g pip\r\n\r\n``` open ``` : used for opening and displaying special documents in prypip, e.g ``` prypip open dependency_tree.json ```\r\ndisplays tthe content of dependency_tree.json in a tree like structure.\r\n\r\n\r\n\r\n\r\n\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "pip for wrapper for properly auto updating requirements.txt and sorting out dependencies",
    "version": "1.0.8",
    "split_keywords": [
        "pip",
        "requirements",
        "requirements.txt",
        "dependency management"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "931de24db7a5575ffe6ab8d24184029a",
                "sha256": "bf73eff3031a32caabebebc21027dcb6885a4f30647e6024f30b5dfd41a3b641"
            },
            "downloads": -1,
            "filename": "prypip-1.0.8-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "931de24db7a5575ffe6ab8d24184029a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 11516,
            "upload_time": "2022-12-15T22:05:36",
            "upload_time_iso_8601": "2022-12-15T22:05:36.511113Z",
            "url": "https://files.pythonhosted.org/packages/88/56/09e711976286b4d30deec290196b730d7782d80e7ef2467ad39e1374bdb6/prypip-1.0.8-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "c1c60ccb70b248bf24df73a5617d46bf",
                "sha256": "8c7cf010bf8dddd4bb647e6bae56ecb78f7573761a4c96b67ab9f536d1e6de21"
            },
            "downloads": -1,
            "filename": "prypip-1.0.8.tar.gz",
            "has_sig": false,
            "md5_digest": "c1c60ccb70b248bf24df73a5617d46bf",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 10225,
            "upload_time": "2022-12-15T22:05:38",
            "upload_time_iso_8601": "2022-12-15T22:05:38.437566Z",
            "url": "https://files.pythonhosted.org/packages/94/64/07da39e9e3e9d4b730516ac34062f9fc2be58f93855d2f4aa320f4ffd4d2/prypip-1.0.8.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-15 22:05:38",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "precious112",
    "github_project": "prypip",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "prypip"
}
        
Elapsed time: 0.02523s