frappex-client v0.1.1

Reference

Compatibility#

Supported versions#

Component Supported How it is checked
Python 3.10, 3.11, 3.12, 3.13, 3.14 Full test suite on every change
Frappe / ERPNext 14, 15, 16 Integration suite against a fresh site of each version, on every change and weekly
httpx 0.27 and newer, below 1.0 Tests run against both the newest and the oldest supported version

Routes used#

frappex-client uses the long-standing REST routes every supported version serves:

Route Used for
/api/resource/{doctype} get_list, iter_list, insert
/api/resource/{doctype}/{name} get_doc, update, delete, submit
/api/method/{dotted.path} call, ping, get_count, get_value, set_value, cancel, rename, upload_file, login and logout
/files/..., /private/files/... download, download_to

The newer /api/v2 routes are not used yet.

Differences between Frappe versions#

frappex-client smooths over the differences it knows about:

Difference Effect in frappex-client
Frappe 14 does not always send exc_type in error replies error.exc_type can be None on 14; the exception class is still correct
Error message markup changed between versions server_messages passes the text through as the site sent it
Some methods are not open to guests on newer versions Raises PermissionDeniedError or AuthenticationError

Development servers#

bench start / bench serve answers HTTP 500 for a missing static file, where a production site behind nginx answers 404. A download of a missing file therefore raises ServerError on a development server and NotFoundError in production.

Versioning policy#

frappex-client follows Semantic Versioning. Before 1.0, minor releases (0.x) may contain breaking changes; each is listed in the changelog. Patch releases only fix bugs. Pin a version range in your project:

frappex-client>=0.1,<0.2

Found a mistake? Open an issue.