Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: wolph/python-utils
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.2.3
Choose a base ref
...
head repository: wolph/python-utils
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: develop
Choose a head ref

Commits on May 19, 2022

  1. Merge tag 'v3.2.3' into develop

    Fixed loguru stack location v3.2.3
    
    # -----BEGIN PGP SIGNATURE-----
    #
    # iQIzBAABCgAdFiEEFJMl/RWQTpxOuJ6V6BRE6c4faV0FAmKGRGwACgkQ6BRE6c4f
    # aV2Daw/+NnTh4nTw+qD/hK4VHh4MD78lc/kNZqasxRaxd5GB0EYG6QSQKHvsSaOe
    # 191Kt5ubt9YcFhC16xHuUsRDHY2oUNNQo1Hlop8wN8K0MbyaFlgu/Xky7UD9sbbZ
    # 38IHfUuLX42RfQyKdqFAGy0g7sVfrkUIh6fXT/MzBW9m5CvIPTDEP1ANie+Cyguv
    # AvA5jMdLJcgnkQbFfN00scR4uP0JaA8tcNxs+9jvtvffygjlMowvxmwqcjGgNCLb
    # ++TMUuj1BFTf+TRknOoG8+cUo1aIYnzOQlfURHhHInxc9jXP9rsljXVRXhBPT1pN
    # AILrfLcWyP9xcshJzGLBdkQgkPaFA2Y4z1HHAp2ezLg4Fh/C9U5ZRf/lLGXBQryP
    # vJrf04KC5pQG/bLyLmR1XrkkTLLj8MppQwfw5Aj2K1LA3cG8uFNasdby6fxmP3B5
    # ZC2w0cEdQOKzUvM80JEtMGroP98kWNsEXGtKi4AYrgo5mCRjCab9mGbJRbDDuZnI
    # ptq4fz0KfOEtOmDcTBqiLy6Mjkcwkwe7AwJJaT/HyYP/aRk8HaYGDwu8cqWUc81Q
    # pQ6QtynI6v4rtjuVEGajREf7ew7/KhWG0hHaJA7YTFcggcDa7KIYV5VRm8pXRqs4
    # UKjS4p2RfvF10QoyY8FnoFRHk2DCNHpVJD4yzN31cSHizh+AFNo=
    # =XvET
    # -----END PGP SIGNATURE-----
    # gpg: Signature made Thu May 19 15:21:48 2022 CEST
    # gpg:                using RSA key 149325FD15904E9C4EB89E95E81444E9CE1F695D
    # gpg: Good signature from "Rick van Hattem <wolph@wol.ph>" [ultimate]
    # gpg:                 aka "[jpeg image of size 9662]" [ultimate]
    wolph committed May 19, 2022
    Copy the full SHA
    cd2cf62 View commit details
  2. Copy the full SHA
    25a334b View commit details

Commits on May 23, 2022

  1. Add sample decorator

    targhs committed May 23, 2022
    Copy the full SHA
    a937f58 View commit details

Commits on May 25, 2022

  1. Merge pull request #32 from targhs/feature/add-sample-decorator

    Add sample decorator
    wolph authored May 25, 2022
    Copy the full SHA
    91e12fe View commit details

