How SLAP works
SLAP uses a configuration file, created either by the user or the SLAP init command, along with source MXD files to publish map services to an ArcGIS Server instance. The configuration file lines out the services to be published, it can utilize virtually any service parameter in the REST API, and it can replace workspace paths in the input service MXDs. This makes SLAP ideal for deploying the same set of services to any number of environments (development, testing, and production, for example).
Although it is designed to be utilized as a command-line program, SLAP is written in Python, so it is possible to import SLAP into your own Python programs for further integration.
You are encouraged to look at the SLAP examples (https://github.com/lobsteropteryx/slap/tree/master/docs ...