Skip to content

Releases: trevorflahardy/tixte.py

v1.0.3

21 Mar 18:08
Compare
Choose a tag to compare

Version v1.0.3

Bumped the aiohttp dependency for the library and updated the Upload and Domain objects for new API updates. Coming in the next release will be a larger quality of life update for the library.

Changelog

Full Changelog: v1.0.2...v1.0.3

v1.0.2

18 May 19:20
Compare
Choose a tag to compare

1.0.2 Is Here!

Tixte has been hard at work updating some of their endpoints. The most significant change relates to the upload endpoint for an existing file. This update provides optimizations to the backend of this endpoint while providing new options when uploading.

Changelog

  • @Client.event has been renamed to @Client.listen. Note this is a breaking change.
  • Client.wait_for has been added for listening for a specific event.
  • A new UploadType enum has been created.
  • Updated Client.upload to accept the UploadType enum as a parameter, this allows for private uploads.
  • Corrected internally how JSON data is parsed when making an HTTP request.

Note

The pypi has been moved from tixte to tixte.py, you will not see versions before 1.0.2 there.

The documentation has been updated to review these changes. If you find any issues please bring them up in the discussion created with this release.

Full Changelog: 1.0...v1.0.1

Major refactor

07 Aug 08:18
Compare
Choose a tag to compare

What's Changed

  • Added many new methods and endpoints
  • Added new Enums and new attributes to almost all classes
  • Added support for editing an upload's permissions
  • PartialUpload has received a major update with new methods
  • Add updated and better documentation
  • And more

Full Changelog: 0.0.6...1.0

Fixing a small bug

12 Oct 16:29
Compare
Choose a tag to compare

Fixed issue:

  File "C:\Users\person\AppData\Local\Programs\Python\Python38\lib\site-packages\tixte\__init__.py", line 7, in <module>
    from .client import *
  File "C:\Users\person\AppData\Local\Programs\Python\Python38\lib\site-packages\tixte\client.py", line 25, in <module>
    from .http import HTTP
  File "C:\Users\person\AppData\Local\Programs\Python\Python38\lib\site-packages\tixte\http.py", line 45, in <module>
    from . import utils, __version__
  File "C:\Users\person\AppData\Local\Programs\Python\Python38\lib\site-packages\tixte\utils.py", line 29, in <module>
    def to_json(string: str) -> dict[Any, Any]:
TypeError: 'type' object is not subscriptable

Rate limiting!

02 Aug 19:21
Compare
Choose a tag to compare

We've gotten around to rate limiting! Upon reaching a rate limit, the request will wait until there is no more limit and then complete itself. This is automatic and you do not need to set it up in any way.

  • I've added the functionality to save User's avatar's to File objects, and changed a func name in the client. It went from file_from_url to url_to_file, it made more sense.

  • I've also made it so the domain with the most amount of uploads gets defaulted instead of the first domain in the array.

As always, if you run into any bugs let us know via PR!

More support for endpoints.

01 Aug 17:17
Compare
Choose a tag to compare

We'll be adding more support for endpoints in the next couple of days. We may have to change our method of oAuth in order to do so.

We've added support for fetching your ClientUser, but not other users yet. This should be added soon with a lot of other stuff. Feel free to check out anything else in the To-Do project on this github.