Fake it until you make it
illusion
is a little tool that emulates Telepathy RESTful API
for developing clients and integration tests.
It also provides a convenient documentation of available backend endpoints.
# Install globally the command line utility
npm install -g an-illusion
# And check everything worked fine
illusion -h
illusion fakeit -h
illusion doc -h
You can either consult the API with illusion doc
or fire up a fake server :
$ illusion fakeit --datapoints 3,6,100 --metric portfolio:cash,daily_perf:returns --id someone
[18:45:42] illusion version 0.1.0
[18:45:42] Emulating Telepathy server on port 3333
From there most of telepathy endpoints are available
$ curl localhost:3333/v0/health
{
"states": {
"celery workers": "not implemented",
"telepathy": true
},
"versions": {
"celery": "3.1.14",
"insights": "0.3.2",
"intuition": "0.4.3",
"telepathy": "0.0.8"
}
}
The project follows some wide-accepted guidelines
Selfie | Name | |
---|---|---|
Xavier Bruhiere | @XavierBruhiere |
Copyright 2014 Xavier Bruhiere.
illusion
is available under the MIT Licence.