Skip to content
This repository has been archived by the owner on Jan 16, 2022. It is now read-only.
/ vott-replace-paths Public archive

Updates VoTT directory when changes local work directory or uploads vott directory to the Azure.

License

Notifications You must be signed in to change notification settings

Niccari/vott-replace-paths

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

Updates VoTT directory when changes local work directory or uploads vott directory to the Azure.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages