Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Python CLI GSoC15 #437

Open
wants to merge 79 commits into
base: gsoc-projects-2015
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 70 commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
33c6641
Create README.md
agentmilindu May 1, 2015
758555c
Directory structure added
agentmilindu May 3, 2015
3020d25
Setup file added, setup config added
agentmilindu May 3, 2015
4ef19f9
Directory for Tests added
agentmilindu May 3, 2015
6553b46
Setup file and Setup config file moved to correct location
agentmilindu May 3, 2015
3b9067d
README added
agentmilindu May 3, 2015
867c9a8
Main file added
agentmilindu May 3, 2015
e8c4689
Simple code style fixes as of the coding guides
agentmilindu May 5, 2015
ea09876
CLI and Stratos scripts added
agentmilindu May 5, 2015
cc0e57c
Initializing the CMD and started the loop in Main
agentmilindu May 6, 2015
0e8c137
Main and CLI linked
agentmilindu May 6, 2015
f67802b
Made the README a rst file
agentmilindu May 7, 2015
a040045
Git Ignore file updated
agentmilindu May 7, 2015
4f57407
new README.md added
agentmilindu May 7, 2015
eeb5e1f
Setup.py now use README.rst as description
agentmilindu May 7, 2015
a8b6523
Added Apache details to the Setup.py
agentmilindu May 13, 2015
979c0ef
Utilities to print tables, trees added
agentmilindu May 14, 2015
c3dbb17
Seperate py to handle Logging related stuffs
agentmilindu May 14, 2015
05e3a72
Creating stratos folder for logging( if not exists ), logging in to s…
agentmilindu May 16, 2015
999500c
Logging added to the Main py
agentmilindu May 16, 2015
d1ab83c
Configs.py added, Using the constants in Configs.py
agentmilindu May 22, 2015
4502eb6
Resolving the '-' issue
agentmilindu May 22, 2015
ef36b7a
Log file location moved to COnfigs.py from Logger.py
agentmilindu Jun 13, 2015
72dd3a4
Some quick fixes
agentmilindu Jun 14, 2015
28a72d3
Pre Authentication decorator added
agentmilindu Jun 14, 2015
f9f246f
Default stratos URL added
agentmilindu Jun 18, 2015
bf053e0
Auth and Print tree improved
agentmilindu Jun 18, 2015
3470102
Prompting for user credentials when starting the interactive mode
agentmilindu Jun 18, 2015
23d9785
Stratos API URL added
agentmilindu Jun 18, 2015
e66a7ee
Passowrd and username checking now happens in @auth decorator. do_lis…
agentmilindu Jul 25, 2015
50e85cb
added list_users to Straos
agentmilindu Jul 25, 2015
3657053
Loggin added
agentmilindu Jul 25, 2015
4a2b52f
Print tree method's print style fixed a little
agentmilindu Jul 25, 2015
4578f23
Tox ini added for Python testing on different version
agentmilindu Jul 25, 2015
6a17cc2
Ignored .tox dir
agentmilindu Jul 25, 2015
9cbc273
Added testing files
agentmilindu Jul 25, 2015
9a731a3
New Authentication Error
agentmilindu Jul 29, 2015
936b204
New CLI actions added
agentmilindu Jul 29, 2015
406d6e2
Resolving the '-' issue
agentmilindu Jul 29, 2015
4b86bb5
Added set of listing actions
agentmilindu Jul 30, 2015
18ed193
Using generalized get method
agentmilindu Jul 30, 2015
49fd1f8
Added Apache licence header
agentmilindu Aug 1, 2015
d798f35
Added list-kubernetes-hosts command
agentmilindu Aug 1, 2015
9c20de6
Added new line at the end of file as of PEP8 recommendations
agentmilindu Aug 1, 2015
44bd72a
180 char limit as of PEP8
agentmilindu Aug 2, 2015
2ba8708
Updated list-cartridges-group command
agentmilindu Aug 2, 2015
4d9303a
Updated list-cartridges command
agentmilindu Aug 2, 2015
bc57cc2
added activate-tenant command
agentmilindu Aug 4, 2015
3774fc2
Added list-deploying-policies
agentmilindu Aug 4, 2015
c7eb3a1
Added list-cartridge-groups
agentmilindu Aug 4, 2015
a9b7292
Added list-autoscaling-policies
agentmilindu Aug 4, 2015
de66b1f
Added function for pretty printing JSON
agentmilindu Aug 6, 2015
3377498
Updated user related commands
agentmilindu Aug 6, 2015
7177d7b
added describe-* type commands and list-* type commands
agentmilindu Aug 6, 2015
9622f7a
improved clarity
agentmilindu Aug 6, 2015
7e88d7f
Added new commands
agentmilindu Aug 7, 2015
cb926c7
Actions related to Auto-scaling policies and Kubernetes Clusters updated
agentmilindu Aug 8, 2015
4c7811f
remove-* commands, update-* commands added
agentmilindu Aug 9, 2015
77b4580
Updated Kubernates commands and Applications commands
agentmilindu Aug 12, 2015
f1aadea
Re-organized in to proper groups
agentmilindu Aug 16, 2015
20a7a8c
Better prompt_for_credentials()
agentmilindu Aug 16, 2015
6e1b565
Fixed doc string issue
agentmilindu Aug 16, 2015
11d4cec
ignoring test output dirs
agentmilindu Aug 16, 2015
3868c51
Better Exception handling
agentmilindu Aug 16, 2015
736626c
CLI output testing
agentmilindu Aug 16, 2015
cc2ef20
Generalized Errors
agentmilindu Aug 16, 2015
85d5d9b
removed unwanted stuffs
agentmilindu Aug 17, 2015
675ae2f
mock object for tests
agentmilindu Aug 17, 2015
41e53ef
Fixed doc strings
agentmilindu Aug 17, 2015
0140a6c
tests updated
agentmilindu Aug 17, 2015
3816639
fixed print statements
agentmilindu Aug 18, 2015
993ce64
README updated
agentmilindu Aug 25, 2015
364f5cf
Changes to the help text of user
agentmilindu Aug 25, 2015
543198c
improved formatting
agentmilindu Aug 25, 2015
15b8dc8
removed universal flag for pip
agentmilindu Aug 25, 2015
df0ce82
updated version
agentmilindu Aug 25, 2015
94da224
bug fixed in test
agentmilindu Aug 25, 2015
60d1d8e
changed the package name to stratos-cli
agentmilindu Aug 25, 2015
985433a
Printing Tree structure for describe-application command
agentmilindu Aug 25, 2015
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/components/org.apache.stratos.python.cli/src/main/python/tests/scratch/.scripttest-test-dir.txt
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
Expand Down
1 change: 1 addition & 0 deletions components/org.apache.stratos.python.cli/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#Python based CLI for Apache Stratos
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

