  The cosmic-ray database, CRDB, has been gathering cosmic-ray data for the
community since 2013. We present a new release, CRDB v4.1, providing many new
quantities and data sets, with several improvements made on the code and web
interface, and with new visualisation tools. CRDB relies on the mysql database
management system, jquery and tsorter libraries for queries and sorting, and
PHP web pages and AJAX protocol for displays. A REST interface enables user
queries from command line or scripts. A new (pip-installable) CRDB python
library is developed and extensive jupyter notebook examples are provided. This
release contains cosmic-ray dipole anisotropy data, high-energy $\bar{p}/p$
upper limits, some unpublished LEE and AESOP lepton time series, many more
ultra-high energy data, and a few missing old data sets. It also includes
high-precision data from the last three years, in particular the hundreds of
thousands AMS-02 and PAMELA data time series (time-dependent plots are now
enabled). All these data are shown in a gallery of plots, which can be easily
reproduced from the public notebook examples. CRDB contains 316,126 data points
from 504 publications, in 4111 sub-experiments from 131 experiments.
