Skip to content

Releases: LabKey/labkey-api-python

2.1.0

12 May 17:31
9a4daf6
Compare
Choose a tag to compare
  • Add support for ontology based column filters ONTOLOGY_IN_SUBTREE and ONTOLOGY_NOT_IN_SUBTREE
  • ServerContext.make_request: payload is now optional
  • ServerContext.make_request: add json kwarg
    • This automatically does json_dumps and sets the content-type header for you
  • Add impersonate_user and stop_impersonating to security module (including APIWrapper)
  • Add more environment variables for integration test configuration
    • host, port, and context_path can now be overridden via env vars

2.0.1

01 Mar 23:34
88fbf3d
Compare
Choose a tag to compare

Fix Issue 42489

  • Updated Run.to_json() to drop unset values

2.0.0

22 Oct 15:30
8601e72
Compare
Choose a tag to compare

Add APIWrapper, remove Python 2 support

  • Add APIWrapper
    • This wraps all of the supported APIs so you don't need to pass around a server_context
  • Remove support for Python 2.x
  • container.create: rename folderType arg to folder_type, rename isWorkbook arg to is_workbook
  • 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
  • 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

1.4.1

08 Sep 18:10
11d143f
Compare
Choose a tag to compare
  • Add integration tests
  • NOTE: The next planned release will be 2.0.0 and is expected to drop support for Python 2.x, we plan to introduce
    code that will only be compatible with Python 3.6 and beyond. Python 2.x is no longer supported by the PSF as of
    January 1st, 2020.

1.4.0

17 Jun 20:09
99a0a01
Compare
Choose a tag to compare
  • Add ignore_filter arg to select_rows

1.3.0

27 May 19:46
2f7cddb
Compare
Choose a tag to compare
  • domain.create() now iterates through its conditional formats and converts instances or lists of QueryFilter to their string format.
  • domain.conditional_format() provides a wrapper for creating a conditional format--typically to be used in updating
  • Added examples for domain.create, domain.conditional_format, and updating QC state.

1.2.0

09 Sep 18:56
f9c65de
Compare
Choose a tag to compare
  • Added truncate_table function (#29)

1.1.0

07 May 20:20
d8a0159
Compare
Choose a tag to compare
  • Add isblank and isnonblank filter types (#23)
  • Fix issue with Query API overwriting query filters with the same field/comparison (#20)
  • Use pytest as the default test runner (#24)

Thanks to @AetherUnbound for these changes

1.0.1

02 Nov 16:01
Compare
Choose a tag to compare
  • Add __repr__ for ServerContext and QueryFilter. Thanks to @AetherUnbound for this contribution.

1.0.0

20 Sep 17:09
Compare
Choose a tag to compare
  • BREAKING CHANGE: in labkey.experiment ProtocolOutput has been renamed to RunItem
  • Provide a default encoder for json.dumps to better handle datetime (#14)