Skip to content

Releases: pomponchik/cantok

0.0.11

19 Dec 23:58
53ccb1c
Compare
Choose a tag to compare

Not a very big update, but an extremely important one.

  • Fixed a problem with distribution using the pyproject.toml file. Now the package you are installing contains everything you need. I'm sorry for this mistake earlier.
  • The wait() method has both synchronous and asynchronous versions.

0.0.10

23 Nov 17:00
121cb5e
Compare
Choose a tag to compare

Microscopic update.

  • Added messages for several exceptions.

0.0.9

23 Nov 16:29
6f02ec4
Compare
Choose a tag to compare

A small but important update for those who love asynchronous programming!

  • Added the wait() method, which transfers control until the token is canceled.

0.0.8

26 Oct 22:46
c94a81f
Compare
Choose a tag to compare

Big technical update!

  • Instead of setup.py, now pyproject.toml.
  • Python 3.12 support.
  • New documentation, now on a separate site.
  • New package build system.

0.0.6

08 Oct 22:52
1488db5
Compare
Choose a tag to compare

Optional minor update.

  • Added type hints. Strict mode is enabled for mypy.
  • Simplified the sample code in the documentation.
  • Added some tests.
  • The logo has been slightly changed.

0.0.5

02 Oct 16:18
86598f7
Compare
Choose a tag to compare

Important update!

  • More compact output when using the repr function in relation to tokens.
  • Added the ability to cast to the bool type. The result of bool(token) is equivalent to token.keep_on(). This allows you to make the code of cycles and conditions using tokens more compact and more beautiful.
  • The counter inside the CounterToken continues to decrease even if it was canceled by calling the cancel() method or the cancellation status was inherited from another token that was canceled. This is important because it depends on which exception will be raised when using the check() method.
  • The code has become simpler in places, and new test cases for old functionality have also been added.

0.0.4

29 Sep 13:09
ff5bde3
Compare
Choose a tag to compare

Important update!

  • There is a new method - check(), which raises an exception if the token is canceled.
  • Several exceptions have been added, one for each token class separately.
  • An internal reporting mechanism has been added to find out which of the tokens in the hierarchy has been canceled.

0.0.3

25 Sep 07:57
c47a1e1
Compare
Choose a tag to compare

Minor edits in the documentation.

0.0.2

23 Sep 01:20
a2311ed
Compare
Choose a tag to compare

Minor correction of documentation.

0.0.1

23 Sep 00:35
e874b16
Compare
Choose a tag to compare

The first version of the library. Includes AbstractToken and 4 derived tokens: SimpleToken, ConditionToken, TimeoutToken and CounterToken.