Izalia Mae
ad2456b765
also accept floats in HttpDate.parse
2024-03-27 20:35:03 -04:00
Izalia Mae
d75dabe872
HttpDate and Signature changes
...
* Accept `int` and `float` values in `HttpDate.parse`
* Add `created_date` and `expires_date` properties
2024-03-27 20:31:48 -04:00
Izalia Mae
fa80f68d47
fix dependencies in pyproject
2024-03-27 12:54:20 -04:00
Izalia Mae
f015aa88a3
fix KeyError when getting digest from headers
2024-03-27 11:59:38 -04:00
Izalia Mae
d4da465c31
add documentation for algorithm classes and methods
2024-03-27 11:49:06 -04:00
Izalia Mae
b23c854d2d
fix signature validation
2024-03-27 10:53:16 -04:00
Izalia Mae
1dacb6cce4
fix linting issues
2024-03-27 10:52:41 -04:00
Izalia Mae
574db4b7f6
ensure all required headers exist when validating
2024-03-27 10:52:05 -04:00
Izalia Mae
2474e75187
add pypi badges to readme
2024-03-27 07:52:12 -04:00
Izalia Mae
ac8b3d07f9
remove debug print
2024-03-27 07:27:18 -04:00
Izalia Mae
36147cccb5
multiple signer changes
...
* fix several issues with signing and verifying
* rename `AlgorithmType.ORIGINAL` to `AlgorithmType.RSASHA256`
* deprecate `Digest.new_from_digest` and add `Digest.parse` class method
* swap position of `algorithm` and `sign_all` in `Signer.sign_headers`
2024-03-27 07:20:04 -04:00
Izalia Mae
98bcdb73eb
deprecate Signature.algorithm_type
2024-03-27 05:49:52 -04:00
Izalia Mae
58ef6d36a4
rework signer for future algorithm support
2024-03-27 05:37:27 -04:00
Izalia Mae
13e25959fa
fix tests involving HttpDate
2024-03-21 23:13:29 -04:00
Izalia Mae
cea5563e79
version bump to 0.1.9
2024-03-21 23:04:17 -04:00
Izalia Mae
2db89998c8
replace typing.Self for python < 3.11 support
2024-03-21 23:03:16 -04:00
Izalia Mae
8d7dfb7e1b
fix HttpDate, create MessageDate, and fix typing for Message
2024-03-21 21:05:50 -04:00
Izalia Mae
e10d8821dd
don't try to deserialize value if there is no associated property
2024-03-21 20:19:30 -04:00
Izalia Mae
43ccab67c6
pass through value if it is a string when setting message value
2024-03-21 20:16:01 -04:00
Izalia Mae
e6e7391de1
add a few tests for Message class
2024-03-21 19:02:02 -04:00
Izalia Mae
23c4b46ea9
fix some issues
2024-03-21 19:01:00 -04:00
Izalia Mae
64278d89f0
improve message value (de)serialization
2024-03-21 17:53:04 -04:00
Izalia Mae
b5f224daf3
update docs
2024-03-21 08:18:42 -04:00
Izalia Mae
ae45408b12
document Property class and add add_type method
2024-03-21 08:15:03 -04:00
Izalia Mae
3a83349a9e
version bump to 0.1.8
2024-03-21 08:02:57 -04:00
Izalia Mae
5a41607f61
Message changes
...
* replace datetime with HttpDate
* add dict type to (de)serializers
* add new properties: content_map, created
* fix context creation
2024-03-21 07:59:49 -04:00
Izalia Mae
eeafbfe904
add test dev command
2024-03-21 07:54:56 -04:00
Izalia Mae
6113050962
add dev script
2024-03-21 05:59:25 -04:00
Izalia Mae
b26803a005
add flake8 config
2024-03-21 05:53:28 -04:00
Izalia Mae
4257958b2d
rename package and fix optional dependencies
2024-03-21 05:44:15 -04:00
Izalia Mae
931e10ae53
convert setup.cfg to pyproject.toml
2024-03-21 05:20:47 -04:00
Izalia Mae
cb85d10ea1
replace pylint with mypy and flake8
2024-03-16 04:17:12 -04:00
Izalia Mae
3ab001f425
version bump
2024-02-23 20:26:08 -05:00
Izalia Mae
d5541244b6
add css overrides for docs
2024-01-27 11:23:56 -05:00
Izalia Mae
7e31b12085
update docs
2024-01-27 00:15:44 -05:00
Izalia Mae
d0315a42e2
allow sphinx to link to types
2024-01-26 18:04:22 -05:00
Izalia Mae
af2af2bd3c
update doc deps
2024-01-26 18:01:34 -05:00
Izalia Mae
1c4859dc6f
remove flake8 and add extensions to pylint
2024-01-26 17:59:24 -05:00
Izalia Mae
20e7b7004b
remove lazy import
2024-01-26 07:53:20 -05:00
Izalia Mae
d692c301aa
Message.object_id: make sure AttributeError is raised instead of KeyError
2024-01-22 01:40:54 -05:00
Izalia Mae
3d3c332872
properly check key type in Signer.__repr__
2024-01-22 01:23:50 -05:00
Izalia Mae
81054490f0
version bump
2024-01-05 15:03:38 -05:00
Izalia Mae
84546757b6
add tests for Digest class
2024-01-05 15:00:13 -05:00
Izalia Mae
b37aa61c55
Digest: fix validation and add '==' operator support
2024-01-05 14:53:51 -05:00
Izalia Mae
0071c31642
version bump to 0.1.6
2024-01-04 10:21:57 -05:00
Izalia Mae
03019d8c64
document ActorMixin class
2024-01-04 10:20:42 -05:00
Izalia Mae
afd13393ca
add deprecation warning to JsonBase.new_from_json
2023-12-29 13:09:56 -05:00
Izalia Mae
0e2a816cb9
move message types to separate file
2023-12-24 16:42:14 -05:00
Izalia Mae
d70845e210
re-add new_from_json method for backwards compat
2023-12-24 16:31:26 -05:00
Izalia Mae
9ee3444deb
Create BaseJson class
2023-12-24 11:22:18 -05:00