Skip to content
This repository has been archived by the owner on Apr 30, 2020. It is now read-only.

Latest commit

 

History

History
59 lines (38 loc) · 1.71 KB

README.md

File metadata and controls

59 lines (38 loc) · 1.71 KB

osc-cli-curses

Designed to be a POC of a Outscale's Cockpit inside the terminal using curses.
The officially supported python version is currently 3.
The code is currently a bit dirty... Maybe big changes are coming!
To refresh any table, press [F5].
Feel free to suggest oher architectures, libs...
The src/ folder contains the project's sources.
The tests/ folder contain some crappy code used to test API calls or any other things...

Installation

You will need to install python3:

Now you can clone the repository:

  • git clone https://github.com/outscale/osc-sdk-python.git

And then open the project's folder:

  • cd osc-cli-curses
  • git submodule init
  • git submodule update

Then setup a virtual environnement (Facultative but recommended):

  • Install virtualenv: python3 -m pip install virtualenv
  • Create the environnement: python3 -m virtualenv -p python3 env
  • Activate it: source env/bin/activate.
  • To exite use deactivate.

You will need to install:

And now npyscreen:

  • cd npyscreen
  • python3 setup.py build
  • python3 setup.py install
  • cd ..

Finally run it!

  • ./src/main.py

Contributing

Just a few rules:

  • Format correctly your code (you can do autopep8 --in-place --aggressive --aggressive src/*.py).
  • Format correctly your commits(myFolfder: what I Did, or myFolder/test.py: what I did).
  • Add external dependencies as less as possible.


Note that the commit standard is new now so not really applied yet.