This serves as an example to implement Randomized Counter-Abuse Token protocol in Python. You can find more details in the RCAT explainer.
The codebase assumes Python 3.10+.
- Follow the steps to install Bazel.
You will need to clone the code locally in order to build or test it.
$ git clone https://github.com/youtube/rcat
$ cd rcat/pythonYou can build the project using the following command:
rcat/python$ bazel build rcat:rcat_serverNote that this command does not produce a library or other artifact, it is only for ensuring the project compiles in your environment.
You can run all tests with the following command:
rcat/python$ bazel test rcat:*