Skip to content

Conversation

labkey-alan
Copy link
Contributor

@labkey-alan labkey-alan commented Oct 7, 2020

Rationale

Python 2 is no longer supported, and has not been supported since January 2020

Related Pull Requests

  • n/a

Changes

  • 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)
    • This is why the diff is so big. I am sorry, but it was necessary.
  • 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

@labkey-alan labkey-alan self-assigned this Oct 7, 2020
- Simplify some logic in conditional_format
- Improve type annotation for query_filter param
- Improve error message
- Use f-strings
@labkey-alan labkey-alan merged commit 8601e72 into main Oct 22, 2020
@labkey-alan labkey-alan deleted the fb_py3 branch October 22, 2020 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants