##Simple command line server/client application

###Server is listening for following commands:

  • create $regexp_name $regexp_value
  • activate [$regexp_name]
  • rm $name
  • ls
  • run $cmd
  • quit
  • yes
  • no

###Server can be configured with following parameters:

  • server address: --server
  • server port: --port
  • max number of connected clients: --max
  • file for saving created expressions: --file
  • regular expression [multiple parameter]: --re

Other parameters are assumed as configuration files

###In configuration files can be 2 sections:

  • [conf] - for configuration
  • [re] - for prepared regular expressions

###Stored regular expression are stored in files with section:

  • [expressions]

###How to run:

  • Download this repo
  • python setup.py install
  • python -m regexp_server --port 8765 --re "re_name .[r]." --file ./data/expressions.ini ./data/conf_1.ini ./data/conf_2.ini
  • telnet 127.0.0.1 8765