This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import argparse | |
import fnmatch | |
import time | |
from datetime import timedelta | |
from pathlib import Path | |
import logging | |
def delete_files(root_dir: Path, extension: str, dry_run=True): | |
files_processed = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ftrack_api | |
import os | |
import requests | |
import logging | |
import mimetypes | |
class DownloadAnyVersion(object): | |
label = "Download MP4 and Image Reviews" | |
identifier = "download.mp4.and.image.reviews" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pip install PyVimeo | |
import vimeo | |
import os | |
import requests | |
# Replace these with your Vimeo API credentials | |
ACCESS_TOKEN = 'your_vimeo_access_token' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# python backupemails.py imap.example.com username password /path/to/backup/directory | |
import imaplib | |
import email | |
import os | |
import sys | |
import mailbox | |
import datetime | |
from tqdm import tqdm # For progress bars | |
import socket |
OlderNewer