Commits on May 29, 2022

  1. Copy the full SHA
    97b87a7 View commit details
  2. fixed small mypy issues

    wolph committed May 29, 2022
    Copy the full SHA
    f9b3014 View commit details
  3. Copy the full SHA
    0663be8 View commit details
  4. made the tests more resilient

    wolph committed May 29, 2022
    Copy the full SHA
    dd47eff View commit details
  5. Incrementing version to v3.3.0

    wolph committed May 29, 2022
    Copy the full SHA
    102e603 View commit details
  6. Merge tag 'v3.3.0' into develop

    Added (asyncio) generators for automatic batching and timeout detection v3.3.0
    
    # -----BEGIN PGP SIGNATURE-----
    #
    # iQIzBAABCgAdFiEEFJMl/RWQTpxOuJ6V6BRE6c4faV0FAmKS1XAACgkQ6BRE6c4f
    # aV1NJRAAiROEYnnx2/yyyZ4CgfuJl+l7p8K4LlaIrNG0Vonm0DB/X1v+mVOriRqp
    # ylqFEmPHjKjsckMZzm4IFbiljBRHdNVo2lqn6gZna/y/RQNn/AYxnWIvHl2ef6mY
    # IOv11T49rH9AaZXTglcz52qTrI0DvLKItGNXXBHzFrT6pq5RFSeoVAhyoDiXoEgD
    # ocnl5bei+6Wqzrzhq18gqj8v9p9riMQd18zHcpraRAh9uwNaE+6NerGR11F4y795
    # 1UcCsrAIXrUp0Y9QGb6QZh8LNH92GfPeuKOiSoqNmW43i9LJcYGmwzLrQWiHOWx3
    # BTxHLw0wmkaQp7H2jwn1LjBtiSHLOpt+HK5yp0cbRo9IxEnU0iQ3bbsObBat55DM
    # 45bxzFuWoobCMp9qiHuHuNfn3DXlzwkb6OG5ZPEUt5m6lG7IDggaUqCz8reGDCPl
    # sD1bSLMBN9GTpJDuBxcawKLoV8JG/CBmJtGanKd6H3dsSseGCf1maW0l6n7lyykW
    # tKfaXcqRTe8Crm6ZGwfovfVOqNYXKAS6LAzD3F/GxcCqGsR0wqn+upNw09RuYkFS
    # iqc6jxghfCzVahNidFd+XFOGB/cXOYUYDBkhnhl85tHgVzlNIMSAOyJq/IZmLqj0
    # RLsW1QM1e8QTV5n+tMKpVJ/w9ZrqDmmlsLfHjHRxN6Vo+QjUqC4=
    # =XLki
    # -----END PGP SIGNATURE-----
    # gpg: Signature made Sun May 29 04:07:44 2022 CEST
    # gpg:                using RSA key 149325FD15904E9C4EB89E95E81444E9CE1F695D
    # gpg: Good signature from "Rick van Hattem <wolph@wol.ph>" [ultimate]
    # gpg:                 aka "[jpeg image of size 9662]" [ultimate]
    wolph committed May 29, 2022
    Copy the full SHA
    90f8a23 View commit details
  7. Merge branch 'release/3.3.0'

    wolph committed May 29, 2022
    Copy the full SHA
    0448374 View commit details
  8. Add CONTRIBUTING.md

    targhs committed May 29, 2022
    Copy the full SHA
    29866a0 View commit details
  9. Copy the full SHA
    157c39b View commit details
  10. Copy the full SHA
    3908ac8 View commit details
  11. Incrementing version to v3.3.1

    wolph committed May 29, 2022
    Copy the full SHA
    62631f1 View commit details
  12. Merge branch 'release/3.3.1'

    wolph committed May 29, 2022
    Copy the full SHA
    0d51a3c View commit details
  13. Merge tag 'v3.3.1' into develop

    improved generator timeout handling v3.3.1
    
    # -----BEGIN PGP SIGNATURE-----
    #
    # iQIzBAABCgAdFiEEFJMl/RWQTpxOuJ6V6BRE6c4faV0FAmKT44IACgkQ6BRE6c4f
    # aV3WIw/+IHEuZym/CMY8O/t+hgKpuEl4WjZF0AntmN0alwDLSRBVyufGlUNWO6IF
    # 0nExAvhAtZp+DzoaHCT17m82GU6FGUGxmH0RGl+cgI5xnoVVuIxJ8UMKmQ08Eap8
    # XGeDSF2DcRn42cOODu5oWBl/Lrj7lvn0UcmI9ZrePo9aYzauURZ4d9HyQSUZAINL
    # siQ/1zeCKHLHrLcHvW1zaPCbHz9zL6hzz+xohNfhcXGwPFLPSZ0JFXBzgT9fkToA
    # J3IJoHIlQdYT+fgOZ/0xHBiDjDruz7caiS3qAplGt3xd0yZ8NmL0nMR7coKY2TFY
    # i7Z2X46Dfyl2hnofK4DwYhlF4zs83FD9lyliieyKxNaNWGePuNwXA+hY1lD65hh4
    # UsquORn1sNIUNgetrDZIJKkvuQKER5Qsszsw64DzTMFgdaffoHac7Y1sNnPBr6TL
    # sTdm6CP1zJLFQAuNW2+9pRr3KnlSV/+GAX+of14Y542UMpgvARZ4RQiBzN6BtVm9
    # IS8TMePl5C9WW1l3o81EV32YB40NyYMZiykbIbXujBK/Uk50Ouc9dLRhFuMEFIrt
    # AqrDE9oSF1RGxkGGc6kCxo1R3vf67/EzH8DwWQGEuLpWLVVfqSjpi33Kh0cAZN8y
    # u34+ikEwB46sJFoN7ok8rBowBJhd7OXve/4u4LLVgP/a0ZE3aFY=
    # =lU2O
    # -----END PGP SIGNATURE-----
    # gpg: Signature made Sun May 29 23:20:02 2022 CEST
    # gpg:                using RSA key 149325FD15904E9C4EB89E95E81444E9CE1F695D
    # gpg: Good signature from "Rick van Hattem <wolph@wol.ph>" [ultimate]
    # gpg:                 aka "[jpeg image of size 9662]" [ultimate]
    wolph committed May 29, 2022
    Copy the full SHA
    54a4dd7 View commit details
  14. Merge pull request #34 from targhs/feature/add-contributing-docs

    Add CONTRIBUTING.md
    wolph authored May 29, 2022
    Copy the full SHA
    d231880 View commit details
  15. Copy the full SHA
    f36c1db View commit details
  16. blacked the code

    wolph committed May 29, 2022
    Copy the full SHA
    02a2237 View commit details

