Giter Club home page Giter Club logo

okrs's Introduction

OKRs

This repository contains python clients to produce statistics that can be used by EGI Foundation team to identify trends and monitor progress following the Objectives and Key Results (OKRs) goal-setting framework.

  • Cloud CPU/h consumed by the production VOs of EGI
  • HTC CPU/h consumed by the production VOs of EGI
  • Num. of 'Registered', 'Total' and 'Active' users of the production
    • Registered users = Number of users registered into the registries (VOMS, COManage, Perun) not necessarily active.
    • Total users = Number of users registered in the DB since the 1st. capture for a given VO.
  • VOs registered in the EGI Operations Portal
  • Num. of VOs registered in the EGI Operations Portal (in progress)
  • Num. of Service Orders (SOs) received from the EOSC Marketplace

The statistics generated by these python clients will be pushed in a Google Worksheet using the gspread APIs

Pre-requisites

  • Python 3.10.12+ installed on your local computer
  • Install pip3: apt-get install -y python3-pip
  • Install gspread API: sudo pip3 install gspread
  • Install venv: sudo apt install -y python3-venv

Creating a Google Service Account

In order to read from and write data to Google Sheets in Python, we will have to create a Google Service Account.

Instructions to create a Google Service Account are the following:

  • Head over to Google developer console
  • Click on Create Project to create a new project
  • Fill in the required fields and click on Create
  • From the APIs & Services menu, click on Enable API and Services
  • Search for "Google Drive API" and click on Enable
  • Search for the "Google Sheets API" and click on Enable
  • From the APIs & Services menu, click on Credentials
  • From the "Credentials" menu, click on Create Credentials to create a new credentials account
  • From the Credentials account, select Service Account
  • Fill in the web form providing the name of the Service account name and click on "Create" and Continue
  • Skip the step 3 to grant users access to this service account
  • Click on Done
  • Once the Service Account has been created, click on Keys and click on "Add new Keys" and select JSON
  • The credentials will be created and downloaded as a JSON file
  • Copy the JSON file to your code directory and rename it to credentials.json
  • Grant Edit rights to the Service Account in the Google Spread-sheet

Configuring the environment

Use virtualenv to configure the working environment:

]$ virtualenv -p /usr/bin/python3.10 venv
created virtual environment CPython3.10.12.final.0-64 in 1748ms
[..]

]$ source venv/bin/activate

Install the library gspread with pip3:

]$ pip3 install gspread
[..]

Avaliable clients

This GitHub repository includes clients to generate:

References

EGI services

okrs's People

Contributors

glarocca avatar

Stargazers

 avatar ilm avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.