from woocommerce import API
import json
wcapi = API(
url=u"https://streetclimate.ru",
consumer_key="ck_",
consumer_secret="cs_",
wp_api=True,
version="wc/v2",
query_string_auth=True # Force Basic Authentication as query string true and using under HTTPS
)
def read_test(id):
r = wcapi.get(f"products/{id}").json()
print(r, '\n')