Commits on May 30, 2022

  1. Copy the full SHA
    c9d4cd8 View commit details
  2. Incrementing version to v3.3.2

    wolph committed May 30, 2022
    Copy the full SHA
    7f0dde9 View commit details
  3. Merge tag 'v3.3.2' into develop

    Fixed bug with batcher skipping items in the case of timeouts thanks to @jorenham v3.3.2
    
    # -----BEGIN PGP SIGNATURE-----
    #
    # iQIzBAABCgAdFiEEFJMl/RWQTpxOuJ6V6BRE6c4faV0FAmKVQYEACgkQ6BRE6c4f
    # aV2YIw/+NL38O8FHsPZeWHlgRlxpDIPFL3amI42xMktTl8grUztXRjUiRQQsj4YM
    # nVacpN+A979aWY2zBy4j7LlUnZIOqfrwuNCie5NceYSMflet8W3cXxbfShAcqDgP
    # EuInPmBSx8ioWsxDL9znFSu2EoDJ3fKeJMcGe6hrdRp703oXxSUvEWsrCGdt1++B
    # rng/kTwEs7AJ9Z98MplfO7N0sCyg/pNneNKVJBGOqwQaOcsOFSMU+UKt+4qRk4Cf
    # KV8sAo4R2oKqBxDBgbsKRQ4XgUqPx934s7u+OAPQU5XqYobsfnwP6GBcKBaDY8pg
    # n6365TPS77E4u/CfsyNgLj9dLIhA971rFFd6hnxi3i4jJc2TSY+hm/KpXdx1yp8Q
    # 5Jr3ZuiRo5tHAUtoQstjMVEuiYyIzULokDuezYqlbNEyamE+CchlLi3ZybeaueJe
    # UAj+jrQBAStyJ6wkO05piSn8cbZtM/GIh1TJ4kLtYIZCIvlFL9kJWburt6sy8/Hl
    # s1CPux8RCqL+jRajqNGFjF68ouFL38DTF/EPxQkCRDR9B9zrOoA0WvLDSRKGUbgO
    # k4Rwbc2IgHPkQmXNDUfxzUaYzMa8JAXIrFzPq+JiW1LAGRE8B60aQnllVS+L7tqz
    # 3PYgMyebq7/NNMxXdM5QumHdB7nvawv8VvJ0+JOw23mcuNKK+3k=
    # =I/NW
    # -----END PGP SIGNATURE-----
    # gpg: Signature made Tue May 31 00:13:21 2022 CEST
    # gpg:                using RSA key 149325FD15904E9C4EB89E95E81444E9CE1F695D
    # gpg: Good signature from "Rick van Hattem <wolph@wol.ph>" [ultimate]
    # gpg:                 aka "[jpeg image of size 9662]" [ultimate]
    wolph committed May 30, 2022
    Copy the full SHA
    d768f58 View commit details
  4. Merge branch 'release/3.3.2'

    wolph committed May 30, 2022
    Copy the full SHA
    7639c88 View commit details

