  The fractal dimension of a surface allows its degree of roughness to be
characterised quantitatively. However, limited effort has been attempted to
compute the fractal dimension of surfaces computed from precisely known atomic
coordinates from computational biomolecular and nanomaterial studies. This work
proposes methods to estimate the fractal dimension of the surface of any
three-dimensional object composed of spheres, by representing it as either a
voxelised point cloud or a mathematically exact surface, and computing its
box-counting dimension. Sphractal is published as a Python package that
provides these functionalities, and its utility is demonstrated on a set of
simulated palladium nanoparticle data.
