Skip to content

v0.2.1

Choose a tag to compare

@ijsbol ijsbol released this 05 May 23:32
· 73 commits to main since this release

Version 0.2.1 introduces the following features:

  • Using httpcord.types.String you can provide minimum and maximum lengths for strings.
  • Using httpcord.types.Integer & httpcord.types.Float you can provide minimum and maximum values for the int / float.
  • Even more type clarity throughout the library.
  • Using httpcord.types.File as a type hint you are now able to support file uploads with your commands.

String, Integer & Float should be done via a the typing.Annotation feature.
See examples/max-length-string.py, examples/int-and-float-bounding.py & examples/upload-file.py for further information.

Available on PyPi now.
https://pypi.org/project/httpcord/0.2.1/