The Computational Crystallography Toolbox (cctbx) is a collection of reusable, open-source Python and C++ libraries. It has been developed to support applications for crystal structure determination and refinement. To maximize reusability, it is organized in hierarchical submodules (libtbx, scitbx, cctbx, mmtbx and a few smaller support modules).