Skip to content

Instantly share code, notes, and snippets.

@EmberLightVFX
EmberLightVFX / main.py
Created July 19, 2023 09:48
Search and replace for OpenPype's MongoDB
import re
from pymongo import MongoClient
# Connect to the MongoDB server
client = MongoClient("mongodb://mongodb://localhost:27017")
# Select the desired database and collection
db = client["avalon"]
collection = db["your-project-name"]