Releases: davidhamann/python-fmrest
v1.8.0
What's Changed
- Fix/empty content header by @DanyGoT in #83
- Enable dateformats in "create_record()" and "edit_record()". by @DonPasquale in #84
New Contributors
Full Changelog: v1.7.5...v1.8.0
v1.7.5
Support for Python 3.12 (removing pkg_resources)
Full Changelog: v1.7.4...v1.7.5
Allow http for local connections
Full Changelog: v1.7.3...v1.7.4
v1.7.3
Added option to pass (HTTP) timeout (in seconds) to Server instance. This takes precedence over the now legacy fmrest_timeout environment variable. When not passed, the behavior is as before (env var, if set, otherwise default 10 seconds from const).
v1.7.2
When FMS' web server responds with a Bad Gateway error (for example when the Data API is not enabled) fmrest now throws a custom exception to be able to easier catch this situation.
Additionally, when using the context manager, the __exit__ will from now on only perform a logout when a token exists (as a logout would always fail when no token is available).
Bugfixes
What's Changed
- Fix: Empty display values now default to an empty string in
get_value_list_values, submitted by @LeJeko in #64
Full Changelog: v1.7.0...v1.7.1
v1.7.0
What's Changed
Support for setting custom request layouts
The Server's methods can now take a request_layout argument, where applicable. This layout take precedence over the current Server.layout attribute and is helpful if you want to have a shared Server instance in a multi-threaded app and make sure to have the right layout set before making a request.
Example (using my_custom_layout to get records, even though my_default_layout is set on the Server instance):
>>> print(fms.layout)
my_default_layout
>>> fms.get_records(request_layout='my_custom_layout')
Some methods already had a layout parameter. This parameter is still there and works as before but now throws a deprecation warning. Please use response_layout instead of layout from now on. It has the same effect and is easier to distinguish and more clear to understand.
Proxy support for Cloud Server and Cognito auth
- Configure proxies for auth requests made to Cognito
- Configure proxies for FileMaker Cloud Data API
Note: when configuring a proxy and you're not just using it for local debugging (e.g. a local interception proxy), always make sure you trust the proxy server and use a secure connection.
Thanks @TDKorn for the PR!
Proxy support, metadata routes and configurable API version
- Proxy support
- Added examples
- Configurable API versions
- Support for metadata routes
Thanks to contributor @DonPasquale