Commits on May 31, 2022

  1. Copy the full SHA
    d6ade67 View commit details
  2. added Python 3.11 testing

    wolph committed May 31, 2022
    Copy the full SHA
    a731929 View commit details
  3. added Python 3.11 testing

    wolph committed May 31, 2022
    Copy the full SHA
    b799c8e View commit details
  4. Copy the full SHA
    412cf07 View commit details
  5. Incrementing version to v3.3.3

    wolph committed May 31, 2022
    Copy the full SHA
    9520aef View commit details
  6. Merge tag 'v3.3.3' into develop

    fixed issue with not submitting tasks to `asyncio.wait`. Fixes #35 v3.3.3
    
    # -----BEGIN PGP SIGNATURE-----
    #
    # iQIzBAABCgAdFiEEFJMl/RWQTpxOuJ6V6BRE6c4faV0FAmKWiP4ACgkQ6BRE6c4f
    # aV1foA//Vz21odyCbMq5+qrJXsBIHRJFcF3mZDF07U+P6IQsV1k8h/ZlqDxrOCbi
    # so7gjlJLZ/GZNdPUruaxxUiUcYozOjG8WjZdbA04k8Lf8GLUBCpl16bV/k/czd9n
    # J5yjFeUzKRLvY98AHWg8l1MC/PZOmFdBrvUbjEQvWOIdN6zNURiX1oZhOFA/wVO5
    # WcJ6gHJ6Hai53Qcd23yVzp9WsZuXZNgIX9TBu1mbcha/+ML9xjoL9/ziQF5FgXwr
    # qSjmm/x9CH+S1ybeSd6x/2Ja223F6tWIRK0MmTDDZQmactwSlbmDz/LAHJz/TjbT
    # 9+P5qziolcUu3Oxcu7hHjrzzrrB8CxHF2MKpRUYMVCqtbZKkScUmZJX+d5kyo1ls
    # D3oO+m93D+lOG9u2zfXbtChtUmvstIZorvEBrGf/6IltxiWHO1qlb9CkbYRSjyuS
    # AOKUPB3hubhLJwbgfQxowIt9y8PVE0iXMBXcP6Y5IkWR6mnw9kHZdmsUg4crPLhX
    # K9q9DMR+vh0T4l9LBTcusnVKS9Cb3Ry45njwKkUcoQUPuSjqQlaFL84x9r+F+HGY
    # E5JBj9o0Q/lYFqA3z2FsMw1meh/Xb0Oa4HlchZSnwzxNMmLDlVNxgplWWbDr33aj
    # HtHDvjcbjezO1ILe5GOzq4heOLbFj559OrF6OS+tvqw37UfhYY8=
    # =CqNj
    # -----END PGP SIGNATURE-----
    # gpg: Signature made Tue May 31 23:30:38 2022 CEST
    # gpg:                using RSA key 149325FD15904E9C4EB89E95E81444E9CE1F695D
    # gpg: Good signature from "Rick van Hattem <wolph@wol.ph>" [ultimate]
    # gpg:                 aka "[jpeg image of size 9662]" [ultimate]
    wolph committed May 31, 2022
    Copy the full SHA
    3bbb885 View commit details
  7. Merge branch 'release/3.3.3'

    wolph committed May 31, 2022
    Copy the full SHA
    1aa3a08 View commit details

