# Copyright 2017 - 2023 Avram Lubkin, All Rights Reserved # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. """ Simple progress bar example """ import time from enlighten import get_manager def process_files(): """ Process files with a single progress bar """ with get_manager() as manager: with manager.counter(total=100, desc='Simple', unit='ticks') as pbar: for _ in range(100): time.sleep(0.05) pbar.update() if __name__ == '__main__': process_files()