Python CLI for managing template library.
Project description
Introduction
Usage
Before you begin using xopera-template-library tool you have to configure the endpoint and login with your account
Examples:
$ xopera-template-library setup
$ xopera-template-library login --username "username1" --password "password1"
At any point the -h(help) flag is available to display proceeding options.
Example:
$ xopera-template-library service-template -h
usage: xopera-template-library service-template [-h]
{save,get,list,version} ...
positional arguments:
{save,get,list,version}
save Save a template to database.
get Get a template from database.
list List templates from database.
version Version options for templates.
optional arguments:
-h, --help show this help message and exit
Next you can use option list to display available templates. Use the flag --public_access to display all public
service or entity templates or without the flag to display all templates that you own.
Listing templates allows you to identify the ID of a certain template for future use and to view template information.
Examples:
$ xopera-template-library service-template list
$ xopera-template-library entity-template list
$ xopera-template-library service-template list --public_access
$ xopera-template-library entity-template list --name AwsLambda
$ xopera-template-library entity-template version list --template_name AwsLambda
To download a template you have to provide the path to where you want the template to be saved, whenever a template has
public access and one of the 3 possible idefitifers of the template: template_name, template_id or version_id.
If you use template name or ID the client will print available versions and ask you to pick one.
$ xopera-template-library service-template get --template_name DemoBlueprintOpenFaaS --public_access --path example/
If the desired template doesn't exist yet you can create and upload your own. You can start by generating a basic file
structure by running...
The tool will ask you for your model name and type. Possible types are data_types, artifact_types,
capability_types, requirement, relationship_types, interface_types, node_types, group, policy_types,
csar, other.
Examples:
$ xopera-template-library create-model
Model name:Test
Model type:artifact_types
After the basic files are generated you can edit them and upload your template to the library: Examples:
$ xopera-template-library entity-template save --name AwsLambda --path example/AwsLambdaFunction --public_access --version 0.0.1
Particle to upload structure
|-- Folder
|-- files
|-- create.yml
|-- undeploy.yml
|-- NodeType.tosca
It is recommended that the user generates empty files with
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file xopera-template-library-0.1.9.tar.gz.
File metadata
- Download URL: xopera-template-library-0.1.9.tar.gz
- Upload date:
- Size: 12.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62edbcf86061a6cae1d0c6d463526c0cd875afd5888abacdb1c8d1a1367605e6
|
|
| MD5 |
5fc6b3a369a998ed8814f3904d1a55aa
|
|
| BLAKE2b-256 |
b764ec353488977decd793415646930f9b8543d7b1cc2ef44817f7882be633e6
|
File details
Details for the file xopera_template_library-0.1.9-py3-none-any.whl.
File metadata
- Download URL: xopera_template_library-0.1.9-py3-none-any.whl
- Upload date:
- Size: 12.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7fb4926c200cfd1e1aac73c03af892d50315842ed954d2afb7568de679c0ba45
|
|
| MD5 |
c380ca0cb144801e0727a679384e6f6a
|
|
| BLAKE2b-256 |
e25b4a5941c044e3bb34d0b1b7c5476e61a1858813b0963dc86f368ecfdab505
|