<commit_before># os-shell
---
An interactive OpenStack command shell.

![alt text](https://github.com/bdastur/os-shell/blob/master/docs/images/os_shell_cmdline.gif "Interactive Shell")



## Installation
Simplest way to install is using pip

If installing in a virtualenv
```
pip install os-shell
```

If you are not installing in a virtualenv, run:
```
sudo pip install os-shell
```

## Supported Python Versins.
Currently supported version of python:

  * 2.7.x and greater

## Basic Usage
os-shell accepts the same commands and options as the openstack CLI. Once in the shell you dont need to specify 'openstack' as the prefix.

*Example:*
```
$os-shell
openstack> server list
+--------------------------------------+----------------------+--------+----------------------------------+---------------+
| ID                                   | Name                 | Status | Networks                         | Image Name    |
+--------------------------------------+----------------------+--------+----------------------------------+---------------+
| 75aa51d8-169d-4f0c-b227-c338c885d71f | centos7_server-4bff  | ACTIVE | behzad-dastur-net=192.168.127.12 |               |
| 6ec1b630-823c-4006-8367-f376849cc6c6 | elastic-ace9         | ACTIVE | behzad-dastsur-net=192.168.3.11 |               |
| dfa7b936-70ac-4fba-a41c-2a9b67ddc2a9 | rundeck-centos7-e7f4 | ACTIVE | behzad-dastur-net=172.16.58.3 |               |
| a3ab4dc1-5373-4d19-b6f4-3f947f3a5e52 | staytus-centos-fde9  | ACTIVE | behzad-dasatur-net=192.168.3.11 |               |
+--------------------------------------+----------------------+--------+----------------------------------+---------------+
openstack>

openstack> network list --format json
[
  {
      "Subnets": "389ebaef-aee7-4b61-9639-fe89010755ef", 
          "ID": "4d4dcf18-b1b3-4196-9b80-06ba11fa2b13", 
              "Name": "behzad-dastur-net"
  }<commit_msg>Typo fix.<commit_after># os-shell
---
An interactive OpenStack command shell.

![alt text](https://github.com/bdastur/os-shell/blob/master/docs/images/os_shell_cmdline.gif "Interactive Shell")



## Installation
Simplest way to install is using pip

If installing in a virtualenv
```
pip install os-shell
```

If you are not installing in a virtualenv, run:
```
sudo pip install os-shell
```

## Supported Python Versions.
Currently supported version of python:

  * 2.7.x and greater

## Basic Usage
os-shell accepts the same commands and options as the openstack CLI. Once in the shell you dont need to specify 'openstack' as the prefix.

*Example:*
```
$os-shell
openstack> server list
+--------------------------------------+----------------------+--------+----------------------------------+---------------+
| ID                                   | Name                 | Status | Networks                         | Image Name    |
+--------------------------------------+----------------------+--------+----------------------------------+---------------+
| 75aa51d8-169d-4f0c-b227-c338c885d71f | centos7_server-4bff  | ACTIVE | behzad-dastur-net=192.168.127.12 |               |
| 6ec1b630-823c-4006-8367-f376849cc6c6 | elastic-ace9         | ACTIVE | behzad-dastsur-net=100.73.166.108 |               |
| dfa7b936-70ac-4fba-a41c-2a9b67ddc2a9 | rundeck-centos7-e7f4 | ACTIVE | behzad-dastur-net=172.16.58.3 |               |
| a3ab4dc1-5373-4d19-b6f4-3f947f3a5e52 | staytus-centos-fde9  | ACTIVE | behzad-dasatur-net=192.168.3.11 |               |
+--------------------------------------+----------------------+--------+----------------------------------+---------------+
openstack>

openstack> network list --format json
[
  {
      "Subnets": "389ebaef-aee7-4b61-9639-fe89010755ef", 
          "ID": "4d4dcf18-b1b3-4196-9b80-06ba11fa2b13", 
              "Name": "behzad-dastur-net"
  }
{'fraction_non_alphanumeric': 0.29005014515703353, 'fraction_numerical': 0.08762206386909475, 'mean_word_length': 1.4124761298535964, 'pattern_counts': {'":': 6, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 8, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1128052', 'n_tokens_mistral': 1383, 'n_tokens_neox': 1175, 'n_words': 233}