Commits on Oct 29, 2022

  1. Copy the full SHA
    8732cbf View commit details
  2. updated github actions workflow

    wolph committed Oct 29, 2022
    Copy the full SHA
    8f28de5 View commit details
  3. Incrementing version to v3.4.0

    wolph committed Oct 29, 2022
    Copy the full SHA
    3d1a09a View commit details
  4. Merge branch 'release/3.4.0'

    wolph committed Oct 29, 2022
    Copy the full SHA
    ec05016 View commit details
  5. Added py.typed

    wolph committed Oct 29, 2022
    Copy the full SHA
    3345895 View commit details
  6. Incrementing version to v3.4.1

    wolph committed Oct 29, 2022
    Copy the full SHA
    ef29fc9 View commit details
  7. Merge tag 'v3.4.1' into develop

    Added py.typed v3.4.1
    
    # -----BEGIN PGP SIGNATURE-----
    #
    # iQIzBAABCgAdFiEEFJMl/RWQTpxOuJ6V6BRE6c4faV0FAmNdkXkACgkQ6BRE6c4f
    # aV3GfA//b85tOFINFvfsQuWzHo7LqLCkjPIeuDS+6/+mfs1BjmqEXFP3ZfWvNpMq
    # jokITq4KV3nMYl5YA53d9hzfT4kpmFAEFM64wJNbrbIHeapgQ/J5ewXKgZE1F6Vg
    # KoF3FXchNdR6HRmMM8/vwqornW8nzcvMDWTecBoxyZF8FXQoGX4G73kH6J1QR/6i
    # OkOkfqOs/PXHJbsQNIXKhZCjW2JyiR9AqCf8O27Qqzxem06O7eJ+Io10//fF5zB1
    # nj9YIZ9eXeWd4Saw8pGek6RY0+GZSFAl5pGtRNKCrHgEDPIJSY50oE6Sq9irqkKY
    # U9I5tljZKYIpKH9SHEYJVOfxrbjwfeZQWUUzizndjK55A9TL8t4RCoA1ctlIRXtQ
    # ieynFq+faBNHBseJQiwT4R+4hUraPVun7FXkitYzkG2wTctc6fgKs/b81spdUsmn
    # 5GecBMw/kX45zA7z6CZWIFSzoAdhf99rdzxSZomoSpzsOXL0d5HQ04GHnDd4jDv4
    # ztGDYH8L9ZLbxQYV2hiaK3QmaroiefhaiCRtI88sNEKSa+S1h8xszCthfAkvquiG
    # i0ZWWb12R4jawkOlptoFYDsM+v8hLtnrIqzUPlb1IFpWotg2INgC1T8VLN/Uc/sF
    # EjAVf11FkRcw2GYtWtXtMA/+QXBEcZ5TXf2uUQDApopvFEEGquY=
    # =N+zs
    # -----END PGP SIGNATURE-----
    # gpg: Signature made Sat Oct 29 22:47:53 2022 CEST
    # gpg:                using RSA key 149325FD15904E9C4EB89E95E81444E9CE1F695D
    # gpg: Good signature from "Rick van Hattem <wolph@wol.ph>" [ultimate]
    # gpg:                 aka "[jpeg image of size 9662]" [ultimate]
    wolph committed Oct 29, 2022
    Copy the full SHA
    15f2ac0 View commit details
  8. Merge branch 'release/3.4.1'

    wolph committed Oct 29, 2022
    Copy the full SHA
    56d10ac View commit details
  9. Incrementing version to v3.4.2

    wolph committed Oct 29, 2022
    Copy the full SHA
    8cc768c View commit details
  10. Merge tag 'v3.4.2' into develop

    Added py.typed v3.4.2
    
    # -----BEGIN PGP SIGNATURE-----
    #
    # iQIzBAABCgAdFiEEFJMl/RWQTpxOuJ6V6BRE6c4faV0FAmNdkZoACgkQ6BRE6c4f
    # aV33mw/9EBTmDOepUsSbG6Y5Wpc3Tsqd8bSIYJiu4Pwy+ooEZoVY78KF+6y8qw49
    # TbDIc05DKSRnx+Uwmvx2AVzc/QFbHXOQxFry6MUx4/sck6XXW6lUEYJCboZpLjne
    # QEekiJC03Eyh0w6yeGClSXtuET7CyqXFCw1DQNNHlv1DiCxFBEUOg1p7FdEJviR4
    # 22FYjpZIkL0mmEfth8DdAi3XgDelTlcCPUMSEwnFLEo/AU2NdbpJq6w4m8EQ/PRT
    # rIpcCWVh2J7qpTiqQNWHhkVLLcSU4bvxtGjnVTMcE0d7XH7nWLJ9vJ4/1cJkBQOZ
    # PX8A06H2wstCHh/EflMzhD2YdGzEs0leGdqWLX52xs1XSZ4RkHk1tHEAoNN0yW9a
    # O0Xt43zPbAQVRXZAuB9M4+26rHvJsZfUTNZ6PkKOllB5T51o+vzWlmHiR2WLEDYX
    # 4YnD+MgIMAySVAc2R/hVZTWPOpC7uBkcxTNZVLvFuIhh3iIXuid5ENdIKf9oXvNV
    # B6PqUktv1yM8oeVl8/Zm4W9VZWtE7bnWp2P1Wa22lJp12ZKCm15sToB5xjzs002Y
    # T8sSFk5ji9HDfXTlTyfRlGEmEC/WB9F6CMeFZDtzFyJERHdz2YhBhcVS0yzmkbUT
    # 3yAF1KWST1ecQCfKmzX6dkyMZs0vUsgIUVOPw6RpZvHYrKWPqEc=
    # =I6uU
    # -----END PGP SIGNATURE-----
    # gpg: Signature made Sat Oct 29 22:48:26 2022 CEST
    # gpg:                using RSA key 149325FD15904E9C4EB89E95E81444E9CE1F695D
    # gpg: Good signature from "Rick van Hattem <wolph@wol.ph>" [ultimate]
    # gpg:                 aka "[jpeg image of size 9662]" [ultimate]
    wolph committed Oct 29, 2022
    Copy the full SHA
    437f794 View commit details
  11. Merge branch 'release/3.4.2'

    wolph committed Oct 29, 2022
    Copy the full SHA
    7020048 View commit details
  12. Incrementing version to v3.4.3

    wolph committed Oct 29, 2022
    Copy the full SHA
    978e4f1 View commit details
  13. Merge tag 'v3.4.3' into develop

    Added py.typed v3.4.3
    
    # -----BEGIN PGP SIGNATURE-----
    #
    # iQIzBAABCgAdFiEEFJMl/RWQTpxOuJ6V6BRE6c4faV0FAmNdka0ACgkQ6BRE6c4f
    # aV0IkQ//bm6t/4kGQrXch2KDC+aSJbaqS7H/pAry5tmodyz1ch3ZdDHB5vwzMTbq
    # EUrpQ65LzzCqsC1jGcQUlEYxqL74DEEaxu2KNfPnmkmoFMKs7HNVpMW81OqnBE7E
    # pKysf61+ttn7zOfqUOe4fjFKLQHm1Z+/NqfN4AdQLs+IG9IMTxUvqRfTNMq4h01k
    # PQtAE6eK01UgKiy0+2IPxEymtLBkcnJDVJ1HXOE7Irj3zSOeeQESMU+gZQnwPUMv
    # thbdMM4dShIVlS/Cv1zO5aTHBbAhDPhrXTRH67U9eneEYUp1Ykfh8k6xt5GZezcd
    # aUVkfabElgZF8jA1z5dl0sC6NVkO4PZuL7XIYtgGk0Wh59f8KFgwfFObR3vX1SK5
    # FzVDLJGOcyRexHP+bGTSfFEDoFyJjZ1mHacOzOIB1H8hclSPztf5l74hAnOLitff
    # L8KAZPSAxANkAyNyHMgG01yk0s7nshHFW8A5bDwqYNyGft9erxNt9W8GMqMitod6
    # jb+VCn0UAfKBEVRTtdWmtRc4b5JppMmGlInT2ZIyJw0IsJmeCJIccwBC7bCPetVp
    # ARKBsyACnMj1RNmhnQ3a7+3Qvptb1Rz0vt6T8Co3G9+NyHIGXPp/nqP/tQX+XMpv
    # 0wIPpTlNoACDUZYXYHicL1uk+xwgLxWR6Gv72v8cj28+yGZhzOk=
    # =K012
    # -----END PGP SIGNATURE-----
    # gpg: Signature made Sat Oct 29 22:48:45 2022 CEST
    # gpg:                using RSA key 149325FD15904E9C4EB89E95E81444E9CE1F695D
    # gpg: Good signature from "Rick van Hattem <wolph@wol.ph>" [ultimate]
    # gpg:                 aka "[jpeg image of size 9662]" [ultimate]
    wolph committed Oct 29, 2022
    Copy the full SHA
    8e3218c View commit details
  14. Merge branch 'release/3.4.3'

    wolph committed Oct 29, 2022
    Copy the full SHA
    018a0ca View commit details
  15. added py.typed

    wolph committed Oct 29, 2022
    Copy the full SHA
    18f96e7 View commit details
  16. Incrementing version to v3.4.4

    wolph committed Oct 29, 2022
    Copy the full SHA
    f3f1bfd View commit details
  17. Merge tag 'v3.4.4' into develop

    Added py.typed v3.4.4
    
    # -----BEGIN PGP SIGNATURE-----
    #
    # iQIzBAABCgAdFiEEFJMl/RWQTpxOuJ6V6BRE6c4faV0FAmNdmIAACgkQ6BRE6c4f
    # aV3zshAApdBOeA1DEptLwvE2FmBjJYF9aoCvDDORT+anwjxd85lkbaZSookHep7z
    # QbyOy7LEXM0XRJLBpnJVvb6B/ULD1mjG13IHdDzcEDPvCnZXVPvxqv6YIiLf+j9p
    # ZIpwq2HWmhAinprUk7GuLqk8n/Cl//+BUWPgcCVp3KUJ8VbRX9vdkXZ/H9I2yyvl
    # 7H162CPKII4w8rPQSX70Z8uHYz8NMryRdpMaf6Wy1nlg34FHWM3NyEwHvYJAsK5F
    # Jc8pbAuw/o73OuAWuwmfTkIJYw+QvtwrHPkuUQg263e/HxceIn7nTs0FY3t7+fOn
    # S+la7CnakwF61vdDNI14f9+TJ9NBhRymdIheqXeYxC3lvmISqynj8rh6S3CkLkMT
    # TFwS4UCERANWHs3w7ueXfoxikWu2cVCXEUTWTtlAmPFmNM8zgVcX1LyPCYitEq5H
    # u5HcgAHXM6HBlRACkfx42jmM6Uo6DDObqt8lQkdkzXHDWMZZ0E/OovqWXnqGr4ou
    # a6Y+j+oLgYl7gJoPU2pxN0IPTXSePWdmfeeu1SJI7/SwoI6YEY4IOL/vfFLRc/1U
    # bn1J4vVtTgOAehJ93V+QPP0QWEtBx8rePYhBZxuiZL7A+W0XuP3X0QzhHk35dcmu
    # hsvpl3m2CpafKbyIfUQGWFdBN2kSGtSSPyF8MQmd7kvL687kvJM=
    # =UzTo
    # -----END PGP SIGNATURE-----
    # gpg: Signature made Sat Oct 29 23:17:52 2022 CEST
    # gpg:                using RSA key 149325FD15904E9C4EB89E95E81444E9CE1F695D
    # gpg: Good signature from "Rick van Hattem <wolph@wol.ph>" [ultimate]
    # gpg:                 aka "[jpeg image of size 9662]" [ultimate]
    wolph committed Oct 29, 2022
    Copy the full SHA
    8db3e4b View commit details
  18. Merge branch 'release/3.4.4'

    wolph committed Oct 29, 2022
    Copy the full SHA
    8754157 View commit details
  19. added traceback type

    wolph committed Oct 29, 2022
    Copy the full SHA
    c7440f2 View commit details
