Skip to content

Releases: DragSama/tracemoepy

Migrate to new tracemoe api

06 Jun 13:39
433102b
Compare
Choose a tag to compare

Major Changes:

  • natural_preview is now same as video_preview.
  • encode no longer exists as a parameter in search.
  • Use response.result instead of response.docs and AniList info is now under response.anilist.
  • Now save method uses preview_type instead of preview_path, expected values are 'image' or 'video'.

Minor Changes:

  • New parameter cut_black_borders and include_anilist_info were added to search method, both are True by default. To see what they do run help(tracemoepy.tracemoe.TraceMoe.search).

For more info check: https://soruly.github.io/trace.moe-api/#/migrate

Bug fixes

06 Jan 07:43
c3dfc65
Compare
Choose a tag to compare

I accidently forgot to add attrify to install_requires 😓

Use Attrify instead of SuperDict

06 Jan 07:42
c3dfc65
Compare
Choose a tag to compare

Use Attrify instead of SuperDict (Attrify is basically same but with more stuff and bug fixes)

More friendly method and bug fixes

23 Dec 10:30
6fd488f
Compare
Choose a tag to compare
  • Fixed error while initializing aiohttp client in latest aiohttp version.
  • Sorted method in directories
  • Add more examples
  • Add .save(...) method result
    • This is just to easy way to directly save file.
    output.docs[0].save('natural-preview.mp4')
    • Raises InvalidPath if path doesn't exist.
    • Check examples to know how to save other preview types

Bug fixes

09 Nov 08:21
Compare
Choose a tag to compare

Fix not being able to convert complex nested structure back to dict when .to_dict() is called

Allow accessing dict keys as attributes

09 Nov 08:13
Compare
Choose a tag to compare

Now you can access dict keys as attributes
Example:

import tracemoepy
tracemoe = tracemoepy.TraceMoe()
result = tracemoe.search(...)
print(result.docs)
print(result['docs'])

Fixes and custom session support

12 Oct 06:35
aa3436f
Compare
Choose a tag to compare

trace.moe recently changed some stuff which made this wrapper broken, So to fix this I have added a new option called "upload_file".
Here is a example one how to use this:

tracemoe.search('test.png', encode = False, upload_file = True) # You can ignore the encode = False ONLY on Async_Trace class not normal one ( Note: In version 3.6+ all args default to False, So you can ignore this )

It is now recommended to use "natural_preview" function.
Also added support for custom aiohttp session

import tracemoepy
import aiohttp
async_moe = tracemoepy.Async_Trace(session = aiohttp.ClientSession())
await async_moe.search('test.png', upload_file = True)

Better documentation

04 Jul 16:54
4fe7ba3
Compare
Choose a tag to compare
v3.2

Change version

Nothing because I messed up releases

04 Jul 16:54
4fe7ba3
Compare
Choose a tag to compare

-_-"

09 Jun 05:46
257aab0
Compare
Choose a tag to compare
v3.0

._.'