GitHub user agentmilindu opened a pull request:
https://github.com/apache/stratos/pull/414
Python CLI PR1
Python CLI for Stratos
*( Do not merge )*
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/agentmilindu/stratos python-cli-pr1
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/stratos/pull/414.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #414
----
commit c90fef391274016e14373b42fe01ab1d9bdc5730
Author: Milindu Sanoj Kumarage <[email protected]>
Date: 2015-05-01T02:38:30Z
Create README.md
commit c22f860d3a146d38f2ad25f33bc83ce1cf78c2e9
Author: Milindu Sanoj Kumarage <[email protected]>
Date: 2015-05-03T05:23:16Z
Directory structure added
On branch python-cli
new file:
components/org.apache.stratos.python.cli/src/main/python/cli/__init__.py
commit 8ccaeb86d44dacb6c4b0fe968027223d73d243e2
Author: Milindu Sanoj Kumarage <[email protected]>
Date: 2015-05-03T06:41:24Z
Setup file added, setup config added
On branch python-cli
new file:
components/org.apache.stratos.python.cli/src/main/python/cli/setup.cfg
new file:
components/org.apache.stratos.python.cli/src/main/python/cli/setup.py
commit 0301ea4c0b4c0abc478ffb751c2d5e4c6ef4e073
Author: Milindu Sanoj Kumarage <[email protected]>
Date: 2015-05-03T10:15:56Z
Directory for Tests added
On branch python-cli
new file:
components/org.apache.stratos.python.cli/src/main/python/tests/__init__.py
commit 13bcb5035214e7daf70ee9e9ab01668406384715
Author: Milindu Sanoj Kumarage <[email protected]>
Date: 2015-05-03T10:17:29Z
Setup file and Setup config file moved to correct location
On branch python-cli
renamed:
components/org.apache.stratos.python.cli/src/main/python/cli/setup.cfg ->
components/org.apache.stratos.python.cli/src/main/python/setup.cfg
renamed:
components/org.apache.stratos.python.cli/src/main/python/cli/setup.py ->
components/org.apache.stratos.python.cli/src/main/python/setup.py
Refer
https://pythonhosted.org/an_example_pypi_project/setuptools.html#directory-structure
commit 08d10dc3f2bb5778ff22dd119700b86f6ecacd2d
Author: Milindu Sanoj Kumarage <[email protected]>
Date: 2015-05-03T17:29:52Z
README added
commit 143318f60a89fa221ee792bb2860fec96adbadde
Author: Milindu Sanoj Kumarage <[email protected]>
Date: 2015-05-03T17:33:55Z
Main file added
On branch python-cli
new file:
components/org.apache.stratos.python.cli/src/main/python/cli/Main.py
Main file contains the main() method, the entry point of the CLI
commit 076f5dde0cd3219f112f427e995168e6beb1a02a
Author: Milindu Sanoj Kumarage <[email protected]>
Date: 2015-05-05T12:39:01Z
Simple code style fixes as of the coding guides
commit fe928e8a00a690573749bd474f3be7ebad35417d
Author: Milindu Sanoj Kumarage <[email protected]>
Date: 2015-05-05T12:43:08Z
CLI and Stratos scripts added
On branch python-cli
new file:
components/org.apache.stratos.python.cli/src/main/python/cli/CLI.py
new file:
components/org.apache.stratos.python.cli/src/main/python/cli/Stratos.py
commit 3c04078249b596fd93c641df82d7e83af3132d09
Author: Milindu Sanoj Kumarage <[email protected]>
Date: 2015-05-06T06:33:25Z
Initializing the CMD and started the loop in Main
On branch python-cli
modified:
components/org.apache.stratos.python.cli/src/main/python/cli/Main.py
commit d6a85ac15f06fd0377c51b6f43b23e22be913d41
Author: Milindu Sanoj Kumarage <[email protected]>
Date: 2015-05-06T08:04:47Z
Main and CLI linked
On branch python-cli
modified: cli/CLI.py
modified: cli/Main.py
modified: cli/Stratos.py
modified: setup.py
Now anyone build and install stratos CLI by,
$ python setup.py build
$ python setup.py install
or use
$ python setup.py develop
instead `install` if developing
commit e02264d749990dccd8273852c3af8a0ef89fc841
Author: Milindu Sanoj Kumarage <[email protected]>
Date: 2015-05-07T12:39:53Z
Made the README a rst file
On branch python-cli
renamed: README.md -> README.rst
Using rst(reStructuredText) file as setup.py's description, this will
become the description of stratos on Pip.
Therefor adding the default Stratos CLI guide there.
Python CLI specific details would reside on README.md
commit dee2998b57fff9dd08dd5349eb5c15c7c8582d30
Author: Milindu Sanoj Kumarage <[email protected]>
Date: 2015-05-07T12:46:54Z
Git Ignore file updated
On branch python-cli
new file: .gitignore
Ignoring
build/
dist/
stratos.egg-info/
commit e7e29de764290f41f29cec9212daa6e1e3a7840b
Author: Milindu Sanoj Kumarage <[email protected]>
Date: 2015-05-07T12:48:14Z
new README.md added
On branch python-cli
new file: README.md
Python CLI specific README
commit 5f2b673edff89bf9656a1ce5cb3d889c737c937d
Author: Milindu Sanoj Kumarage <[email protected]>
Date: 2015-05-07T12:54:05Z
Setup.py now use README.rst as description
commit 93c4bd38770f7ebbc510cb2c51e230d193b097de
Author: Milindu Sanoj Kumarage <[email protected]>
Date: 2015-05-13T18:35:01Z
Added Apache details to the Setup.py
On branch python-cli
modified: setup.py
commit 4ad55d444ca22e5e3fad34335cf49257276d361c
Author: Milindu Sanoj Kumarage <[email protected]>
Date: 2015-05-14T03:32:01Z
Utilities to print tables, trees added
On branch python-cli
new file: cli/Utils.py
commit c1151b1ebf890f5e6344a27c6dc8b6d29f4443cd
Author: Milindu Sanoj Kumarage <[email protected]>
Date: 2015-05-14T03:33:21Z
Seperate py to handle Logging related stuffs
On branch python-cli
new file: cli/Logging.py
commit aa17a47c9a6e1e731115e25f905b82c548b3c13a
Author: Milindu Sanoj Kumarage <[email protected]>
Date: 2015-05-16T05:59:42Z
Creating stratos folder for logging( if not exists ), logging in to
stratos-cli.log
commit d2f6a8dd04fc268206e07bef19f6843f0ac7f73c
Author: Milindu Sanoj Kumarage <[email protected]>
Date: 2015-05-16T06:01:28Z
Logging added to the Main py
commit 8ff72c6bc242faf8762e1f0dd24ff50f7667c086
Author: Milindu Sanoj Kumarage <[email protected]>
Date: 2015-05-22T11:46:11Z
Configs.py added, Using the constants in Configs.py
On branch python-cli
modified: cli/CLI.py
new file: cli/Configs.py
modified: cli/Logging.py
commit 4170cd584bbc752b90258603ad6dfe9c89077fab
Author: Milindu Sanoj Kumarage <[email protected]>
Date: 2015-05-22T12:09:16Z
Resolving the '-' issue
commit 53c8330b979c74fa92caaa4eeae1bf1fd5788a2f
Author: Milindu Sanoj Kumarage <[email protected]>
Date: 2015-06-13T11:41:58Z
Log file location moved to COnfigs.py from Logger.py
On branch python-cli
modified:
components/org.apache.stratos.python.cli/src/main/python/cli/Configs.py
modified:
components/org.apache.stratos.python.cli/src/main/python/cli/Logging.py
commit 3d824eb506083fcb4630a663aedffff9b340d335
Author: Milindu Sanoj Kumarage <[email protected]>
Date: 2015-06-14T07:45:33Z
Some quick fixes
Using python os.path.join() to avoid forward/back slash problems
Setting empty strings as defaults for username and password evn vars
instead of None
commit db530d8897be2fc12b84ae87420266b0237f8f38
Author: Milindu Sanoj Kumarage <[email protected]>
Date: 2015-06-14T09:41:25Z
Pre Authentication decorator added
commit 6ce72d58e9325bc7a3e96c100982d7cee18c5971
Author: Milindu Sanoj Kumarage <[email protected]>
Date: 2015-06-18T01:40:06Z
Default stratos URL added
commit d7772d7a70e42ee1c1410fb752aa07d678a44c68
Author: Milindu Sanoj Kumarage <[email protected]>
Date: 2015-06-18T16:37:56Z
Auth and Print tree improved
commit 2e68712bb107553907152ba3e917bcde6273e765
Author: Milindu Sanoj Kumarage <[email protected]>
Date: 2015-06-18T16:39:09Z
Prompting for user credentials when starting the interactive mode
commit c9d72884fc700b7cf889ebc2b45fe147890a3996
Author: Milindu Sanoj Kumarage <[email protected]>
Date: 2015-06-18T16:41:09Z
Stratos API URL added
commit 5b6440282d4039936409a61a784f5c0be4af8422
Author: Milindu Sanoj Kumarage <[email protected]>
Date: 2015-07-25T06:59:13Z
Passowrd and username checking now happens in @auth decorator.
do_list_users and do_network_partitions added
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---