5 changes: 5 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -22,3 +22,8 @@ exclude_lines =
if 0:
if __name__ == .__main__.:
if typing.TYPE_CHECKING:
if types.TYPE_CHECKING:
@overload
@types.overload
@typing.overload
types.Protocol
41 changes: 41 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: "CodeQL"

on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]
schedule:
- cron: "46 1 * * 3"

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ python ]

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
queries: +security-and-quality

- name: Autobuild
uses: github/codeql-action/autobuild@v2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{ matrix.language }}"
30 changes: 19 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -8,43 +8,51 @@ on:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 2
timeout-minutes: 4
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10']
python-version: ['pypy3.9', 'pypy3.10', '3.9', '3.10', '3.11', '3.12'] # Maybe soon?, '3.13']

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools flake8
python -m pip install --upgrade pip setuptools ruff
pip install -e '.[tests]'
- name: Get versions
run: |
python -V
pip freeze
- name: flake8
run: flake8 -v python_utils setup.py
- name: ruff
run: ruff check --output-format=github
- name: pytest
run: py.test

docs:
docs_and_lint:
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
pip install -e '.[docs]'
pip install -e '.[docs,tests]' pyright ruff mypy
- name: build docs
run: make html
working-directory: docs/
- name: ruff
run: ruff check --output-format=github
- name: mypy
run: mypy python_utils setup.py
- name: pyright
run: pyright
17 changes: 17 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Close stale issues and pull requests

