Copyright Shawn Tolidano, All Rights Reserved.
Say something.
- Say something
Say something
If you just want to jump in and use it, follow this simple set of steps:
- API Key and Secret
In code, if you've followed the above, you would do the following:
from __future__ import print_function
WRITE_CODE
If you are interested in doing development on Cryptolio, you need the following packages:
- python (sudo yum install python27, sudo apt-get install python)
- python development (sudo yum install python27-devel, sudo apt-get install python-devel)
- pip (sudo yum install python27-pip, sudo apt-get install python-pip)
- virtualenv (sudo pip install virtualenv)
- make (sudo yum install make, sudo apt-get install make)
You run:
- make venv (create a virtualenv)
- `make active` (activate the virtualenv, the backticks are important)
- make dev (setuptools for development)
Now you’re ready to develop.
Be sure to:
- Keep code coverage over 90%
- Write relevant unit tests
- Write Python doc strings
- Regenerate coverage and docs (make covhtml and make docs)
Say something.
If you want to cache values, consider also adding: pylru Then you can write a function in your codebase like:
import pylru
@lrudecorator(100)
def get_from_countdown(line, station):
return COUNTDOWN.get(line, station)
To build the documentation from the python docstrings, run:
make docs
And you can browse those here: <CRYPTOLIO>/docs/html/index.html
All tests are in the cryptolio/test/ directory. To run them do the following:
make test
You can also generate a coverage report:
make cov
You can generate the HTML version:
make covhtml
You can browse this locally from: <CRYPTOLIO>/docs/cov/index.html