Tracemoepy

Latest version: v3.8

Safety actively analyzes 613734 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 4

3.7

Use [Attrify](https://github.com/DragSama/Attrify) instead of SuperDict (Attrify is basically same but with more stuff and bug fixes)

3.6

- 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.
python
output.docs[0].save('natural-preview.mp4')

- Raises `InvalidPath` if path doesn't exist.
- Check examples to know how to save other preview types

3.5

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

3.4

Now you can access dict keys as attributes
Example:
python
import tracemoepy
tracemoe = tracemoepy.TraceMoe()
result = tracemoe.search(...)
print(result.docs)
print(result['docs'])

3.3

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:
python
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
python
import tracemoepy
import aiohttp
async_moe = tracemoepy.Async_Trace(session = aiohttp.ClientSession())
await async_moe.search('test.png', upload_file = True)

3.2

Page 1 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.