Code Monkey home page Code Monkey logo

vott-replace-paths's Introduction

vott-replace-paths

unittest

Please refer vott-replace-paths-web for web implementation.

Converts your VoTT projects portable to an other local file path or an Azure Blob Storage container.

Installation

Requirements

  • Python 3.10.x
  • pycryptodome

pipenv

$ pipenv sync
$ pipenv shell    # To enter your virtual environment

pip

$ python -m pip install -r requirements.txt

Usage

Converted files will be output to "output/" under the directory where the vott file is located.

To local

Please specify below parameters.

  • -k: The security token to load/store your vott project.
  • -s: The new video path (= Source connection)
  • -t: The vott/assets file path (= Target connection)
$ python main.py \
    -k security_key_security_token \
    -s path/to/video_source_path \
    -t path/to/vott_file_directory

To cloud(Azure Blob Container)

Please specify below parameters.

  • -k: Security token to load/store your vott project.
  • -t: VoTT/Assets file path
  • -a: Azure blob storage account name
  • -c: Azure blob storage container name
  • -sas: SAS string for your Azure blob storage
$ python main.py \
    -k security_key_security_token \
    -t path/to/vott_file_directory \
    -a your_azure_storage_account_name
    -c your_azure_container_name
    -sas sas_for_reading_your_container

Notice

If you find some bug, feel free to create an Issue or PR!

Acknowledgements

This code is based on the update-vott-assets, Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.