Skip to content

Releases: FirebirdSQL/python3-base

v1.8.0

03 May 15:02
Compare
Choose a tag to compare

Added

  • New EnvExtendedInterpolation class in config module that extends configparser.ExtendedInterpolation
    with special handling for "env" section that returns value of specified environment
    variable, or empty string if such variable is not defined.

v1.7.2

20 Feb 14:09
Compare
Choose a tag to compare

Fixed

  • Error.getattr() should not mask the absence of __notes__ attribute.

v1.7.1

08 Oct 13:47
Compare
Choose a tag to compare

Fixed

  • Log record values module and filename were not assigned properly under Python 3.11
  • Failed tests due to subtle changes in Python 3.11

Changed

  • Downgrade dependency to protobuf>=4.23.4

v1.7.0

03 Oct 14:27
Compare
Choose a tag to compare

Added

  • .pyi file for config protobuf
  • Stub pytest test

Changed

  • Update dependency to protobuf >=4.24.3
  • Build system changed from setuptools to hatch
  • Package version is now defined in firebird.base.__about__.py (__version__)

v1.6.1

03 Mar 16:27
Compare
Choose a tag to compare
  • firebird.base.config module:

    • Fixed bug with Config.get_config() and plain bool argument.
    • StrOption now supports preservation of significant leading whitespace for multiline
      values (like PyCodeOption).

v1.6.0

15 Feb 16:47
Compare
Choose a tag to compare
  • protobuf module:

    Registration of already registered protobuf registration is now ignored instead raising exception.

  • config module:

    Config.get_config() and Option.get_config() now provides plain bool argument to return configuration text without comments. Deafult is False.

  • trace module:

    Fixed bug in TraceManager.load_config().

Release 1.4.3

27 Oct 12:16
Compare
Choose a tag to compare
  • firebird.base.types module:

    • Added internal functions _decompose and _power_of_two from stdlib enum module,
      because they were removed in Python 3.11.
  • firebird.base.protobuf module:

    • Use importlib.metadata.entry_points instead pkg_resources.iter_entry_points.
  • Improved documentation.

Release 1.4.2

05 Oct 16:56
Compare
Choose a tag to compare

For details about changes see the changelog.

Release 1.4.1

28 Sep 11:29
Compare
Choose a tag to compare

For details about changes see the changelog.

Release 1.1.0

01 Dec 16:07
Compare
Choose a tag to compare
  • New module: signal - Callback system based on Signals and Slots, and "Delphi events"

  • firebird.base.config module:

    • New class ApplicationDirectoryScheme
    • Config.load_config(): raises error when section is missing, better error handling when exception is raised while loading options
    • PyCallableOption signature argument could be inspect.Signature or Callable
    • Introduced .PROTO_CONFIG constant with fully qualified name for ConfigProto protobuf
    • Optional argument to_default in Option.clear() is now keyword-only.
  • firebird.base.logging module:

    • get_logging_id() uses 'qualname' instead 'name'
  • firebird.base.protobuf module:

    • Added direct support for key well-known data types Empty, Any, Duration, Timestamp, Struct, Value, ListValue and FieldMask. They are automatically registered. New constants PROTO_ with fully qualified names.
    • create_message() has new optional serialized argument with bytes that should be parsed into newly created message instance.
    • New functions struct2dict() and dict2struct()
  • firebird.base.trace module:

    • TraceFlag value DISABLED was renamed to NONE.

    • Added support for trace configuration based on firebird.base.config, using new classes BaseTraceConfig, TracedMethodConfig, TracedClassConfig and TraceConfig.

    • New methods in TraceManager:

      • load_config() to update trace from configuration.
      • set_flag() and clear_flag().
  • firebird.base.types module:

    • MIME now handles access to properties more efficiently and faster.
    • New function load().
  • Changes in documentation.