Skip to main content

A customer loader for getting the video first frame from s3 compatible storage

Project description

Thumbor AWS

Join the chat at https://gitter.im/thumbor-community/aws

Circle CI

Installation

    pip install tc_aws_video

Authentication

Authentication is handled by botocore, see Boto3 documentation.

Origin story

If you store the images or videos in s3 compatible storage , such as aws , minio etc.

And now, you want to access the images or the first frame of the videos on it.

This is a custom loader will help you to do this!

Features

  • tc_aws_video.s3_video_loader

Additional Configuration values used:

# Reuse tc_aws configs 
# If you have credentials in ~/.aws/credentials , 
# then you can ignore TC_AWS_LOADER_ACCESS_KEY and TC_AWS_LOADER_SECRET_KEY
TC_AWS_REGION='your-s3-region'
TC_AWS_ENDPOINT='your-s3-endpoint'
TC_AWS_LOADER_ACCESS_KEY='your-s3-accesskey'
TC_AWS_LOADER_SECRET_KEY='your-s3-secret'

# Customize the temp storage for first frame of video
# The loader will delete the temp file while it read it into memory
TC_AWS_LOADER_VIDEO_FRAME_CACHE='/path/to/your/cache'

# Enable this loader
LOADER = 'tc_aws_video.s3_video_loader'

# Pay attention to this config 
# If you didn't set to no storage , you may occur 504
# Although this will slow down the request , you can set the cdn for caching the result
STORAGE = "thumbor.storages.no_storage"

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

tc_aws_video-1.0.2.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

tc_aws_video-1.0.2-py2-none-any.whl (4.5 kB view details)

Uploaded Python 2

File details

Details for the file tc_aws_video-1.0.2.tar.gz.

File metadata

  • Download URL: tc_aws_video-1.0.2.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.8.3 requests/2.27.1 setuptools/44.1.1 requests-toolbelt/0.10.1 tqdm/4.64.1 CPython/2.7.18

File hashes

Hashes for tc_aws_video-1.0.2.tar.gz
Algorithm Hash digest
SHA256 c0efd399517093b12394b99e7d9ab44895779cbcbf338daf6a00cd0282b1f81b
MD5 ae7c634f3616939da598cd7340852cef
BLAKE2b-256 a3b3869dcebf1766fc039364b75b13f3f0cdd1e0e6bf60441488c3d321457036

See more details on using hashes here.

File details

Details for the file tc_aws_video-1.0.2-py2-none-any.whl.

File metadata

  • Download URL: tc_aws_video-1.0.2-py2-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.8.3 requests/2.27.1 setuptools/44.1.1 requests-toolbelt/0.10.1 tqdm/4.64.1 CPython/2.7.18

File hashes

Hashes for tc_aws_video-1.0.2-py2-none-any.whl
Algorithm Hash digest
SHA256 b9ca49cfc7fc2fa0ac320b2f06386bdbfc0059d955c26de02165a89b1a0bb923
MD5 683d5daca38811b20a41816391aba9ce
BLAKE2b-256 b6405a5b7f11c4d386060c0d0849c90112aa577c336584877bdaebf87f88865d

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