A city shall have the right to control and direct all work upon the public streets. The city may adopt any and all reasonable regulations relating to excavations in the streets or public grounds by any and all parties, including waterworks, gas, and other franchised corporations or public contractors, enforce such regulations, and impose penalties for the violation of such regulations as may be deemed proper.

Source