frappe-client icon indicating copy to clipboard operation
frappe-client copied to clipboard

Python library to use Frappe API

Results 27 frappe-client issues
Sort by recently updated
recently updated
newest added

Since maybe an update on a private site, I get this when trying to login with user and password (which works on the web login): ```py File "export_timesheets.py", line 90,...

Hi, I'm trying to update a doctype value via the FrappeClient Python API. Getting a value works fine. However, when I try to update a value I get an error....

`insert_many` method calls `frappe.as_json`, which in essence is ([source](https://github.com/frappe/frappe/blob/develop/frappe/__init__.py#L1390)): ``` json.dumps(obj, indent=indent, sort_keys=True, default=json_handler, separators=(',', ': ')) ``` I guess entire `frappe` package shouldn't be a dependence on such a...

default value `fields="*"` will cause error: `File "/usr/lib/python3.8/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)`

According to #41, here is a simple modification to avoid such unexpected behaviors. for methods: - `get_api` - `post_api`

Hi, two methods of the `FrappeClient` class use `{}` as a default value for its parameters `params`. This practice may cause some unexpected behaviors in some contexts. This problem arises...

- [ ] Make this package installable via `pip install frappe-client`. Although this can be currently used by `git+https://github.com/frappe/frappe-client#egg=frappeclient` and versioning on the basis of commit hashes, nothing beats a...

- add `print_on_error` argument to `FrappeClient` class to suppress potentially unwanted stdout prints. - raise `AuthError` exception for any 401 response (for example when using token-based authentication). - add authentication...

In my setup two bugs were discovered in token-based authentication scenario: - `b64encode` was causing some problems. I changed the request according to official documentation, which didn't require "Basic" authentication...