def add_artifact(self, collections, choice=0, lock=0, fake=Faker()): artifact = Artifact(self, collections, choice=choice, lock=lock, fake=Faker()) r = requests.post("http://127.0.0.1:5300/request/add-artifact", json=artifact.__dict__()) print(r.text)