AuthEceSoftEng / agora-elasticsearch-client

Elasticsearch client of AGORA

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AGORA Client

This is the repository of the AGORA Elasticsearch client. The dependencies required for this python application website can be installed using pip, issuing the command:

pip install -r requirements.txt
To execute the script you must first set the options in file agora.properties. The structure of the file is the following:

[AGORAProperties]

# ASTParser path
ASTParserPath = (path to agora-ast-parser.jar)

# Git system command
gitcommand = (path to git executable)

# GitHub credentials
GitHubUsername = (username of GitHub account)
GitHubPassword = (password of GitHub account)

# AGORA credentials
AGORAUsername = (username of AGORA admin account)
AGORAPassword = (password of AGORA admin account)

# Index options
indexname = agora
host = localhost
port = 9200
sourcecodedir = (location where the cloned code will be stored)
backupdir = (location where the backup of AGORA will be stored)

After setting the properties file, you can execute the script. The provided functionalities are selected using command line arguments. The arguments must be one of the following:

  • create_index: creates the index and the mappings
  • add_project name: adds or updates a project given its github url
  • add_projects file: adds or updates projects given a list of github urls (in a txt file)
  • flush_index: flushes the index
  • delete_project name: deletes a project given its github url
  • delete_projects file: deletes projects given a list of github urls (in a txt file)
  • delete_index: deletes the index and the mappings

About

Elasticsearch client of AGORA

License:Other


Languages

Language:Python 100.0%