Datetoken

Latest version: v0.6.0

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

Scan your dependencies

Page 2 of 2

0.3.1

- Fixed `token_to_utc_date` not reading `token` keyword argument

0.3.0

- Refactored testing suite to replace `mock` with
`freezegun` as it is more convenient to work
with dates.
- Added features:
+ Support for setting time zones so as to
localize the `now`'s value prior to apply
token modifiers.
+ `token_to_utc_date` to evaluate a token and
get back the result in UTC
+ `eval_datetoken`: Evaluate a token and more
arguments to later return and `datetoken.objects:Token`
+ `datetoken.evaluator.Datetoken`: Helper to configure
tokens. Supports fluent programming
- Dropped features:
+ `datetoken.models:Token.from_string` in favor of
`datetoken.evaluator.eval_datetoken`

0.2.0

- Added features:
+ Chainable modifiers after snap modifiers
+ Partial Pratt parser
- Dropped features:
+ `complex_token_to_date` util
+ `simple_token_to_date` util
+ `SimpleToken` model
+ `ComplexToken` model

0.1.2

- Limit dateutil dependency versions

0.1.1

- Hello world!

Page 2 of 2

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.