build/
dist/
stratos.egg-info/
.tox/
25 changes: 25 additions & 0 deletions components/org.apache.stratos.python.cli/src/main/python/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Apache Stratos CLI
==================

Build and install stratos CLI by,

```
$ python setup.py build
$ python setup.py install
```

or use
```
$ python setup.py develop
```

instead `install` if developing

To start the Python CLI issue,

```
$ stratos
```



Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
================================================================================
Apache Stratos CLI
================================================================================

Welcome to the Apache Stratos CLI.

The command line interface (CLI) is a powerful tool that clients can use
to communicate with Stratos services. The CLI distribution only includes one
jar file containing all dependent java libraries.

The tenant can use the CLI tool on two separate modes if needed, which
are namely single command line mode and interactive mode.

If the user executes with a command as an argument, the CLI tool
will execute that command and exit with a status code.

However, if there is no command as an argument, the CLI tool will
enter into an interactive mode.

A user will be able to carryout all the following functions via the
CLI, with the exception of registering tenants and viewing logs.

The CLI tool also supports command history and auto-completing features
in the interactive mode.

Configuring CLI Tool
==================================
Configuration guide can be found at https://cwiki.apache.org/confluence/display/STRATOS/4.1.0+Configuring+CLI+Tool

Help
==================================
usage: stratos [-debug] [-h] [-p <password>] [-trace] [-u <username>]
-debug Enable debug logging
-h,--help Display this help
-p,--password <password> Password
-trace Enable trace logging
-u,--username <username> Username


Available Commands:
create-tenant Add new tenant
list-autoscale-policies List available autoscale policies
subscribe-cartridge Subscribe to a cartridge
exit Exit from Stratos Client Tool
list-available-cartridges List available cartridges
help Help for commands
list-available-partitions List available partitions
deploy-cartridge Add new cartridge deployment
unsubscribe-cartridge Unsubscribe from a subscribed cartridge
list-subscribe-cartridges List subscribed cartridges with details
deploy-partition Add new partition deployment
deploy-autoscaling-policy Add new autoscaling policy deployment
deploy-deployment-policy Add new deployment policy


Support
==================================

Any problem with this release can be reported to Apache Stratos mailing list
or in the JIRA issue tracker. If you are sending an email to the mailing
list make sure to add the [Apache Stratos] prefix to the subject.

Mailing list subscription:
[email protected]


Issue Tracker
==================================

Jira:
https://issues.apache.org/jira/browse/stratos


Thank you for using Apache Stratos!
The Stratos Team
Loading