Skip to main content

Trace.moe python wrapper

Project description

tracemoepy

trace.moe python wrapper, does not support all api methods yet. Work in progress.

PyPI version Downloads

Install

  • Install using pip: pip install tracemoepy

Examples

  • All the examples below are after this piece of code:
import tracemoepy
tracemoe = tracemoepy.tracemoe.TraceMoe()
  • You can search image like:
print(tracemoe.search('https://trace.moe/img/flipped-good.jpg', is_url = True))
  • Or if you provide base64 encoded image:
print(tracemoe.search(image, encode=False))
  • Or if you want to just provide the image, The wrapper will encode image using base64:
print(tracemoe.search('a.jpg', encode=True))
  • Video Preview (Gives content):
output = tracemoe.search('https://trace.moe/img/flipped-good.jpg', is_url = True)
tracemoe.video_preview(output)
  • Save video preview
output = tracemoe.search('https://trace.moe/img/flipped-good.jpg', is_url = True)
video = tracemoe.video_preview(output)
with open('preview.mp4', 'wb') as f:
  f.write(video)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tracemoepy-0.5.tar.gz (3.0 kB view details)

Uploaded Source

File details

Details for the file tracemoepy-0.5.tar.gz.

File metadata

  • Download URL: tracemoepy-0.5.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.4

File hashes

Hashes for tracemoepy-0.5.tar.gz
Algorithm Hash digest
SHA256 33f2de0b975432b4c6b5e3c083853283676f796dd19f6c277b4fd66c0a9d5e4c
MD5 5fcb371f2abfe56dbd785b544539bd1b
BLAKE2b-256 d3b1c343d27d7b6a6c289f842e402934b7070c74ed84d4e17f661b8d5011e1a0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page