Every pymol installation includes a directory “pymol/examples” (or “PyMOL\examples” on Windows) with some example scripts. Subdirectories:
chempy: Python scripts (*.py) with ChemPy examples
cookbook: PyMOL scripts (*.pml)
devel: Python scripts for CGO creating, wizards, callbacks, pymol commands, properties, etc. Many of those scripts are experimental or proof-of-concept.
devel/pymol_server_gui: The PyMOL Server GUI plugin
launching: Launch PyMOL from a script (see also PyMOLWiki)