Skip to content

Releases: pomponchik/cantok

0.0.31

27 Aug 11:11
27a2c2d
Compare
Choose a tag to compare

A micro-change.

  • Now the method .wait() for any token will work correctly in REPL.

0.0.30

16 Aug 14:07
c87b700
Compare
Choose a tag to compare

Microscopic change.

  • Now the repr for ConditionToken works not only with ordinary functions, but also with objects that have the __call__ method.

0.0.29

08 Aug 22:34
a410e02
Compare
Choose a tag to compare

A small update, but recommended.

  • The operation of summing two timeout tokens is optimized. Now, in some cases, the token with an earlier expiration will remain alone.

0.0.28

06 Aug 22:34
ccd012e
Compare
Choose a tag to compare

A useful little update.

  • Text representations of various tokens are now shorter and more beautiful.
  • Added a new optimization: now, if possible, the token sum operation does not create an additional SimpleToken. Due to this, the token graph becomes smaller and all operations on it are faster.

0.0.27

06 Aug 12:25
86f330d
Compare
Choose a tag to compare

Purely stabilization update, the library's capabilities have not changed at all.

  • Added some new tests.
  • Improved code examples in the documentation: added output comments.

0.0.26

04 Aug 21:42
fcba83c
Compare
Choose a tag to compare

An important update dedicated to internal optimizations. The token interfaces have not changed in any way.

  • Each token now caches information that one of the tokens embedded in it has been canceled. When the token status is requested again, it will not bypass the graph, but will immediately return the result.
  • Added an optimization of the token summation operation: now, if you add a SimpleToken() object that has not been saved to any variable to any another token, this object will be ignored. Thus, the token tree becomes smaller. That is, the operation SimpleToken() + TimeoutToken(5) now gives the result SimpleToken(TimeoutToken(5)), not SimpleToken(SimpleToken(), TimeoutToken(5)) like before. In addition, this leads to the fact that the sums of more than 3 tokens become "flat".
  • Fixed a bug where you could set the cancelled attribute of a token whose nested token was canceled to False.
  • Added the __slots__ attribute to the cancellation report object. This allowed you to save an extra 8 bytes on each such object, provided that you have Python 3.10 or later.
  • Type hints slightly improved. The file structure of the project is now more extensive. The package metadata was slightly expanded.

0.0.25

24 Jul 08:53
f2f2c15
Compare
Choose a tag to compare

A little update.

  • Added a small optimization. Now, when adding and embedding tokens, DefaultToken's are ignored.
  • Added a test coverage gate - 100%.

0.0.24

22 Jul 12:27
5c01a6a
Compare
Choose a tag to compare

Technical release, library features have not changed.

  • Expanded the number of checks that occur in CI. Now linters are applied to tests as well.
  • Made some minor corrections (for example, removing unnecessary imports) to the tests.
  • Added issue templates.
  • Fixed a typo in the documentation.

0.0.23

15 Jul 20:13
108b08c
Compare
Choose a tag to compare

A small but important update.

  • Added a new type of tokens - DefaultToken.
  • Expanded the documentation.

0.0.22

23 Feb 21:35
7c86ee3
Compare
Choose a tag to compare

A small update with no changes in functionality.

  • The links in the documentation have been corrected.
  • A new section dedicated to the ecosystem has been added to the documentation. The first representative of the ecosystem mentioned there is suby.