on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *' # Run every day at midnight

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v8
with:
days-before-stale: 30
exempt-issue-labels: in-progress,help-wanted,pinned,security,enhancement
exempt-all-pr-assignees: true

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -4,3 +4,4 @@
/docs/_build
/cover
/.eggs
/.*
35 changes: 35 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Read the Docs configuration file for Sphinx projects
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Set the OS, Python version and other tools you might need
build:
os: ubuntu-22.04
tools:
python: "3.12"
# You can also specify other tool versions:
# nodejs: "20"
# rust: "1.70"
# golang: "1.20"

# Build documentation in the "docs/" directory with Sphinx
sphinx:
configuration: docs/conf.py
# You can configure Sphinx to use a different builder, for instance use the dirhtml builder for simpler URLs
# builder: "dirhtml"
# Fail on all warnings to avoid broken references
# fail_on_warning: true

# Optionally build your docs in additional formats such as PDF and ePub
formats:
- pdf
- epub

# Optional but recommended, declare the Python requirements required
# to build your documentation
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
python:
install:
- requirements: docs/requirements.txt
87 changes: 87 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
# Contributing to python-utils

Bug reports, code and documentation contributions are welcome. You can help this
project also by using the development version and by reporting any bugs you might encounter

## 1. Reporting bugs
It's important to provide following details when submitting a bug
- Python version
- python-utils version
- OS details

If possible also provide a minimum reproducible working code.
## 2. Contributing Code and Docs

