title: How to Start and Stop Appium Server programmatically using Python
body: <p>I am a newbie to Python and have created simple Appium Automation Test case for Android mobile app.</p>
  
  <p>I have setup Jenkins server and want to run Appium on it so there are 2 ways:</p>
  
  <ol>
  <li>Run appium server via Jenkins (We can run it using <code>appium</code> command but when I run appium command it just "hangs up" and showing server console continiously)</li>
  <li>Start Appium Server programmatically using Python</li>
  </ol>
  
  <p>I know we can <a href="https://github.com/appium/appium-dotnet-driver/wiki/How-to-start-an-AppiumDriver-locally" rel="nofollow noreferrer">run Appium Server programmatically using Java</a> but don't know about python.</p>
  
  <p>So, if you have any idea about either of above 2 ways, please post the answer.</p>
  
  <p>Thank you</p>