title: Python Update Inventory in Shopify by variant SKU
body: <p>I am trying to update shopify variant's inventory quantity by SKU,
  but i am not getting how to do it by there dev docs,</p>
  
  <p>here is what i've done,</p>
  
  <p>i installed <a href="https://github.com/Shopify/shopify_python_api" rel="nofollow noreferrer">https://github.com/Shopify/shopify_python_api</a> and written below code, and the code is working fine, but not sure how to get variant by sku and update its available quantity on shopify.</p>
  
  <pre><code>shop_url = "https://%s:%s@abc.myshopify.com/admin/api/%s" % (API_KEY, PASSWORD, API_VERSION)
  shopify.ShopifyResource.set_site(shop_url)
  shop = shopify.Shop.current()
  product = shopify.Product.find(4398162804809)
  print(product)
  </code></pre>