Tags: LabKey/labkey-api-python
Tags
Add impersonation APIs, add json kwarg to make_request (#46) - ServerContext.make_request: payload is now optional - Updated usages that passed None to pass nothing - ServerContext.make_request: add json kwarg - This automatically does json_dumps and sets the content-type header for you - Updated usages of make_request to use the json kwarg where applicable - Add impersonate_user and stop_impersonating to security module (including APIWrapper) - Fix imports for mock in unit tests - Remove unused test_utils file. - Add more environment variables for integration test configuration - host, port, context_path can all be overridden via env vars
Add APIWrapper, Remove Python 2 Support (#42) - container.create: rename folderType arg to folder_type, rename isWorkbook arg to is_workbook - Remove support for Python 2.x - Add Type annotations - We don't have 100% of our API methods typed yet, but we are getting there - Format code with Black (a static code formatter) - remove build_url helper - it was just a single line wrapper around server_context - remove create_server_context - It was just a wrapper around ServerContext, you can replace all usages of create_server_context with ServerContext - Add APIWrapper - This wraps all of the supported APIs so you don't need to pass around a server_context - Removed various "from_data" methods - They were all simple one line wrappers around Class constructors that were not needed if you were using any you may update your code e.g. "SomeClass.from_data(data)" can be changed to "SomeClass(**data)" - Remove unsupported modules - Update example code