My projects are hosted on GitHub. They are documented using Sphinx and the Alabaster theme. Reference documentation is generated from Python source code by autodoc, form C++ source code by Doxygen and Breathe, and from OCaml source code by a preliminary version of my Sphinx extension for OCaml
The main challenge is the size of the API: there are hundreds of endpoints, each with one to six HTTP verbs. PyGithub provides a specialized interface for each combination; this makes client code safe. Some other libraries let their user write the name of the endpoints: mistakes are only discovered when the HTTP request is sent. In PyGithub, if the method exists, then the endpoint exists.
Python C++ Library Program Visual
Its core functionality is written in C++ and exposed as a Python library using Boost.Python. Two-way integration between C++ and Python code allows a Python callback computing the colors to be called by the C++ code.
OCaml Visual Web Program
OCaml Visual Program Mobile
It’s written in OCaml. The same core code is used to produce several applications:
My infrastructure repository holds my… infrastructure, as code.
It uses Terraform to maintain my DNS records at Gandi, and point them at a Kubernetes+Helm cluster on Google Cloud Platform. (I left Amazon Web Services when I adopted Kubernetes because of the GKE pricing).
Private credential files are kept securely in the public git repository using git-crypt.
I use a single IP address for all my (sub-)domains and use HAProxy to dispatch requests accordingly.
To ensure that side-effects from an action don’t affect others, it uses Python’s multiprocessing module to launch each action in its own subprocess.
Its main added value is that decorated functions keep their signature, so tools doing introspection (Sphinx doc, IDEs, etc.) will work like there is no decorator.
The wrapper function is generated using Python’s ast module.
This avoids using
eval on generated code.
OCaml Web Library
Polyglot is a collection of examples of how to interface pieces of code written in different languages, and/or execute code in a runtime environment that’s not traditional for its language. Calling a C++ library from a Python program, or executing OCaml code in a web browser, are two examples amongst what Polyglot demonstrates.