kiteco-public/kite-python
2022-01-09 16:47:52 -08:00
..
analysis/conversion-model Contents — happy new year everyone 2021-12-31 23:54:19 -08:00
instrumental Contents — happy new year everyone 2021-12-31 23:54:19 -08:00
kite_common Contents — happy new year everyone 2021-12-31 23:54:19 -08:00
kite_emr Contents — happy new year everyone 2021-12-31 23:54:19 -08:00
kite_ml Contents — happy new year everyone 2021-12-31 23:54:19 -08:00
kite_pkgexploration Update README.md 2022-01-09 16:47:52 -08:00
metrics Contents — happy new year everyone 2021-12-31 23:54:19 -08:00
mockserver Contents — happy new year everyone 2021-12-31 23:54:19 -08:00
slackbuildbot Contents — happy new year everyone 2021-12-31 23:54:19 -08:00
testrail-reporter Contents — happy new year everyone 2021-12-31 23:54:19 -08:00
web/visualize_embedding Contents — happy new year everyone 2021-12-31 23:54:19 -08:00
__init__.py Contents — happy new year everyone 2021-12-31 23:54:19 -08:00
.gitignore Contents — happy new year everyone 2021-12-31 23:54:19 -08:00
README.md Contents — happy new year everyone 2021-12-31 23:54:19 -08:00
requirements.txt Contents — happy new year everyone 2021-12-31 23:54:19 -08:00
setup.cfg Contents — happy new year everyone 2021-12-31 23:54:19 -08:00

kite-python

kite-python contains the kite python module. Some aspects of our system are implemented in python. This is the central location for that code. Note that we use python3.4. To use the kite module:

  • Create a virtualenv
  • Install packages in requirements.txt via pip
  • Install kite
$ cd kite-python
$ virtualenv -p python3.4 env     # Create virtualenv
$ source env/bin/activate         # Activate virutalenv
$ pip install -r requirements.txt # Install third party dependencies in the virtualenv
$ ./setup.py install              # Install the kite module in the virtualenv (use setup.py develop for changes to take immediate effect) 

Note that the virtualenv command above should be run with the appropriate argument for -p. If you use macports, the python binary will be python3.4. Some systems may have it linked to python34, or even just python, in which case you don't need to pass in a -p parameter.

If you run into Unicode errors when running ./setup.py install, make sure you don't have non-Python source files in the bin folder. See https://docs.python.org/2/distutils/setupscript.html#installing-scripts.