• 0.2.3 0cfe0178e9

    0.2.3 Stable

    izaliamae released this 2024-04-08 15:22:39 -04:00 | 9 commits to main since this release

    Fixes

    • bbde579e7c Minor Message changes
      • ensure datetime objects are MessageDate objects
      • create actor_id property to get the actor id from an object
    • 49a413548d Properly process created and expires headers when validating hs2019 signatures
    • 0cfe0178e9 Make outbox in Message.new_actor actually optional

    Changes

    • 25b0bc9852 Add home page to server
    • f80ae87c44 Allow HttpDate.parse to take a datetime object and deprecate new_from_datetime
    Downloads
  • 0.2.2 f3fae43715

    0.2.2 Stable

    izaliamae released this 2024-04-03 13:56:04 -04:00 | 18 commits to main since this release

    Fixed a nasty bug and added a signature validation server

    Fixes

    • 85847772e0 Fix verifying HS2019 signatures
      • Make sure expires and created are older than the current date

    Changes

    • Signature authentication server
      • 192313ac71 Add ability to run web server for signature verification
      • 0c44cc7344 Various changes
        • show message on startup
        • add help to argparser options
        • make hostname optional
        • set hostname to addr if not specified
        • make sure hostname is not 0.0.0.0
      • 122d77ae45 Print message when creating key
      • 15091fecee Handle webfinger and add option to not include date in access log
      • be066dd510 Flush all print calls
      • f3fae43715 Expand actor bio

    Non-source changes

    Downloads
  • 0.2.1 4ed9f92a57

    0.2.1 Stable

    izaliamae released this 2024-03-31 11:38:37 -04:00 | 30 commits to main since this release

    Fixes

    Changes

    • d75dabe872 HttpDate and Signature improvements
      • Accept unix timestamps in HttpDate.parse
      • Create Signature.created_date and Signature.expires_date properties
    • ad2456b765 Also accept floats in HttpDate.parse
    • bdcd04a994 Ensure signature isn't expired
    • f2beccc4f4 Add Signer methods for signing and verifying requests

    Non-source Changes

    • 7f64cc140b Add note about non-compliance with signing standard
    • 171814bb15 Add note about changing property types in Signature
    • 4ed9f92a57 Add documentation for request classes
    Downloads
  • 0.2.0 f015aa88a3

    0.2.0 Stable

    izaliamae released this 2024-03-27 12:00:59 -04:00 | 40 commits to main since this release

    Major rework of the Signer class. Future signing algorithms will be added via Algorithm classes. Currently relies on AlgorithmType, so not expandable at the moment.

    Changes

    • 58ef6d36a4 Rework Signer for future algorithm support
    • 98bcdb73eb Deprecate Signature.algorithm_type
    • 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
    • 574db4b7f6 Ensure all required headers exist when validating
    • 1dacb6cce4 Fix linting issues with JsonBase
    • b23c854d2d Fix signature validation
    • f015aa88a3 Fix KeyError when getting digest from headers

    Non-source Changes

    • 2474e75187 Add PyPi badges to readme
    • d4da465c31 Add documentation for algorithm classes and methods
    Downloads
  • 0.1.9a 13e25959fa

    0.1.9 Stable

    izaliamae released this 2024-03-27 10:46:38 -04:00 | 50 commits to main since this release

    Quick bug fix release

    Note: The tag is 0.1.9a because 0.1.9 apparently exists

    Fixes

    • 43ccab67c6 Pass through value if it is a string when setting a value in Message
    • e10d8821dd Don't try to deserialize a value if there is not associated Property
    • 8d7dfb7e1b Fix HttpDate, create MessageDate, and fix typing for Message
    • 2db89998c8 Replace typing.Self to support type checking on python <3.11
    • 13e25959fa Fix tests involving HttpDate
    Downloads
  • 0.1.8 e6e7391de1

    0.1.8 Stable

    izaliamae released this 2024-03-21 19:03:49 -04:00 | 56 commits to main since this release

    Mostly bug fixes and documentation/packaging changes

    Changes

    • cb85d10ea1 Replace pylint with mypy and flake8
      • Add py.typed file to let mypy know the module is typed
      • Merge ActorMixin into Message
      • Remove Signer.bytes
      • Signer.sign_func actually returns a function instead of a module
    • 5a41607f61 Message changes
      • Replace datetime with HttpDate
      • Add dict type to (de)serializers
      • Add new properties: content_map, created
      • Fix context creation
    • 64278d89f0 Improve Message value (de)serialization
    • 23c4b46ea9 Fix various issues
      • Make sure key is in snake_case form
      • Documentation for pubkey parameter should mention public key and not private key
      • Use camelCase for keys in sub-dicts
      • Use the correct property for getting an actor's username
      • Use the right date format for HttpDate

    Non-source Changes

    Downloads
  • 0.1.7 3ab001f425

    0.1.7 Stable

    izaliamae released this 2024-02-23 20:32:58 -05:00 | 69 commits to main since this release

    Fixes

    • 3d3c332872 Properly check key type in Signer.__repr__
    • d692c301aa Make sure AttributeError is raised instead of KeyError in Message.object_id

    Changes

    Non-source Changes

    Downloads
  • 0.1.6a 81054490f0

    0.1.6a Stable

    izaliamae released this 2024-01-05 15:05:34 -05:00 | 78 commits to main since this release

    Quick fix release

    Downloads
  • 0.1.6 0071c31642

    0.1.6 Stable

    izaliamae released this 2024-01-04 10:34:19 -05:00 | 81 commits to main since this release

    Changes

    • 9ee3444deb Create JsonBase class
    • d70845e210 Add JsonBase.new_from_json class method
    • 0e2a816cb9 Move type-specific message properties to message_types.py
    • 0e2a816cb9 Add deprecation warning to JsonBase.new_from_json
    • 03019d8c64 Document ActorMixin class
    Downloads
  • 0.1.5 dce84c9b93

    0.1.5 Stable

    izaliamae released this 2023-12-24 10:52:36 -05:00 | 87 commits to main since this release

    A few minor fixes and the introduction of the Message class.

    Note: I forgot to re-add new_from_json to all dict classes in objects.py. The next release will add a parse method instead.

    New features

    Fixes

    Changes

    • bc6dd7b9d4 Simplify Signer.export method
    • 1a774bd1f8 Remove Dotdict class
    • 077ba13686 Add annotations and settings for pylint and flake8
    • 558cd9f597 Replace all single quotes with double quotes
    • 8bcc8ffd27 Replace NODEINFO_NS with NodeinfoVersion enum
    • 0442c7b66e Add doc line for NodeinfoVersion
    • 3d4bf40893 Add convert_to_boolean and un-deprecate Signer.new_from_signature
    • ed899de0aa Handle api change in pycryptodome's signature verification
    • 3a4ee2df8c Fix linter issues
    • 0dbc97a98c Simplify private key check and enable validation exception test
    • 8adaf3129a Rename BaseRequest to AiohttpRequest

    Non-source changes

    • 12a4aa96f9 Add Python 3.11 and 3.12 to list of supported versions
    • 1744f617a2 Update pycryptodome to 3.19.0
    • 101213f7fc Update aiohttp to 3.9.1 and point install_requires to requirements.txt
    • dd9c278700 Add disabled test for signature verification exceptions
    • 7bac1d6469 Fix doc url and remove pypi url
    • 1c802056b4 Have docs pull version number from config.py
    • dce84c9b93 Use actual link for docs this time
    Downloads