Metadata-Version: 2.1
Name: NebulaPythonSDK
Version: 1.5.2
Summary: NebulaPythonSDK is a Pythonic SDK to manage Nebula container orchestrator
Home-page: https://github.com/nebula-orchestrator/nebula-python-sdk
Author: Naor Livne
Author-email: naorlivne@gmail.com
License: GPLv3
Description: # Nebula-Python-SDK
        An SDK for managing [nebula](https://nebula-orchestrator.github.io/) via python.
        
        translates all of Nebula [API](http://nebula.readthedocs.io/en/latest/api/) calls to something more pythonic.
        
        # How To Use
        first get NebulaPythonSDK onto your machine
        ```bash
        # Install from PyPi
        pip install NebulaPythonSDK
        ```
        
        now use it in your code
        ```python
        # Load API wrapper from library
        from NebulaPythonSDK import Nebula
        
        # Create API object.
        # port defaults to 80, protocol defaults to "http" & request_timeout defaults to 60 if any of them is not set.
        connection = Nebula(username="your_nebula_user", password="your_nebula_pass", host="nebula.example.com", port=80, protocol="http", request_timeout=60)
        
        # List apps
        app_list = connection.list_apps()
        
        # List app info
        app_config = connection.list_app_info("app_name")
        
        # Create app
        app_conf = {
            "containers_per_cpu": 8,
            "env_vars": {
                "test": "blabla",
                "test3t2t32": "tesg4ehgee"
            },
            "docker_ulimits": [],
            "networks": ["nebula"],
            "running": True,
            "volumes": ["/tmp:/tmp/1", "/var/tmp/:/var/tmp/1:ro"],
            "containers_per": {
                "cpu": 6
            },
            "starting_ports": [
                {
                    "81": 80
                }
            ],
            "docker_image": "httpd",
            "privileged": False,
            "devices": []
        }
        connection.create_app("app_name", app_conf)
        
        ```
        
        Note that the response returned is a requests formatted response.
        
Keywords: nebula container orchestrator sdk
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Other Environment
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Description-Content-Type: text/markdown
