Metadata-Version: 1.2
Name: boot.py
Version: 0.7
Summary: Boot.py is an small set of tools to build simple scripts. Python3 only, and really small: 2Kb!
Home-page: https://github.com/mariocesar/boot.py
Author: Mario César Señoranis Ayala
Author-email: mariocesar.c50@gmail.com
License: UNKNOWN
Description-Content-Type: UNKNOWN
Description: 
        .. image:: https://badge.fury.io/py/boot.py.svg
            :target: https://pypi.python.org/pypi/boot.py/
        
        Install and Use
        ---------------
        
        Install with pip.
        
        .. code-block:: console
        
            pip install boot.py
        
        
        Create a file and import `boot`. For example this will install a virtual
        environment, install requirements, and create some files.
        
        .. code-block:: python
        
            #!/usr/bin/env python3
            import os
            import venv
        
            from pathlib import Path
        
            root_path = Path(__file__).parent.resolve()
            venv_dir = root_path / '.venv'
        
            with step(f'Creating virtualenv in {venv_dir.name}'):
                if not venv_dir.exists():
                    venv.create(venv_dir, with_pip=True)
        
            with step('Installing requirements'):
                run(f'{venv_dir / "bin/pip"} install -r requirements.txt')
        
            with step('Creating directories'):
                run(f'mkdir -p public/media')
                run(f'mkdir -p public/static')
        
            with step('Environment file'):
                envfile = root_path / '.env'
        
                if not envfile.exists():
                    with open(envfile, 'w') as handle:
                        os.chmod(envfile, 0o600)
                        handle.write('')
        
        This will output.
        
        .. code-block:: console
        
            $ ./script.py
            Creating virtualenv in .venv ... [Ok]
            Installing requirements ... [Ok]
            Installing project ... [Ok]
            Creating directories ... [Ok]
            Environment file ... [Ok]
        
        Simple!
        
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: License :: OSI Approved :: MIT License
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.6
