Thriftrw

Latest version: v1.9.0

Safety actively analyzes 629004 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 12 of 14

1.2.0

------------------

- Serialization and deserialization to and from binary is now almost twice as
fast.

1.1.0

------------------

- Expose ``result_type`` on the args type for service functions.
- Expose ``service`` on function spec.
- Expose the contents of the Thrift file on compiled modules under the
``__thrift_source__`` attribute.
- Expose a reference back to the module on generated types as
``__thrift_module__``.
- Don't fail compilation if fields in unions specify themselves as
``optional``.
- Added ``i8`` as an alias for ``byte`` in Thrift files.
- Allow multiple enum items to have the same value.
- Fixed a bug where the line number of constant lists and maps was incorrect in
the AST.

1.0.1

------------------

- Fixed bug where type annotations without values weren't supported by the
grammar.

1.0.0

------------------

- ``include`` statements are now supported. For more information, see
:ref:`including-modules`.
- Added support for message envelopes. This makes it possible to talk with
standard Apache Thrift services and clients. For more information, see
:ref:`calling-apache-thrift`.
- Constant and default values may now be structs or unions, represented in the
Thrift file as maps with string keys.
- Significant performance improvements to the ``BinaryProtocol``
implementation.
- Removed ``thriftrw.wire.TType`` in favor of the ``thriftrw.wire.ttype``
module.
- ``MapValue`` now contains ``MapItem`` objects instead of key-value tuple
pairs.
- Request and response ``TypeSpecs`` now have a reference back to the
``FunctionSpec``.
- ``ServiceSpec`` now provides a ``lookup`` method to look up ``FunctionSpecs``
by name.
- Removed the ``force`` option on ``Loader.load``.
- In generated modules, renamed the ``types``, ``constants`` and ``services``
attributes to ``__types__``, ``__constants__``, and ``__services__``.

0.5.2

------------------

- Fixed a bug which prevented default values for enums from being plain
integers.

0.5.1

------------------

- Fix a bug in the parser that prevented starting identifier names with
``true`` or ``false``.
- Allow passing 0 and 1 as default values for ``bool``. These will
automatically be cast to boolean.

Page 12 of 14

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.