How to use the pywb.manager.manager.CollectionsManager function in pywb

To help you get started, we’ve selected a few pywb examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github webrecorder / pywb / pywb / manager / manager.py View on Github external
def do_init(r):
        m = CollectionsManager(r.coll_name, must_exist=False)
        m.add_collection()
github webrecorder / pywb / pywb / manager / manager.py View on Github external
def do_index(r):
        m = CollectionsManager(r.coll_name)
        m.index_merge(r.files, m.DEF_INDEX_FILE)
github webrecorder / pywb / pywb / manager / manager.py View on Github external
def do_reindex(r):
        m = CollectionsManager(r.coll_name)
        m.reindex()
github webrecorder / pywb / pywb / manager / manager.py View on Github external
def do_add(r):
        m = CollectionsManager(r.coll_name)
        m.add_warcs(r.files)
github webrecorder / pywb / pywb / manager / manager.py View on Github external
def do_migrate(r):
        m = CollectionsManager('', must_exist=False)
        m.migrate_cdxj(r.path, r.force)
github webrecorder / pywb / pywb / manager / manager.py View on Github external
def do_add_template(r):
        m = CollectionsManager(r.coll_name, must_exist=False)
        if r.add:
            m.add_template(r.add, r.force)
        elif r.remove:
            m.remove_template(r.remove, r.force)
        elif r.list:
            m.list_templates()