### Progress Update Example Source: https://github.com/manrajgrover/halo/blob/master/examples/notebook.ipynb Shows how to dynamically update the spinner text to display progress, such as a download percentage. The example iterates from 0 to 100, updating the text at each step. ```python import time from halo import HaloNotebook as Halo spinner = Halo(text='Downloading dataset.zip', spinner='dots') try: spinner.start() for i in range(100): spinner.text = '{}% Downloaded dataset.zip'.format(i) time.sleep(0.05) spinner.succeed('Downloaded dataset.zip') except (KeyboardInterrupt, SystemExit): spinner.stop() ``` -------------------------------- ### Basic Spinner with Success and Failure Source: https://github.com/manrajgrover/halo/blob/master/examples/notebook.ipynb Illustrates the basic usage of Halo spinners, including starting, succeeding, failing, and persisting with a custom symbol. It handles potential interruptions gracefully. ```python import os import time os.sys.path.append(os.path.dirname(os.path.abspath('./'))) from halo import HaloNotebook as Halo success_message = 'Loading success' failed_message = 'Loading failed' unicorn_message = 'Loading unicorn' spinner = Halo(text=success_message, spinner='dots') try: spinner.start() time.sleep(1) spinner.succeed() spinner.start(failed_message) time.sleep(1) spinner.fail() spinner.start(unicorn_message) time.sleep(1) spinner.stop_and_persist(symbol='🦄'.encode('utf-8'), text=unicorn_message) except (KeyboardInterrupt, SystemExit): spinner.stop() ``` -------------------------------- ### Clone and Install Halo Project Dependencies (Bash) Source: https://github.com/manrajgrover/halo/blob/master/DEVELOPMENT.md Clones the Halo project repository and installs the project with its core dependencies using pip. It is recommended to use a virtual environment for this installation. ```bash git clone https://github.com/manrajgrover/halo.git cd halo pip install -e . ``` -------------------------------- ### Control Halo Spinner with Start and Stop Methods (Python) Source: https://context7.com/manrajgrover/halo/llms.txt Demonstrates manual control of the Halo spinner using `start()` and `stop()` methods. The `start()` method initiates the spinner animation on a separate thread and can optionally update the displayed text. The `stop()` method halts the animation and clears the line. This example includes restarting the spinner with new text. ```python from halo import Halo import time spinner = Halo(text='Initializing', spinner='dots') try: spinner.start() time.sleep(2) # Restart with new text spinner.stop() spinner.start('Processing phase 1') time.sleep(2) spinner.stop() spinner.start('Processing phase 2') time.sleep(2) spinner.stop() except (KeyboardInterrupt, SystemExit): spinner.stop() ``` -------------------------------- ### Install Halo Development Dependencies (Bash) Source: https://github.com/manrajgrover/halo/blob/master/DEVELOPMENT.md Installs the additional dependencies required for development, such as testing and linting tools, by installing from the 'requirements-dev.txt' file. ```bash pip install -r requirements-dev.txt ``` -------------------------------- ### Context Manager Usage Source: https://github.com/manrajgrover/halo/blob/master/examples/notebook.ipynb Shows two ways to use Halo as a context manager (`with` statement). The first example uses the default behavior, while the second demonstrates assigning the spinner object to a variable for more control. ```python import time from halo import HaloNotebook as Halo with Halo(text='Loading', spinner='dots'): # Run time consuming work here time.sleep(2) with Halo(text='Loading 2', spinner='dots') as spinner: # Run time consuming work here time.sleep(2) spinner.succeed('Done!') ``` -------------------------------- ### Import Halo Notebook Source: https://github.com/manrajgrover/halo/blob/master/examples/notebook.ipynb Imports the HaloNotebook class from the halo library, aliasing it as Halo for convenience in notebook environments. ```python from halo import HaloNotebook as Halo ``` -------------------------------- ### Marquee Text Animation Source: https://github.com/manrajgrover/halo/blob/master/examples/notebook.ipynb Demonstrates how to use the 'marquee' animation with Halo to create a scrolling text effect when the text exceeds the terminal width. It shows starting, waiting, and succeeding the spinner. ```python import time from halo import HaloNotebook as Halo spinner = Halo(text='This is a text that it is too long. In fact, it exceeds the eighty column standard ' \ 'terminal width, which forces the text frame renderer to add an ellipse at the end of the ' \ 'text. This should definitely make it more than 180!', spinner='dots', animation='marquee') try: spinner.start() time.sleep(5) spinner.succeed('End!') except (KeyboardInterrupt, SystemExit): spinner.stop() ``` -------------------------------- ### Install Halo Python Package Source: https://github.com/manrajgrover/halo/blob/master/README.md Installs the Halo library using pip, the standard Python package installer. This is the first step to using Halo for terminal spinners. ```shell pip install halo ``` -------------------------------- ### Custom Spinner Frames Source: https://github.com/manrajgrover/halo/blob/master/examples/notebook.ipynb Illustrates how to define a custom spinner animation by providing an interval and a list of frames. This allows for unique visual patterns beyond the built-in spinners. ```python import time from halo import HaloNotebook as Halo spinner = Halo( text='Custom Spins', spinner={ 'interval': 100, 'frames': ['-', '+', '*', '+', '-'] } ) try: spinner.start() time.sleep(2) spinner.succeed('It works!') except (KeyboardInterrupt, SystemExit): spinner.stop() ``` -------------------------------- ### Basic Halo Spinner Usage in Python Source: https://github.com/manrajgrover/halo/blob/master/README.md Demonstrates the fundamental usage of the Halo spinner in Python. It shows how to import the library, create a spinner instance with text and a spinner type, start it, perform a task, and then stop the spinner. ```python from halo import Halo spinner = Halo(text='Loading', spinner='dots') spinner.start() # Run time consuming work here # You can also change properties for spinner as and when you want spinner.stop() ``` -------------------------------- ### Use Halo Spinner as a Context Manager (Python) Source: https://context7.com/manrajgrover/halo/llms.txt Illustrates using the Halo spinner with Python's `with` statement. The spinner automatically starts upon entering the `with` block and stops upon exiting, ensuring cleanup even if exceptions occur. This example also shows chaining context managers for sequential tasks. ```python from halo import Halo import time # Simple context manager usage with Halo(text='Loading', spinner='dots'): # Run time consuming work here time.sleep(4) # Chained context managers for sequential tasks with Halo(text='Downloading files', spinner='dots'): time.sleep(2) with Halo(text='Processing data', spinner='dots'): time.sleep(2) with Halo(text='Saving results', spinner='dots'): time.sleep(2) ``` -------------------------------- ### Spinner and Color Customization Source: https://github.com/manrajgrover/halo/blob/master/examples/notebook.ipynb Demonstrates how to change the spinner symbol, text, and color dynamically during the execution of a task. It cycles through different states and ends with a persistent emoji. ```python import time from halo import HaloNotebook as Halo spinner = Halo(text='Such Spins', spinner='dots') try: spinner.start() time.sleep(1) spinner.text = 'Much Colors' spinner.color = 'magenta' time.sleep(1) spinner.text = 'Very emojis' spinner.spinner = 'hearts' time.sleep(1) spinner.stop_and_persist(symbol='🦄 '.encode('utf-8'), text='Wow!') except (KeyboardInterrupt, SystemExit): spinner.stop() ``` -------------------------------- ### Run All Tests with Tox (Bash) Source: https://github.com/manrajgrover/halo/blob/master/DEVELOPMENT.md Executes all defined test environments and linting checks using the tox command-line tool. This ensures the code passes all automated quality checks before submission. ```bash tox ``` -------------------------------- ### Custom Spinner Configuration in Python Source: https://github.com/manrajgrover/halo/blob/master/README.md Provides an example of configuring a Halo spinner with custom properties like text, color, spinner type, and animation. This allows for fine-grained control over the spinner's appearance and behavior. ```python from halo import Halo special_spinner = Halo(text='Customizing', spinner='hearts', color='magenta', animation='marquee') special_spinner.start() # Simulate work special_spinner.stop() ``` -------------------------------- ### Run Specific Tox Environment (Bash) Source: https://github.com/manrajgrover/halo/blob/master/DEVELOPMENT.md Allows running tests for a specific Python version or a particular check, such as linting, using the tox command with the '-e' flag. ```bash tox -e py36 tox -e lint ``` -------------------------------- ### Halo Spinner with Python 'with' Statement Source: https://github.com/manrajgrover/halo/blob/master/README.md Illustrates using Halo spinners with Python's `with` statement, providing a more concise way to manage the spinner's lifecycle. The spinner automatically starts and stops when entering and exiting the `with` block. ```python from halo import Halo with Halo(text='Loading', spinner='dots'): # Run time consuming work here ``` -------------------------------- ### Use Halo Spinner as a Decorator (Python) Source: https://context7.com/manrajgrover/halo/llms.txt Shows how to apply the Halo spinner as a decorator to Python functions. The spinner automatically wraps the function's execution, starting when the function is called and stopping when it returns. This simplifies adding spinners to existing functions. ```python from halo import Halo import time @Halo(text='Loading', spinner='dots') def long_running_function(): # Run time consuming work here time.sleep(5) return "completed" @Halo(text='Processing', spinner='hearts', color='magenta') def process_data(data): time.sleep(3) return f"Processed {len(data)} items" # Execute decorated functions result1 = long_running_function() result2 = process_data([1, 2, 3, 4, 5]) ``` -------------------------------- ### Text Animation for Long Text in Halo Source: https://context7.com/manrajgrover/halo/llms.txt Explains how Halo handles text that exceeds terminal width using 'bounce' or 'marquee' animations. Without animation, long text is truncated with an ellipsis. The example shows both marquee and bounce animations. ```python from halo import Halo import time # Marquee animation - text scrolls continuously long_text = ('This is a text that it is too long. In fact, it exceeds the eighty column ' 'standard terminal width, which forces the text frame renderer to add an ' 'ellipse at the end of the text.') spinner = Halo( text=long_text, spinner='dots', animation='marquee' # Text scrolls like a news ticker ) try: spinner.start() time.sleep(10) spinner.succeed('Finished!') except (KeyboardInterrupt, SystemExit): spinner.stop() # Bounce animation - text bounces back and forth spinner = Halo( text=long_text, spinner='dots', animation='bounce' # Text bounces left to right ) spinner.start() time.sleep(10) spinner.stop() ``` -------------------------------- ### Initialize Halo Spinner with Custom Options (Python) Source: https://context7.com/manrajgrover/halo/llms.txt Demonstrates initializing the Halo spinner with various customization parameters such as text, spinner style, colors, placement, animation, interval, and enablement. It also shows how to use a custom spinner defined by user-provided frames and interval. ```python from halo import Halo import time # Basic spinner with default settings spinner = Halo(text='Loading', spinner='dots') spinner.start() time.sleep(3) spinner.stop() # Fully customized spinner spinner = Halo( text='Processing data', spinner='dots', # Spinner style: 'dots', 'line', 'hearts', etc. color='cyan', # Spinner color: 'grey', 'red', 'green', 'yellow', 'blue', 'magenta', 'cyan', 'white' text_color='green', # Text color (same options as color) placement='left', # Spinner position: 'left' or 'right' animation='marquee', # Text animation for long text: 'bounce' or 'marquee' interval=100, # Frame interval in milliseconds enabled=True # Enable/disable spinner ) spinner.start() time.sleep(3) spinner.stop() # Custom spinner with user-defined frames custom_spinner = Halo( text='Custom Spins', spinner={ 'interval': 100, 'frames': ['-', '+', '*', '+', '-'] } ) custom_spinner.start() time.sleep(2) custom_spinner.succeed('It works!') ``` -------------------------------- ### Halo Spinner Initialization Source: https://github.com/manrajgrover/halo/blob/master/README.md Initializes a Halo spinner with various customizable options. ```APIDOC ## Halo Spinner Initialization ### Description Initializes a Halo spinner with various customizable options. ### Method `Halo([text|text_color|spinner|animation|placement|color|interval|stream|enabled])` ### Parameters #### Text - **text** (str) - Text shown along with spinner. #### Text Color - **text_color** (str) - Required - Color of the spinner text. Defaults to `None`. - *Values*: `grey`, `red`, `green`, `yellow`, `blue`, `magenta`, `cyan`, `white` #### Spinner - **spinner** (str|dict) - The spinner style. Can be a string name from `cli-spinners` or a custom dict with `interval` and `frames`. - Defaults to `dots` (or `line` on Windows). #### Animation - **animation** (str) - Animation to apply to the text if it's too large. If not defined, text will be ellipsed. - *Values*: `bounce`, `marquee` #### Placement - **placement** (str) - Which side of the text the spinner should be displayed. - *Values*: `left`, `right` - Defaults to `left`. #### Color - **color** (str) - Color of the spinner. - *Values*: `grey`, `red`, `green`, `yellow`, `blue`, `magenta`, `cyan`, `white` - Defaults to `cyan`. #### Interval - **interval** (float) - Interval between each frame. Defaults to the spinner's recommended interval. #### Stream - **stream** (file) - Stream to write the output. Defaults to `sys.stdout`. #### Enabled - **enabled** (bool) - Enable or disable the spinner. Defaults to `True`. ### Request Example ```python from halo import Halo spinner = Halo(text='Loading data...', spinner='dots', color='blue') ``` ### Response #### Success Response (Instance) - **spinner** (Halo) - The initialized spinner instance. #### Response Example ```python # Spinner instance is returned upon initialization ``` ``` -------------------------------- ### Using HaloNotebook for Jupyter Environments Source: https://context7.com/manrajgrover/halo/llms.txt Introduces the `HaloNotebook` class, an extension of `Halo` designed for Jupyter notebooks and IPython. It leverages IPython widgets to render spinners directly within notebook cells, providing an integrated user experience. ```python from halo import HaloNotebook import time # In Jupyter notebook spinner = HaloNotebook(text='Processing', spinner='dots') spinner.start() time.sleep(3) spinner.succeed('Done!') # With context manager in notebook with HaloNotebook(text='Computing results', spinner='dots'): time.sleep(5) ``` -------------------------------- ### Halo Spinner Methods Source: https://github.com/manrajgrover/halo/blob/master/README.md Methods for controlling the spinner's lifecycle and appearance. ```APIDOC ## Halo Spinner Methods ### Description Methods for controlling the spinner's lifecycle and appearance. #### `spinner.start([text])` ##### Description Starts the spinner. If `text` is passed, it is set as spinner text. ##### Parameters - **text** (str) - Optional text to display when starting the spinner. ##### Returns - **Halo** - The spinner instance. #### `spinner.stop()` ##### Description Stops and clears the spinner. ##### Returns - **Halo** - The spinner instance. #### `spinner.clear()` ##### Description Clears the spinner from the terminal. ##### Returns - **Halo** - The spinner instance. #### `spinner.render()` ##### Description Manually renders the next frame of the spinner. ##### Returns - **Halo** - The spinner instance. #### `spinner.frame()` ##### Description Returns the next frame to be rendered. ##### Returns - **str** - The next spinner frame. #### `spinner.succeed([text])` ##### Description Stops the spinner and replaces it with a success symbol (`✔`). Optionally updates the text. ##### Parameters - **text** (str) - Optional text to display after success. ##### Returns - **Halo** - The spinner instance. #### `spinner.fail([text])` ##### Description Stops the spinner and replaces it with a failure symbol (`✖`). Optionally updates the text. ##### Parameters - **text** (str) - Optional text to display after failure. ##### Returns - **Halo** - The spinner instance. #### `spinner.warn([text])` ##### Description Stops the spinner and replaces it with a warning symbol (`⚠`). Optionally updates the text. ##### Parameters - **text** (str) - Optional text to display after the warning. ##### Returns - **Halo** - The spinner instance. #### `spinner.info([text])` ##### Description Stops the spinner and replaces it with an info symbol (`ℹ`). Optionally updates the text. ##### Parameters - **text** (str) - Optional text to display after the info message. ##### Returns - **Halo** - The spinner instance. #### `spinner.stop_and_persist([symbol|text])` ##### Description Stops the spinner and replaces it with a custom symbol and text. ##### Parameters - **symbol** (str) - Optional symbol to replace the spinner with. Defaults to a space. - **text** (str) - Optional text to persist. Defaults to the current spinner text. ##### Returns - **Halo** - The spinner instance. ### Usage Examples ```python from halo import Halo import time spinner = Halo(text='Processing...', spinner='dots') spinner.start() time.sleep(2) spinner.succeed('Processing complete!') spinner.start('Waiting for input...') time.sleep(1) spinner.fail('Input timed out.') spinner.start('Saving...') time.sleep(1) spinner.stop_and_persist(symbol='💾', text='Saved successfully!') ``` ``` -------------------------------- ### Displaying Warning and Info Indicators with Halo Source: https://context7.com/manrajgrover/halo/llms.txt Demonstrates how to use `spinner.warn()` and `spinner.info()` to display warning (⚠) and information (ℹ) symbols with custom text. These methods are useful for providing immediate feedback on specific states during a process. ```python from halo import Halo import time spinner = Halo(spinner='dots') spinner.start('Checking disk space') time.sleep(1) spinner.warn('⚠ Low disk space') # "⚠ Low disk space" spinner.start('Scanning system') time.sleep(1) spinner.info('ℹ Found 5 items') # "ℹ Found 5 items" ``` -------------------------------- ### Simulating Progress Indicator with Halo Source: https://context7.com/manrajgrover/halo/llms.txt Demonstrates a common pattern using Halo to simulate a progress indicator by dynamically updating the spinner's text property. This allows displaying percentage completion or download status in the terminal. ```python from halo import Halo import time import random spinner = Halo(text='Downloading dataset.zip', spinner='dots') try: spinner.start() for i in range(101): spinner.text = f'{i}% Downloaded dataset.zip' time.sleep(0.05) # Simulate download time spinner.succeed('Downloaded dataset.zip') except (KeyboardInterrupt, SystemExit): spinner.stop() ``` -------------------------------- ### Halo Spinner Properties Source: https://github.com/manrajgrover/halo/blob/master/README.md Properties to dynamically change spinner attributes. ```APIDOC ## Halo Spinner Properties ### Description Properties to dynamically change spinner attributes after initialization. #### `spinner.text` ##### Description Gets or sets the text displayed alongside the spinner. ##### Type `str` #### `spinner.color` ##### Description Gets or sets the color of the spinner and its text. ##### Type `str` ##### Values `grey`, `red`, `green`, `yellow`, `blue`, `magenta`, `cyan`, `white` #### `spinner.spinner` ##### Description Gets or sets the spinner style. Can be a string name or a custom spinner dictionary. ##### Type `str | dict` ### Usage Examples ```python from halo import Halo import time spinner = Halo(text='Initial text', spinner='dots') spinner.start() time.sleep(1) spinner.text = 'Updated text' spinner.color = 'green' time.sleep(1) spinner.spinner = 'line' spinner.color = 'red' time.sleep(1) spinner.stop() ``` ``` -------------------------------- ### Display Halo Spinner Status Indicators (Python) Source: https://context7.com/manrajgrover/halo/llms.txt Explains and demonstrates the use of status indicator methods: `succeed()`, `fail()`, `warn()`, and `info()`. These methods stop the spinner and display a predefined Unicode symbol (checkmark, X, warning triangle, info circle) along with optional custom text to indicate the outcome of a task. ```python from halo import Halo import time spinner = Halo(spinner='dots') # Success indicator (✔) spinner.start('Downloading files') time.sleep(1) spinner.succeed() # Uses current text: "✔ Downloading files" # Failure indicator (✖) spinner.start('Connecting to server') time.sleep(1) spinner.fail('Connection timeout') # Custom text: "✖ Connection timeout" ``` -------------------------------- ### Halo Spinner as a Python Decorator Source: https://github.com/manrajgrover/halo/blob/master/README.md Shows how to use Halo as a decorator for Python functions. This approach automatically wraps the function execution with a spinner, making it easy to indicate that a function is running. ```python from halo import Halo @Halo(text='Loading', spinner='dots') def long_running_function(): # Run time consuming work here pass long_running_function() ``` -------------------------------- ### Dynamic Spinner Text and Color Change in Python Source: https://github.com/manrajgrover/halo/blob/master/README.md Shows how to dynamically change the text and color of an active Halo spinner. This can be used to provide real-time updates on the progress or status of a task. ```python from halo import Halo import time spinner = Halo(text='Initial text', spinner='dots') spinner.start() time.sleep(1) spinner.text = 'Updating text' spinner.color = 'yellow' time.sleep(1) spinner.stop() ``` -------------------------------- ### Customizing Spinner End State with stop_and_persist Source: https://context7.com/manrajgrover/halo/llms.txt Illustrates the `stop_and_persist()` method, which stops the spinner and displays a custom symbol and text. This is ideal for showing unique status indicators beyond the default success, failure, warning, or info messages. ```python from halo import Halo import time spinner = Halo(text='Loading', spinner='dots') try: spinner.start() time.sleep(2) spinner.stop_and_persist(symbol='🦄', text='Magic completed!') spinner.start('Another task') time.sleep(2) spinner.stop_and_persist(symbol='🚀', text='Launched successfully') spinner.start('Final task') time.sleep(2) spinner.stop_and_persist(symbol='💾', text='Data saved') except (KeyboardInterrupt, SystemExit): spinner.stop() ``` -------------------------------- ### Dynamically Updating Halo Spinner Properties Source: https://context7.com/manrajgrover/halo/llms.txt Shows how to modify spinner properties like text, color, text_color, and spinner style dynamically while the spinner is active. This capability is essential for providing real-time progress updates and visual feedback during lengthy operations. ```python from halo import Halo import time spinner = Halo(text='Starting', spinner='dots', color='cyan') try: spinner.start() time.sleep(1) # Update text dynamically spinner.text = 'Processing step 1' time.sleep(1) # Change spinner color spinner.color = 'magenta' spinner.text = 'Processing step 2' time.sleep(1) # Change text color spinner.text_color = 'green' spinner.text = 'Processing step 3' time.sleep(1) # Change spinner style entirely spinner.spinner = 'hearts' spinner.text = 'Almost done' time.sleep(1) spinner.stop_and_persist(symbol='✨', text='All done!') except (KeyboardInterrupt, SystemExit): spinner.stop() ``` -------------------------------- ### Halo Spinner Success Indicator in Python Source: https://github.com/manrajgrover/halo/blob/master/README.md Demonstrates how to stop a Halo spinner and indicate success using the `succeed` method. This method replaces the spinner with a success symbol (e.g., '✔') and can optionally update the displayed text. ```python from halo import Halo spinner = Halo(text='Processing') spinner.succeed('Processing complete!') ``` -------------------------------- ### Halo Spinner Information Indicator in Python Source: https://github.com/manrajgrover/halo/blob/master/README.md Demonstrates stopping a Halo spinner and indicating information using the `info` method. This method replaces the spinner with an information symbol (e.g., 'ℹ') and can optionally update the displayed text. ```python from halo import Halo spinner = Halo(text='Processing') spinner.info('Processing information.') ``` -------------------------------- ### Enabling and Disabling Halo Spinner Programmatically Source: https://context7.com/manrajgrover/halo/llms.txt Explains the `enabled` property of the Halo spinner, which allows for programmatic control over its visibility. This is particularly useful for conditional spinner display based on factors like verbose flags or whether the environment is a TTY. ```python from halo import Halo import time import sys # Disable spinner in non-interactive environments is_interactive = sys.stdout.isatty() spinner = Halo( text='Processing', spinner='dots', enabled=is_interactive # Only show spinner if running in terminal ) spinner.start() time.sleep(2) spinner.succeed('Complete') # Toggle enabled state dynamically spinner = Halo(text='Working', spinner='dots') spinner.start() time.sleep(1) spinner.enabled = False # Disable spinner time.sleep(1) spinner.enabled = True # Re-enable spinner time.sleep(1) spinner.stop() ``` -------------------------------- ### Halo Spinner Stop and Persist in Python Source: https://github.com/manrajgrover/halo/blob/master/README.md Explains how to stop a Halo spinner and persist a custom symbol and text using the `stop_and_persist` method. This is useful for displaying final status messages or results. ```python from halo import Halo spinner = Halo(text='Processing') spinner.stop_and_persist(symbol='🚀', text='Task completed successfully!') ``` -------------------------------- ### Halo Spinner Failure Indicator in Python Source: https://github.com/manrajgrover/halo/blob/master/README.md Illustrates stopping a Halo spinner and indicating failure using the `fail` method. This method replaces the spinner with a failure symbol (e.g., '✖') and can optionally update the displayed text. ```python from halo import Halo spinner = Halo(text='Processing') spinner.fail('Processing failed!') ``` -------------------------------- ### Halo Spinner Warning Indicator in Python Source: https://github.com/manrajgrover/halo/blob/master/README.md Shows how to stop a Halo spinner and indicate a warning using the `warn` method. This method replaces the spinner with a warning symbol (e.g., '⚠') and can optionally update the displayed text. ```python from halo import Halo spinner = Halo(text='Processing') spinner.warn('Processing encountered a warning.') ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.