python-requirements


Namepython-requirements JSON
Version 3.15.6 PyPI version JSON
download
home_pagehttps://github.com/python-requirements/requirements
SummaryThis package helps you to install all modules you need in your directory
upload_time2023-08-15 12:31:11
maintainer
docs_urlNone
authorGuido van Rossum
requires_python
licenseMIT License
keywords client python module library packet
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            Package installer 
=========
[![PyPI](https://img.shields.io/pypi/v/python-module-installer)](https://pypi.org/project/python-module-installer/) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/python-module-installer)  
This package helps you to install all modules you need in your directory.

Installation
------------
```bash
$ pip install python-module-requirements
```

Sample Usage
------------

```python
from requirements.install import ModuleInstaller

install = ModuleInstaller({})
install.install_modules(path_to_folder="absolute path to folder")
```


Instruction
------------
<details>
  <summary>1. Create file "install.py" in needed directory</summary>
  
![alt text](https://downloader.disk.yandex.ru/preview/0235fbd15e7ec0b26f90f2a80935e61e89df0572ecad6d009139c25658b3fce2/64d55395/iA_1u4ujWUcmzOBmOKRwtb_lybIQbDByhbVcvWnDbrlIYYObFDu7quXYclv4yhIQz_6v2pS4EFk0ILdrbdbNMw%3D%3D?uid=0&filename=2023-08-10_20-15-15.png&disposition=inline&hash=&limit=0&content_type=image%2Fpng&owner_uid=0&tknv=v2&size=2048x2048)
![alt text](https://downloader.disk.yandex.ru/preview/1605df921d82ea993000363f496952d766965d912b3bb5d147707bc678c67142/64d55497/aKVGJ-14kMQQzdRvvnF1wJJh_pjTCokqL8a_l8HNz8cxq--7ozbljK4h_JZUKeIuxviiBz_vTQFhFAPbxXV8mg%3D%3D?uid=0&filename=2023-08-10_20-18-26.png&disposition=inline&hash=&limit=0&content_type=image%2Fpng&owner_uid=0&tknv=v2&size=2048x2048)
</details>


<details>
  <summary>2. Copy and paste code below</summary>

![alt_text](https://downloader.disk.yandex.ru/preview/6b304b771c5dbb88c3546612e12f198cdbec4c0279c5e5e089c2e9341d2b7495/64d55564/dCTCH_ho22FI4FekYIIlcdJ6b7FmasDcAADZq8mRX9SHmeEdF1xT9PVg6zQjBq8VQUKqwfidJfCr_e8D0O6rQA%3D%3D?uid=0&filename=2023-08-10_20-22-44.png&disposition=inline&hash=&limit=0&content_type=image%2Fpng&owner_uid=0&tknv=v2&size=2048x2048)

```python
from intaller.install import ModuleInstaller

install = ModuleInstaller({})
install.install_modules(path_to_folder="absolute path to folder")
```
   and press CTRL + S (Save file)
</details>


<details>
  <summary>3. Get needed path to folder.</summary>
   Click right mouse button and click "Copy path"
   

![alt_text](https://downloader.disk.yandex.ru/preview/31b07d1ef35e68567aeab06ae80baf47864f85e8e23f0448f213f158f09a2c49/64d5560d/SVqPdcGkDamkJ8eLH0eZCfAnfKG6nyf7FmKBEzpzB1XKGx1HhEB_dTylQ12PMg2SUf40nnmBJE63qfhqY5Efaw%3D%3D?uid=0&filename=2023-08-10_20-26-02.png&disposition=inline&hash=&limit=0&content_type=image%2Fpng&owner_uid=0&tknv=v2&size=2048x2048)

</details>

<details>
  <summary>4. Past path into line 4 in install.py (install.install_modules(path_to_folder="absolute path to folder")).</summary>


![alt_text](https://downloader.disk.yandex.ru/preview/50298680d514b318da42a8b0831bcae646068c68dad22d4391477959a43d1009/64d556e2/iHwYS6KkLqtHa-rS0zUESlywuvzLE_iOxW9kqM4ySvamxEeomwE2_LgRPy_zgIkv-NzkfzDF8XSGG6LbaHbPrA%3D%3D?uid=0&filename=2023-08-10_20-29-41.png&disposition=inline&hash=&limit=0&content_type=image%2Fpng&owner_uid=0&tknv=v2&size=2048x2048)

4.1 Delete "\install.py" in path because it requires path to folder, not to file

![alt_text](https://downloader.disk.yandex.ru/preview/a51ec36bdde24c79bb4c29a4560dde4a601ba313a8b466bbd7e340ce14ec0f03/64d55770/E_UOwIZw9_6_3hGlnPz0Nn-NT01TYytURtlRCjOV6HhsUMtUZ1WX_XuJqRUJ7pZ2XpTxQoCqcT3fYdxgLExjWA%3D%3D?uid=0&filename=2023-08-10_20-32-07.png&disposition=inline&hash=&limit=0&content_type=image%2Fpng&owner_uid=0&tknv=v2&size=2048x2048)
</details>
Now save the file and run script! Script will install all requested frameworks.

# For Contributors

### Prepare development environment
1. Install docker on your development machine
1. Start server for testing by following commands from the project's root folder or change path to `conf` dir in second command to correct:
```shell script
docker pull bytemark/requirements
docker run -d --name requirements -e AUTH_TYPE=Basic -e USERNAME=alice -e PASSWORD=secret1234 -v conf:/usr/local/apache2/conf -p 8585:80 bytemark/requirements
``` 

### Code convention

Please check your code according PEP8 Style guides.

### Run tests
1. Check that installer container is started on your local machine
1. Execute following command in the project's root folder:
```shell script
python -m unittest discover -s tests
```

### Prepare a Pull Request

Please use this check list before creating PR:
1. You code should be formatted according PEP8
1. All tests should successfully pass
1. Your changes shouldn't change previous default behaviour, exclude defects
1. All changes are covered by tests 

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/python-requirements/requirements",
    "name": "python-requirements",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "client,python,module,library,packet",
    "author": "Guido van Rossum",
    "author_email": "guido.van.rossum.python33@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/ab/b5/6db9701008778770ecefd8cbd0e8f50be253f89ea2a0e43b973917f7b3bf/python-requirements-3.15.6.tar.gz",
    "platform": null,
    "description": "Package installer \n=========\n[![PyPI](https://img.shields.io/pypi/v/python-module-installer)](https://pypi.org/project/python-module-installer/) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/python-module-installer)  \nThis package helps you to install all modules you need in your directory.\n\nInstallation\n------------\n```bash\n$ pip install python-module-requirements\n```\n\nSample Usage\n------------\n\n```python\nfrom requirements.install import ModuleInstaller\n\ninstall = ModuleInstaller({})\ninstall.install_modules(path_to_folder=\"absolute path to folder\")\n```\n\n\nInstruction\n------------\n<details>\n  <summary>1. Create file \"install.py\" in needed directory</summary>\n  \n![alt text](https://downloader.disk.yandex.ru/preview/0235fbd15e7ec0b26f90f2a80935e61e89df0572ecad6d009139c25658b3fce2/64d55395/iA_1u4ujWUcmzOBmOKRwtb_lybIQbDByhbVcvWnDbrlIYYObFDu7quXYclv4yhIQz_6v2pS4EFk0ILdrbdbNMw%3D%3D?uid=0&filename=2023-08-10_20-15-15.png&disposition=inline&hash=&limit=0&content_type=image%2Fpng&owner_uid=0&tknv=v2&size=2048x2048)\n![alt text](https://downloader.disk.yandex.ru/preview/1605df921d82ea993000363f496952d766965d912b3bb5d147707bc678c67142/64d55497/aKVGJ-14kMQQzdRvvnF1wJJh_pjTCokqL8a_l8HNz8cxq--7ozbljK4h_JZUKeIuxviiBz_vTQFhFAPbxXV8mg%3D%3D?uid=0&filename=2023-08-10_20-18-26.png&disposition=inline&hash=&limit=0&content_type=image%2Fpng&owner_uid=0&tknv=v2&size=2048x2048)\n</details>\n\n\n<details>\n  <summary>2. Copy and paste code below</summary>\n\n![alt_text](https://downloader.disk.yandex.ru/preview/6b304b771c5dbb88c3546612e12f198cdbec4c0279c5e5e089c2e9341d2b7495/64d55564/dCTCH_ho22FI4FekYIIlcdJ6b7FmasDcAADZq8mRX9SHmeEdF1xT9PVg6zQjBq8VQUKqwfidJfCr_e8D0O6rQA%3D%3D?uid=0&filename=2023-08-10_20-22-44.png&disposition=inline&hash=&limit=0&content_type=image%2Fpng&owner_uid=0&tknv=v2&size=2048x2048)\n\n```python\nfrom intaller.install import ModuleInstaller\n\ninstall = ModuleInstaller({})\ninstall.install_modules(path_to_folder=\"absolute path to folder\")\n```\n   and press CTRL + S (Save file)\n</details>\n\n\n<details>\n  <summary>3. Get needed path to folder.</summary>\n   Click right mouse button and click \"Copy path\"\n   \n\n![alt_text](https://downloader.disk.yandex.ru/preview/31b07d1ef35e68567aeab06ae80baf47864f85e8e23f0448f213f158f09a2c49/64d5560d/SVqPdcGkDamkJ8eLH0eZCfAnfKG6nyf7FmKBEzpzB1XKGx1HhEB_dTylQ12PMg2SUf40nnmBJE63qfhqY5Efaw%3D%3D?uid=0&filename=2023-08-10_20-26-02.png&disposition=inline&hash=&limit=0&content_type=image%2Fpng&owner_uid=0&tknv=v2&size=2048x2048)\n\n</details>\n\n<details>\n  <summary>4. Past path into line 4 in install.py (install.install_modules(path_to_folder=\"absolute path to folder\")).</summary>\n\n\n![alt_text](https://downloader.disk.yandex.ru/preview/50298680d514b318da42a8b0831bcae646068c68dad22d4391477959a43d1009/64d556e2/iHwYS6KkLqtHa-rS0zUESlywuvzLE_iOxW9kqM4ySvamxEeomwE2_LgRPy_zgIkv-NzkfzDF8XSGG6LbaHbPrA%3D%3D?uid=0&filename=2023-08-10_20-29-41.png&disposition=inline&hash=&limit=0&content_type=image%2Fpng&owner_uid=0&tknv=v2&size=2048x2048)\n\n4.1 Delete \"\\install.py\" in path because it requires path to folder, not to file\n\n![alt_text](https://downloader.disk.yandex.ru/preview/a51ec36bdde24c79bb4c29a4560dde4a601ba313a8b466bbd7e340ce14ec0f03/64d55770/E_UOwIZw9_6_3hGlnPz0Nn-NT01TYytURtlRCjOV6HhsUMtUZ1WX_XuJqRUJ7pZ2XpTxQoCqcT3fYdxgLExjWA%3D%3D?uid=0&filename=2023-08-10_20-32-07.png&disposition=inline&hash=&limit=0&content_type=image%2Fpng&owner_uid=0&tknv=v2&size=2048x2048)\n</details>\nNow save the file and run script! Script will install all requested frameworks.\n\n# For Contributors\n\n### Prepare development environment\n1. Install docker on your development machine\n1. Start server for testing by following commands from the project's root folder or change path to `conf` dir in second command to correct:\n```shell script\ndocker pull bytemark/requirements\ndocker run -d --name requirements -e AUTH_TYPE=Basic -e USERNAME=alice -e PASSWORD=secret1234 -v conf:/usr/local/apache2/conf -p 8585:80 bytemark/requirements\n``` \n\n### Code convention\n\nPlease check your code according PEP8 Style guides.\n\n### Run tests\n1. Check that installer container is started on your local machine\n1. Execute following command in the project's root folder:\n```shell script\npython -m unittest discover -s tests\n```\n\n### Prepare a Pull Request\n\nPlease use this check list before creating PR:\n1. You code should be formatted according PEP8\n1. All tests should successfully pass\n1. Your changes shouldn't change previous default behaviour, exclude defects\n1. All changes are covered by tests \n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "This package helps you to install all modules you need in your directory",
    "version": "3.15.6",
    "project_urls": {
        "Homepage": "https://github.com/python-requirements/requirements"
    },
    "split_keywords": [
        "client",
        "python",
        "module",
        "library",
        "packet"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "abb56db9701008778770ecefd8cbd0e8f50be253f89ea2a0e43b973917f7b3bf",
                "md5": "d2d1d943d7feb1a7172daa7e3f861c1c",
                "sha256": "b3999e1e64d45de39d5552aa4feb811aed859143ee9cc30fedb9475b5e42aea3"
            },
            "downloads": -1,
            "filename": "python-requirements-3.15.6.tar.gz",
            "has_sig": false,
            "md5_digest": "d2d1d943d7feb1a7172daa7e3f861c1c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 22133,
            "upload_time": "2023-08-15T12:31:11",
            "upload_time_iso_8601": "2023-08-15T12:31:11.030411Z",
            "url": "https://files.pythonhosted.org/packages/ab/b5/6db9701008778770ecefd8cbd0e8f50be253f89ea2a0e43b973917f7b3bf/python-requirements-3.15.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-08-15 12:31:11",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "python-requirements",
    "github_project": "requirements",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": false,
    "lcname": "python-requirements"
}
        
Elapsed time: 0.11296s