converter-package


Nameconverter-package JSON
Version 3.2 PyPI version JSON
download
home_page
SummaryThis converter library is able to transform the ACCORDION application model to K3s configuration files
upload_time2023-04-27 10:15:18
maintainer
docs_urlNone
authorGiannis Korontanis
requires_python
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Converter

Converter is a subcomponent of the ACCORDION platform. It is being used by the Orchestrator and Lifecycle Manager components in order to translate the application model to K3s configuration files, action models, workflow models and matchmaking models

## Installation

```bash
pip3 install converter-package==2.5
```

## 1. Parse Intermediate Model
```python

nodelist, imagelist, application_version = Parser.ReadFile(jsonResponse)
```
## 2. Create the namespace that describes the appInstanceInfo
```python
 application_instance = ID.generate_k3s_namespace(name, application_version, randomApplicationIntanceID())
```

## 3. How to generate matchmaking model
```python
matchmaking_model = MatchingModel.generate(nodelist, application_instance)
```
## 4. Generate namespace and secrets files for Kubernetes
```python
namespace_yaml = Converter.namespace(application_instance)
secret_yaml = Converter.secret_generation(json_base64_string, application_instance)
```

## 5. Generate deployments, persistenv volumes and services files for Kubernetes
```python
deployment_files, persistent_files, service_files = Converter.tosca_to_k8s(nodelist, imagelist,
                                                                                   application_instance, minicloud,
                                                                                   externalIP, gpu_list)
```
!!! Warning: gpu_model is an optional parameter. Since one or more GPU names may be given to Converter, the parameter has to be a list that would contain application components along with the required GPUs

## 6. Generate the action model
```python
actions_set = ActionModel.generate(nodelist, application_instance)
 ```

## 7. Generate the workflows model
```python
workflows_set = WorkflowModel.generate(nodelist, application_instance)
 ```

## 8. Scale out
```python
json_base64_string, url, name = online_selector('plexus')
intermediate_model = callAppBucket(json_base64_string, url, name)
deployment = Converter.scale_out_to_k8s(componentInfo, intermediate_model)
 ```
## More on Usage
DeployInterface.py is an example of usage for the case of deployment. There is also the ScaleOutInterface.py that presents how to use Converter to create scale out files for ACCORDION, it is available on the ACCORDION's Gitlab


## License
[MIT](https://choosealicense.com/licenses/mit/)


            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "converter-package",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Giannis Korontanis",
    "author_email": "gkorod2@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/35/29/e19025ff3e41a3973331f0f52a6e2afd2151ab2150b026547d08001f6180/converter_package-3.2.tar.gz",
    "platform": null,
    "description": "# Converter\n\nConverter is a subcomponent of the ACCORDION platform. It is being used by the Orchestrator and Lifecycle Manager components in order to translate the application model to K3s configuration files, action models, workflow models and matchmaking models\n\n## Installation\n\n```bash\npip3 install converter-package==2.5\n```\n\n## 1. Parse Intermediate Model\n```python\n\nnodelist, imagelist, application_version = Parser.ReadFile(jsonResponse)\n```\n## 2. Create the namespace that describes the appInstanceInfo\n```python\n application_instance = ID.generate_k3s_namespace(name, application_version, randomApplicationIntanceID())\n```\n\n## 3. How to generate matchmaking model\n```python\nmatchmaking_model = MatchingModel.generate(nodelist, application_instance)\n```\n## 4. Generate namespace and secrets files for Kubernetes\n```python\nnamespace_yaml = Converter.namespace(application_instance)\nsecret_yaml = Converter.secret_generation(json_base64_string, application_instance)\n```\n\n## 5. Generate deployments, persistenv volumes and services files for Kubernetes\n```python\ndeployment_files, persistent_files, service_files = Converter.tosca_to_k8s(nodelist, imagelist,\n                                                                                   application_instance, minicloud,\n                                                                                   externalIP, gpu_list)\n```\n!!! Warning: gpu_model is an optional parameter. Since one or more GPU names may be given to Converter, the parameter has to be a list that would contain application components along with the required GPUs\n\n## 6. Generate the action model\n```python\nactions_set = ActionModel.generate(nodelist, application_instance)\n ```\n\n## 7. Generate the workflows model\n```python\nworkflows_set = WorkflowModel.generate(nodelist, application_instance)\n ```\n\n## 8. Scale out\n```python\njson_base64_string, url, name = online_selector('plexus')\nintermediate_model = callAppBucket(json_base64_string, url, name)\ndeployment = Converter.scale_out_to_k8s(componentInfo, intermediate_model)\n ```\n## More on Usage\nDeployInterface.py is an example of usage for the case of deployment. There is also the ScaleOutInterface.py that presents how to use Converter to create scale out files for ACCORDION, it is available on the ACCORDION's Gitlab\n\n\n## License\n[MIT](https://choosealicense.com/licenses/mit/)\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "This converter library is able to transform the ACCORDION application model to K3s configuration files",
    "version": "3.2",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3529e19025ff3e41a3973331f0f52a6e2afd2151ab2150b026547d08001f6180",
                "md5": "980e9466e1b9f83f67e2fe21d8acb3ed",
                "sha256": "f62abbdd0ca4ced72a5002675e523915d93d03fdc8775a17624aece251c703c5"
            },
            "downloads": -1,
            "filename": "converter_package-3.2.tar.gz",
            "has_sig": false,
            "md5_digest": "980e9466e1b9f83f67e2fe21d8acb3ed",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 14360,
            "upload_time": "2023-04-27T10:15:18",
            "upload_time_iso_8601": "2023-04-27T10:15:18.097144Z",
            "url": "https://files.pythonhosted.org/packages/35/29/e19025ff3e41a3973331f0f52a6e2afd2151ab2150b026547d08001f6180/converter_package-3.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-04-27 10:15:18",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "converter-package"
}
        
Elapsed time: 0.05986s