Before working on a new feature or a bug, please browse [existing issues](https://github.com/WoLpH/python-utils/issues)
to see whether it has previously been discussed.

If your change alters python-util's behaviour or interface, it's a good idea to
discuss it before you start working on it.

If you are fixing an issue, the first step should be to create a test case that
reproduces the incorrect behaviour. That will also help you to build an
understanding of the issue at hand.

Make sure to add relevant tests and update documentation in order to get
your PRs merged. We strictly adhere to 100% code coverage.

### Development Environment

#### Getting the code

Go to <https://github.com/WoLpH/python-utils> and fork the project repository.

```bash
# Clone your fork
$ git clone git@github.com:<YOU>/python-utils.git

# Enter the project directory
$ cd python-utils

# Create a branch for your changes
$ git checkout -b my_awesome_branch
```

#### Testing
Before submitting any PR make sure your code passes all the tests.

To run the full test-suite, make sure you have `tox` installed and run the following command:

```bash
$ tox
```

Or to speed it up (replace 8 with your number of cores), run:

```bash
$ tox -p8
```

During development I recommend using pytest directly and installing the package in development mode.

Create virtual environment and activate
```bash
$ python3 -m venv venv
$ source venv/bin/activate
```
Install test requirements
```bash
$ cd python-utils
$ pip install -e ".[tests]"
```
Run tests
```bash
$ py.test
```

Note that this won't run `ruff` yet, so once all the tests succeed you can run `ruff check` to check for code style errors.

```bash
$ ruff check
```

Lastly we test the types using `pyright`:

```bash
$ pyright
```
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -7,5 +7,6 @@ include requirements.txt
include setup.cfg
include setup.py
include tox.ini
include python_utils/py.typed
recursive-include _python_utils_tests *.py *.txt
recursive-exclude __pycache__ *
7 changes: 7 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -25,6 +25,13 @@ Links
- Documentation: https://python-utils.readthedocs.io/en/latest/
- My blog: https://wol.ph/

Security contact information
------------------------------------------------------------------------------

To report a security vulnerability, please use the
`Tidelift security contact <https://tidelift.com/security>`_.
Tidelift will coordinate the fix and disclosure.

Requirements for installing:
------------------------------------------------------------------------------

68 changes: 68 additions & 0 deletions _python_utils_tests/test_aio.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
import asyncio

import pytest

from python_utils import types
from python_utils.aio import acontainer, acount, adict


@pytest.mark.asyncio
async def test_acount(monkeypatch: pytest.MonkeyPatch) -> None:
sleeps: types.List[float] = []

async def mock_sleep(delay: float) -> None:
sleeps.append(delay)

monkeypatch.setattr(asyncio, 'sleep', mock_sleep)

async for _i in acount(delay=1, stop=3.5):
pass

assert len(sleeps) == 4
assert sum(sleeps) == 4


@pytest.mark.asyncio
async def test_acontainer() -> None:
async def async_gen() -> types.AsyncIterable[int]:
yield 1
yield 2
yield 3

async def empty_gen() -> types.AsyncIterable[int]:
if False:
yield 1

assert await acontainer(async_gen) == [1, 2, 3]
assert await acontainer(async_gen()) == [1, 2, 3]
assert await acontainer(async_gen, set) == {1, 2, 3}
assert await acontainer(async_gen(), set) == {1, 2, 3}
assert await acontainer(async_gen, list) == [1, 2, 3]
assert await acontainer(async_gen(), list) == [1, 2, 3]
assert await acontainer(async_gen, tuple) == (1, 2, 3)
assert await acontainer(async_gen(), tuple) == (1, 2, 3)
assert await acontainer(empty_gen) == []
assert await acontainer(empty_gen()) == []
assert await acontainer(empty_gen, set) == set()
assert await acontainer(empty_gen(), set) == set()
assert await acontainer(empty_gen, list) == list()
assert await acontainer(empty_gen(), list) == list()
assert await acontainer(empty_gen, tuple) == tuple()
assert await acontainer(empty_gen(), tuple) == tuple()


@pytest.mark.asyncio
async def test_adict() -> None:
async def async_gen() -> types.AsyncIterable[types.Tuple[int, int]]:
yield 1, 2
yield 3, 4
yield 5, 6

async def empty_gen() -> types.AsyncIterable[types.Tuple[int, int]]:
if False:
yield 1, 2

assert await adict(async_gen) == {1: 2, 3: 4, 5: 6}
assert await adict(async_gen()) == {1: 2, 3: 4, 5: 6}
assert await adict(empty_gen) == {}
assert await adict(empty_gen()) == {}
Loading