Here is a short script that allows users to generate ESP charges for Periodic systems.
It removes the periodicity of a crystal to create a molecule. It then performs a DMol calculations and assigns the ESP charges to the molecule. Once this is done, it rebuilds the periodicity.
Note: The script is unlikely to work for inorganic systems.
Best wishes,
Shyam