Python library to use Frappe API

I wish to use Frappe API’s capability, in standard python file, I have used various combinations, but could not manage to read through the Doctypes.

I am just able to get HTTP Response 200 from the below code

r = requests.post(‘http://myurl/api/method/login’, data = {‘usr’:‘administrator’, ‘pwd’:‘134’})

after that i am trying to perform other operations which leads me to HTTP Response 403, please guide me on this.

BR,
Bharat

Check this GitHub - frappe/frappe-client: Python library to use Frappe API

1 Like

Do we have to install some python package to use this lib ?

Hi Rushabh,

Got that!

Thanks for the help.