repo_full_name
stringlengths
6
93
repo_url
stringlengths
25
112
repo_api_url
stringclasses
28 values
owner
stringclasses
28 values
repo_name
stringclasses
28 values
description
stringclasses
28 values
stars
int64
617
98.8k
forks
int64
31
355
watchers
int64
990
999
license
stringclasses
2 values
default_branch
stringclasses
2 values
repo_created_at
timestamp[s]date
2012-07-24 23:12:50
2025-06-16 08:07:28
repo_updated_at
timestamp[s]date
2026-02-23 15:23:15
2026-05-03 18:52:12
repo_topics
listlengths
0
13
repo_languages
unknown
is_fork
bool
1 class
open_issues
int64
3
104
file_path
stringlengths
3
208
file_name
stringclasses
509 values
file_extension
stringclasses
1 value
file_size_bytes
int64
101
84k
file_url
stringclasses
627 values
file_raw_url
stringclasses
627 values
file_sha
stringclasses
624 values
language
stringclasses
8 values
parsed_at
stringdate
2026-05-04 01:12:36
2026-05-04 19:41:55
text
stringlengths
100
102k
ageitgey/face_recognition
https://github.com/ageitgey/face_recognition
null
null
null
null
56,369
null
null
mit
null
null
null
null
null
null
null
examples/blur_faces_on_webcam.py
null
null
null
null
null
null
Python
2026-05-04T02:18:24.587227
import face_recognition import cv2 # This is a demo of blurring faces in video. # PLEASE NOTE: This example requires OpenCV (the `cv2` library) to be installed only to read from your webcam. # OpenCV is *not* required to use the face_recognition library. It's only required if you want to run this # specific demo. If ...
ageitgey/face_recognition
https://github.com/ageitgey/face_recognition
null
null
null
null
56,369
null
null
mit
null
null
null
null
null
null
null
examples/facerec_from_video_file.py
null
null
null
null
null
null
Python
2026-05-04T02:18:24.588308
import face_recognition import cv2 # This is a demo of running face recognition on a video file and saving the results to a new video file. # # PLEASE NOTE: This example requires OpenCV (the `cv2` library) to be installed only to read from your webcam. # OpenCV is *not* required to use the face_recognition library. It...
ageitgey/face_recognition
https://github.com/ageitgey/face_recognition
null
null
null
null
56,369
null
null
mit
null
null
null
null
null
null
null
examples/facerec_from_webcam.py
null
null
null
null
null
null
Python
2026-05-04T02:18:24.616347
import face_recognition import cv2 import numpy as np # This is a super simple (but slow) example of running face recognition on live video from your webcam. # There's a second example that's a little more complicated but runs faster. # PLEASE NOTE: This example requires OpenCV (the `cv2` library) to be installed onl...
ageitgey/face_recognition
https://github.com/ageitgey/face_recognition
null
null
null
null
56,369
null
null
mit
null
null
null
null
null
null
null
examples/digital_makeup.py
null
null
null
null
null
null
Python
2026-05-04T02:18:24.617361
from PIL import Image, ImageDraw import face_recognition # Load the jpg file into a numpy array image = face_recognition.load_image_file("biden.jpg") # Find all facial features in all the faces in the image face_landmarks_list = face_recognition.face_landmarks(image) pil_image = Image.fromarray(image) for face_landm...
ageitgey/face_recognition
https://github.com/ageitgey/face_recognition
null
null
null
null
56,369
null
null
mit
null
null
null
null
null
null
null
examples/find_faces_in_picture.py
null
null
null
null
null
null
Python
2026-05-04T02:18:25.254702
from PIL import Image import face_recognition # Load the jpg file into a numpy array image = face_recognition.load_image_file("biden.jpg") # Find all the faces in the image using the default HOG-based model. # This method is fairly accurate, but not as accurate as the CNN model and not GPU accelerated. # See also: fi...
ageitgey/face_recognition
https://github.com/ageitgey/face_recognition
null
null
null
null
56,369
null
null
mit
null
null
null
null
null
null
null
examples/facerec_on_raspberry_pi_Simplified_Chinese.py
null
null
null
null
null
null
Python
2026-05-04T02:18:25.255982
# 这是一个在树莓派上运行人脸识别的案例 # 本案例会在命令行控制面板上输出识别出的人脸数量和身份结果。 # 你需要一个2代以上的树莓派,并在树莓派上安装face_recognition,并连接上picamera摄像头 # 并确保picamera这个模块已经安装(树莓派一般会内置安装) # 你可以参考这个教程配制你的树莓派: # https://gist.github.com/ageitgey/1ac8dbe8572f3f533df6269dab35df65 import face_recognition import picamera import numpy as np # 你需要在sudo raspi-config中把c...
ageitgey/face_recognition
https://github.com/ageitgey/face_recognition
null
null
null
null
56,369
null
null
mit
null
null
null
null
null
null
null
examples/facerec_on_raspberry_pi.py
null
null
null
null
null
null
Python
2026-05-04T02:18:25.256974
# This is a demo of running face recognition on a Raspberry Pi. # This program will print out the names of anyone it recognizes to the console. # To run this, you need a Raspberry Pi 2 (or greater) with face_recognition and # the picamera[array] module installed. # You can follow this installation instructions to get ...
ageitgey/face_recognition
https://github.com/ageitgey/face_recognition
null
null
null
null
56,369
null
null
mit
null
null
null
null
null
null
null
examples/identify_and_draw_boxes_on_faces.py
null
null
null
null
null
null
Python
2026-05-04T02:18:25.272805
import face_recognition from PIL import Image, ImageDraw import numpy as np # This is an example of running face recognition on a single image # and drawing a box around each person that was identified. # Load a sample picture and learn how to recognize it. obama_image = face_recognition.load_image_file("obama.jpg") ...
ageitgey/face_recognition
https://github.com/ageitgey/face_recognition
null
null
null
null
56,369
null
null
mit
null
null
null
null
null
null
null
examples/find_facial_features_in_picture.py
null
null
null
null
null
null
Python
2026-05-04T02:18:25.273387
from PIL import Image, ImageDraw import face_recognition # Load the jpg file into a numpy array image = face_recognition.load_image_file("two_people.jpg") # Find all facial features in all the faces in the image face_landmarks_list = face_recognition.face_landmarks(image) print("I found {} face(s) in this photograph...
ageitgey/face_recognition
https://github.com/ageitgey/face_recognition
null
null
null
null
56,369
null
null
mit
null
null
null
null
null
null
null
examples/facerec_ipcamera_knn.py
null
null
null
null
null
null
Python
2026-05-04T02:18:25.274959
""" This is an example of using the k-nearest-neighbors (KNN) algorithm for face recognition. When should I use this example? This example is useful when you wish to recognize a large set of known people, and make a prediction for an unknown person in a feasible computation time. Algorithm Description: The knn classi...
ageitgey/face_recognition
https://github.com/ageitgey/face_recognition
null
null
null
null
56,369
null
null
mit
null
null
null
null
null
null
null
examples/facerec_from_webcam_faster.py
null
null
null
null
null
null
Python
2026-05-04T02:18:25.347590
import face_recognition import cv2 import numpy as np # This is a demo of running face recognition on live video from your webcam. It's a little more complicated than the # other example, but it includes some basic performance tweaks to make things run a lot faster: # 1. Process each video frame at 1/4 resolution (t...
ageitgey/face_recognition
https://github.com/ageitgey/face_recognition
null
null
null
null
56,369
null
null
mit
null
null
null
null
null
null
null
examples/facerec_from_webcam_multiprocessing.py
null
null
null
null
null
null
Python
2026-05-04T02:18:25.348821
import face_recognition import cv2 from multiprocessing import Process, Manager, cpu_count, set_start_method import time import numpy import threading import platform # This is a little bit complicated (but fast) example of running face recognition on live video from your webcam. # This example is using multiprocess....
ageitgey/face_recognition
https://github.com/ageitgey/face_recognition
null
null
null
null
56,369
null
null
mit
null
null
null
null
null
null
null
examples/find_faces_in_batches.py
null
null
null
null
null
null
Python
2026-05-04T02:18:25.501041
import face_recognition import cv2 # This code finds all faces in a list of images using the CNN model. # # This demo is for the _special case_ when you need to find faces in LOTS of images very quickly and all the images # are the exact same size. This is common in video processing applications where you have lots of...
ageitgey/face_recognition
https://github.com/ageitgey/face_recognition
null
null
null
null
56,369
null
null
mit
null
null
null
null
null
null
null
examples/find_faces_in_picture_cnn.py
null
null
null
null
null
null
Python
2026-05-04T02:18:25.508236
from PIL import Image import face_recognition # Load the jpg file into a numpy array image = face_recognition.load_image_file("biden.jpg") # Find all the faces in the image using a pre-trained convolutional neural network. # This method is more accurate than the default HOG model, but it's slower # unless you have an...
ageitgey/face_recognition
https://github.com/ageitgey/face_recognition
null
null
null
null
56,369
null
null
mit
null
null
null
null
null
null
null
examples/web_service_example.py
null
null
null
null
null
null
Python
2026-05-04T02:18:26.940694
# This is a _very simple_ example of a web service that recognizes faces in uploaded images. # Upload an image file and it will check if the image contains a picture of Barack Obama. # The result is returned as json. For example: # # $ curl -XPOST -F "file=@obama2.jpg" http://127.0.0.1:5001 # # Returns: # # { # "face_...
ageitgey/face_recognition
https://github.com/ageitgey/face_recognition
null
null
null
null
56,369
null
null
mit
null
null
null
null
null
null
null
setup.py
null
null
null
null
null
null
Python
2026-05-04T02:18:26.942329
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read() requirements = [ 'face_recognition_models>=0.3.0', 'Click>=6.0', 'dlib>=19.7', ...
ageitgey/face_recognition
https://github.com/ageitgey/face_recognition
null
null
null
null
56,369
null
null
mit
null
null
null
null
null
null
null
face_recognition/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:18:26.943838
# -*- coding: utf-8 -*- __author__ = """Adam Geitgey""" __email__ = 'ageitgey@gmail.com' __version__ = '1.4.0' from .api import load_image_file, face_locations, batch_face_locations, face_landmarks, face_encodings, compare_faces, face_distance
ageitgey/face_recognition
https://github.com/ageitgey/face_recognition
null
null
null
null
56,369
null
null
mit
null
null
null
null
null
null
null
examples/web_service_example_Simplified_Chinese.py
null
null
null
null
null
null
Python
2026-05-04T02:18:26.944546
# 这是一个非常简单的使用Web服务上传图片运行人脸识别的案例,后端服务器会识别这张图片是不是奥巴马,并把识别结果以json键值对输出 # 比如:运行以下代码 # $ curl -XPOST -F "file=@obama2.jpg" http://127.0.0.1:5001 # 会返回: # { # "face_found_in_image": true, # "is_picture_of_obama": true # } # # 本项目基于Flask框架的案例 http://flask.pocoo.org/docs/0.12/patterns/fileuploads/ # 提示:运行本案例需要安装Flask,你可以用下面...
ageitgey/face_recognition
https://github.com/ageitgey/face_recognition
null
null
null
null
56,369
null
null
mit
null
null
null
null
null
null
null
examples/recognize_faces_in_pictures.py
null
null
null
null
null
null
Python
2026-05-04T02:18:27.975402
import face_recognition # Load the jpg files into numpy arrays biden_image = face_recognition.load_image_file("biden.jpg") obama_image = face_recognition.load_image_file("obama.jpg") unknown_image = face_recognition.load_image_file("obama2.jpg") # Get the face encodings for each face in each image file # Since there ...
ageitgey/face_recognition
https://github.com/ageitgey/face_recognition
null
null
null
null
56,369
null
null
mit
null
null
null
null
null
null
null
face_recognition/api.py
null
null
null
null
null
null
Python
2026-05-04T02:18:27.975850
# -*- coding: utf-8 -*- import PIL.Image import dlib import numpy as np from PIL import ImageFile try: import face_recognition_models except Exception: print("Please install `face_recognition_models` with this command before using `face_recognition`:\n") print("pip install git+https://github.com/ageitgey/...
ageitgey/face_recognition
https://github.com/ageitgey/face_recognition
null
null
null
null
56,369
null
null
mit
null
null
null
null
null
null
null
face_recognition/face_detection_cli.py
null
null
null
null
null
null
Python
2026-05-04T02:18:28.149299
# -*- coding: utf-8 -*- from __future__ import print_function import click import os import re import face_recognition.api as face_recognition import multiprocessing import sys import itertools def print_result(filename, location): top, right, bottom, left = location print("{},{},{},{},{}".format(filename, to...
ageitgey/face_recognition
https://github.com/ageitgey/face_recognition
null
null
null
null
56,369
null
null
mit
null
null
null
null
null
null
null
tests/test_face_recognition.py
null
null
null
null
null
null
Python
2026-05-04T02:18:28.150066
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_face_recognition ---------------------------------- Tests for `face_recognition` module. """ import unittest import os import numpy as np from click.testing import CliRunner from face_recognition import api from face_recognition import face_recognition_cli fro...
ageitgey/face_recognition
https://github.com/ageitgey/face_recognition
null
null
null
null
56,369
null
null
mit
null
null
null
null
null
null
null
face_recognition/face_recognition_cli.py
null
null
null
null
null
null
Python
2026-05-04T02:18:31.426395
# -*- coding: utf-8 -*- from __future__ import print_function import click import os import re import face_recognition.api as face_recognition import multiprocessing import itertools import sys import PIL.Image import numpy as np def scan_known_people(known_people_folder): known_names = [] known_face_encoding...
Textualize/rich
https://github.com/Textualize/rich
null
null
null
null
56,239
null
null
mit
null
null
null
null
null
null
null
benchmarks/benchmarks.py
null
null
null
null
null
null
Python
2026-05-04T02:18:34.340706
from io import StringIO from benchmarks import snippets from rich.color import Color, ColorSystem from rich.console import Console from rich.pretty import Pretty from rich.segment import Segment from rich.style import Style from rich.syntax import Syntax from rich.table import Table from rich.text import Text class ...
Textualize/rich
https://github.com/Textualize/rich
null
null
null
null
56,239
null
null
mit
null
null
null
null
null
null
null
docs/source/conf.py
null
null
null
null
null
null
Python
2026-05-04T02:18:34.425087
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
Textualize/rich
https://github.com/Textualize/rich
null
null
null
null
56,239
null
null
mit
null
null
null
null
null
null
null
examples/dynamic_progress.py
null
null
null
null
null
null
Python
2026-05-04T02:18:34.428606
""" Demonstrates how to create a dynamic group of progress bars, showing multi-level progress for multiple tasks (installing apps in the example), each of which consisting of multiple steps. """ import time from rich.console import Group from rich.panel import Panel from rich.live import Live from rich.progress imp...
Textualize/rich
https://github.com/Textualize/rich
null
null
null
null
56,239
null
null
mit
null
null
null
null
null
null
null
examples/downloader.py
null
null
null
null
null
null
Python
2026-05-04T02:18:34.430063
""" A rudimentary URL downloader (like wget or curl) to demonstrate Rich progress bars. """ import os.path import sys from concurrent.futures import ThreadPoolExecutor import signal from functools import partial from threading import Event from typing import Iterable from urllib.request import urlopen from rich.progr...
Textualize/rich
https://github.com/Textualize/rich
null
null
null
null
56,239
null
null
mit
null
null
null
null
null
null
null
benchmarks/snippets.py
null
null
null
null
null
null
Python
2026-05-04T02:18:34.458109
PYTHON_SNIPPET = ''' def layout_resolve(total: int, edges: Sequence[EdgeProtocol]) -> List[int]: """Divide total space to satisfy size, fraction, and min_size, constraints. The returned list of integers should add up to total in most cases, unless it is impossible to satisfy all the constraints. For instan...
Textualize/rich
https://github.com/Textualize/rich
null
null
null
null
56,239
null
null
mit
null
null
null
null
null
null
null
examples/attrs.py
null
null
null
null
null
null
Python
2026-05-04T02:18:34.467086
from typing import List try: import attr except ImportError: print("This example requires attrs library") print("pip install attrs") raise SystemExit() @attr.define class Point3D: x: float y: float z: float = 0 @attr.define class Triangle: point1: Point3D point2: Point3D poi...
Textualize/rich
https://github.com/Textualize/rich
null
null
null
null
56,239
null
null
mit
null
null
null
null
null
null
null
examples/columns.py
null
null
null
null
null
null
Python
2026-05-04T02:18:34.468301
""" This example shows how to display content in columns. The data is pulled from https://randomuser.me """ import json from urllib.request import urlopen from rich.console import Console from rich.columns import Columns from rich.panel import Panel def get_content(user): """Extract text from user dict.""" ...
Textualize/rich
https://github.com/Textualize/rich
null
null
null
null
56,239
null
null
mit
null
null
null
null
null
null
null
examples/bars.py
null
null
null
null
null
null
Python
2026-05-04T02:18:34.483954
""" Use Bar to renderer a sort-of circle. """ import math from rich.align import Align from rich.bar import Bar from rich.color import Color from rich import print SIZE = 40 for row in range(SIZE): y = (row / (SIZE - 1)) * 2 - 1 x = math.sqrt(1 - y * y) color = Color.from_rgb((1 + y) * 127.5, 0, 0) ...
Textualize/rich
https://github.com/Textualize/rich
null
null
null
null
56,239
null
null
mit
null
null
null
null
null
null
null
examples/cp_progress.py
null
null
null
null
null
null
Python
2026-05-04T02:18:34.489737
""" A very minimal `cp` clone that displays a progress bar. """ import os import shutil import sys from rich.progress import Progress if __name__ == "__main__": if len(sys.argv) == 3: with Progress() as progress: desc = os.path.basename(sys.argv[1]) with progress.open(sys.argv[1], ...
Textualize/rich
https://github.com/Textualize/rich
null
null
null
null
56,239
null
null
mit
null
null
null
null
null
null
null
examples/exception.py
null
null
null
null
null
null
Python
2026-05-04T02:18:34.958620
""" Basic example to show how to print an traceback of an exception """ from typing import List, Tuple from rich.console import Console console = Console() def divide_by(number: float, divisor: float) -> float: """Divide any number by zero.""" # Will throw a ZeroDivisionError if divisor is 0 result = nu...
Textualize/rich
https://github.com/Textualize/rich
null
null
null
null
56,239
null
null
mit
null
null
null
null
null
null
null
examples/highlighter.py
null
null
null
null
null
null
Python
2026-05-04T02:18:35.126234
""" This example demonstrates a simple text highlighter. """ from rich.console import Console from rich.highlighter import RegexHighlighter from rich.theme import Theme class EmailHighlighter(RegexHighlighter): """Apply style to anything that looks like an email.""" base_style = "example." highlights = ...
Textualize/rich
https://github.com/Textualize/rich
null
null
null
null
56,239
null
null
mit
null
null
null
null
null
null
null
examples/group.py
null
null
null
null
null
null
Python
2026-05-04T02:18:35.127280
from rich import print from rich.console import Group from rich.panel import Panel panel_group = Group( Panel("Hello", style="on blue"), Panel("World", style="on red"), ) print(Panel(panel_group))
Textualize/rich
https://github.com/Textualize/rich
null
null
null
null
56,239
null
null
mit
null
null
null
null
null
null
null
examples/fullscreen.py
null
null
null
null
null
null
Python
2026-05-04T02:18:35.130349
""" Demonstrates a Rich "application" using the Layout and Live classes. """ from datetime import datetime from rich import box from rich.align import Align from rich.console import Console, Group from rich.layout import Layout from rich.panel import Panel from rich.progress import BarColumn, Progress, SpinnerColumn...
Textualize/rich
https://github.com/Textualize/rich
null
null
null
null
56,239
null
null
mit
null
null
null
null
null
null
null
examples/justify2.py
null
null
null
null
null
null
Python
2026-05-04T02:18:35.131423
""" This example demonstrates the justify argument to print. """ from rich.console import Console from rich.panel import Panel console = Console(width=20) style = "bold white on blue" panel = Panel("Rich", style="on red", expand=False) console.print(panel, style=style) console.print(panel, style=style, justify="left...
Textualize/rich
https://github.com/Textualize/rich
null
null
null
null
56,239
null
null
mit
null
null
null
null
null
null
null
examples/export.py
null
null
null
null
null
null
Python
2026-05-04T02:18:35.132311
""" Demonstrates export console output """ from rich.console import Console from rich.table import Table console = Console(record=True) def print_table(): table = Table(title="Star Wars Movies") table.add_column("Released", style="cyan", no_wrap=True) table.add_column("Title", style="magenta") tabl...
Textualize/rich
https://github.com/Textualize/rich
null
null
null
null
56,239
null
null
mit
null
null
null
null
null
null
null
examples/file_progress.py
null
null
null
null
null
null
Python
2026-05-04T02:18:35.165232
from time import sleep from urllib.request import urlopen from rich.progress import wrap_file # Read a URL with urlopen response = urlopen("https://www.textualize.io") # Get the size from the headers size = int(response.headers["Content-Length"]) # Wrap the response so that it update progress with wrap_file(respons...
Textualize/rich
https://github.com/Textualize/rich
null
null
null
null
56,239
null
null
mit
null
null
null
null
null
null
null
examples/justify.py
null
null
null
null
null
null
Python
2026-05-04T02:18:35.189589
""" This example demonstrates the justify argument to print. """ from rich.console import Console console = Console(width=20) style = "bold white on blue" console.print("Rich", style=style) console.print("Rich", style=style, justify="left") console.print("Rich", style=style, justify="center") console.print("Rich", s...
Textualize/rich
https://github.com/Textualize/rich
null
null
null
null
56,239
null
null
mit
null
null
null
null
null
null
null
examples/jobs.py
null
null
null
null
null
null
Python
2026-05-04T02:18:35.190137
from time import sleep from rich.panel import Panel from rich.progress import Progress JOBS = [100, 150, 25, 70, 110, 90] progress = Progress(auto_refresh=False) master_task = progress.add_task("overall", total=sum(JOBS)) jobs_task = progress.add_task("jobs") progress.console.print( Panel( "[bold blue]A...
Textualize/rich
https://github.com/Textualize/rich
null
null
null
null
56,239
null
null
mit
null
null
null
null
null
null
null
examples/group2.py
null
null
null
null
null
null
Python
2026-05-04T02:18:35.238776
from rich import print from rich.console import group from rich.panel import Panel @group() def get_panels(): yield Panel("Hello", style="on blue") yield Panel("World", style="on red") print(Panel(get_panels()))
Textualize/rich
https://github.com/Textualize/rich
null
null
null
null
56,239
null
null
mit
null
null
null
null
null
null
null
examples/layout.py
null
null
null
null
null
null
Python
2026-05-04T02:18:35.552624
""" Demonstrates a dynamic Layout """ from datetime import datetime from time import sleep from rich.align import Align from rich.console import Console from rich.layout import Layout from rich.live import Live from rich.text import Text console = Console() layout = Layout() layout.split( Layout(name="header...
Textualize/rich
https://github.com/Textualize/rich
null
null
null
null
56,239
null
null
mit
null
null
null
null
null
null
null
examples/link.py
null
null
null
null
null
null
Python
2026-05-04T02:18:35.736709
from rich import print print("If your terminal supports links, the following text should be clickable:") print("[link=https://www.willmcgugan.com][i]Visit [red]my[/red][/i] [yellow]Blog[/]")
Textualize/rich
https://github.com/Textualize/rich
null
null
null
null
56,239
null
null
mit
null
null
null
null
null
null
null
examples/log.py
null
null
null
null
null
null
Python
2026-05-04T02:18:35.755073
""" A simulation of Rich console logging. """ import time from rich.console import Console from rich.style import Style from rich.theme import Theme from rich.highlighter import RegexHighlighter class RequestHighlighter(RegexHighlighter): base_style = "req." highlights = [ r"^(?P<protocol>\w+) (?P<me...
Textualize/rich
https://github.com/Textualize/rich
null
null
null
null
56,239
null
null
mit
null
null
null
null
null
null
null
examples/overflow.py
null
null
null
null
null
null
Python
2026-05-04T02:18:35.756659
from typing import List from rich.console import Console, OverflowMethod console = Console(width=14) supercali = "supercalifragilisticexpialidocious" overflow_methods: List[OverflowMethod] = ["fold", "crop", "ellipsis"] for overflow in overflow_methods: console.rule(overflow) console.print(supercali, overflow...
Textualize/rich
https://github.com/Textualize/rich
null
null
null
null
56,239
null
null
mit
null
null
null
null
null
null
null
examples/listdir.py
null
null
null
null
null
null
Python
2026-05-04T02:18:35.762891
""" A very simple `ls` clone. If your terminal supports hyperlinks you should be able to launch files by clicking the filename (usually with cmd / ctrl). """ import os import sys from rich import print from rich.columns import Columns from rich.text import Text try: root_path = sys.argv[1] except IndexError: ...
Textualize/rich
https://github.com/Textualize/rich
null
null
null
null
56,239
null
null
mit
null
null
null
null
null
null
null
examples/live_progress.py
null
null
null
null
null
null
Python
2026-05-04T02:18:35.767250
""" Demonstrates the use of multiple Progress instances in a single Live display. """ from time import sleep from rich.live import Live from rich.panel import Panel from rich.progress import Progress, SpinnerColumn, BarColumn, TextColumn from rich.table import Table job_progress = Progress( "{task.descrip...
Textualize/rich
https://github.com/Textualize/rich
null
null
null
null
56,239
null
null
mit
null
null
null
null
null
null
null
examples/padding.py
null
null
null
null
null
null
Python
2026-05-04T02:18:35.797907
from rich import print from rich.padding import Padding test = Padding("Hello", (2, 4), style="on blue", expand=False) print(test)
Textualize/rich
https://github.com/Textualize/rich
null
null
null
null
56,239
null
null
mit
null
null
null
null
null
null
null
examples/recursive_error.py
null
null
null
null
null
null
Python
2026-05-04T02:18:35.820717
""" Demonstrates Rich tracebacks for recursion errors. Rich can exclude frames in the middle to avoid huge tracebacks. """ from rich.console import Console def foo(n): return bar(n) def bar(n): return foo(n) console = Console() try: foo(1) except Exception: console.print_exception(max_frames=...
Textualize/rich
https://github.com/Textualize/rich
null
null
null
null
56,239
null
null
mit
null
null
null
null
null
null
null
examples/print_calendar.py
null
null
null
null
null
null
Python
2026-05-04T02:18:35.848842
""" Builds calendar layout using Columns and Tables. Usage: python print_calendar.py [YEAR] Example: python print_calendar.py 2021 """ import argparse import calendar from datetime import datetime from rich.align import Align from rich import box from rich.columns import Columns from rich.console import Console from r...
Textualize/rich
https://github.com/Textualize/rich
null
null
null
null
56,239
null
null
mit
null
null
null
null
null
null
null
examples/rainbow.py
null
null
null
null
null
null
Python
2026-05-04T02:18:35.849464
""" This example demonstrates how to write a custom highlighter. """ from random import randint from rich import print from rich.highlighter import Highlighter class RainbowHighlighter(Highlighter): def highlight(self, text): for index in range(len(text)): text.stylize(f"color({randint(16,...
Textualize/rich
https://github.com/Textualize/rich
null
null
null
null
56,239
null
null
mit
null
null
null
null
null
null
null
examples/repr.py
null
null
null
null
null
null
Python
2026-05-04T02:18:36.126578
import rich.repr @rich.repr.auto class Bird: def __init__(self, name, eats=None, fly=True, extinct=False): self.name = name self.eats = list(eats) if eats else [] self.fly = fly self.extinct = extinct # Note that the repr is still generated without Rich # Try commenting out the f...
Textualize/rich
https://github.com/Textualize/rich
null
null
null
null
56,239
null
null
mit
null
null
null
null
null
null
null
examples/save_table_svg.py
null
null
null
null
null
null
Python
2026-05-04T02:18:36.330489
""" Demonstrates how to export a SVG """ from rich.console import Console from rich.table import Table table = Table(title="Star Wars Movies") table.add_column("Released", style="cyan", no_wrap=True) table.add_column("Title", style="magenta") table.add_column("Box Office", justify="right", style="green") table.add_...
Textualize/rich
https://github.com/Textualize/rich
null
null
null
null
56,239
null
null
mit
null
null
null
null
null
null
null
examples/spinners.py
null
null
null
null
null
null
Python
2026-05-04T02:18:36.383046
from time import sleep from rich.columns import Columns from rich.panel import Panel from rich.live import Live from rich.text import Text from rich.spinner import Spinner, SPINNERS all_spinners = Columns( [ Spinner(spinner_name, text=Text(repr(spinner_name), style="green")) for spinner_name in so...
Textualize/rich
https://github.com/Textualize/rich
null
null
null
null
56,239
null
null
mit
null
null
null
null
null
null
null
examples/screen.py
null
null
null
null
null
null
Python
2026-05-04T02:18:36.389338
""" Demonstration of Console.screen() """ from time import sleep from rich.align import Align from rich.console import Console from rich.panel import Panel console = Console() with console.screen(style="bold white on red") as screen: text = Align.center("[blink]Don't Panic![/blink]", vertical="middle") scr...
Textualize/rich
https://github.com/Textualize/rich
null
null
null
null
56,239
null
null
mit
null
null
null
null
null
null
null
examples/status.py
null
null
null
null
null
null
Python
2026-05-04T02:18:36.419515
from time import sleep from rich.console import Console console = Console() console.print() tasks = [f"task {n}" for n in range(1, 11)] with console.status("[bold green]Working on tasks...") as status: while tasks: task = tasks.pop(0) sleep(1) console.log(f"{task} complete")
Textualize/rich
https://github.com/Textualize/rich
null
null
null
null
56,239
null
null
mit
null
null
null
null
null
null
null
examples/suppress.py
null
null
null
null
null
null
Python
2026-05-04T02:18:36.420591
try: import click except ImportError: print("Please install click for this example") print(" pip install click") exit() from rich.traceback import install install(suppress=[click]) @click.command() @click.option("--count", default=1, help="Number of greetings.") def hello(count): """Simple pr...
Textualize/rich
https://github.com/Textualize/rich
null
null
null
null
56,239
null
null
mit
null
null
null
null
null
null
null
examples/table.py
null
null
null
null
null
null
Python
2026-05-04T02:18:36.434781
""" Demonstrates how to render a table. """ from rich.console import Console from rich.table import Table table = Table(title="Star Wars Movies") table.add_column("Released", style="cyan", no_wrap=True) table.add_column("Title", style="magenta") table.add_column("Box Office", justify="right", style="green") table.a...
Textualize/rich
https://github.com/Textualize/rich
null
null
null
null
56,239
null
null
mit
null
null
null
null
null
null
null
examples/top_lite_simulator.py
null
null
null
null
null
null
Python
2026-05-04T02:18:36.476200
"""Lite simulation of the top linux command.""" import datetime import random import time from dataclasses import dataclass from rich import box from rich.console import Console from rich.live import Live from rich.table import Table from typing import Literal @dataclass class Process: pid: int command: str ...
Textualize/rich
https://github.com/Textualize/rich
null
null
null
null
56,239
null
null
mit
null
null
null
null
null
null
null
examples/table_movie.py
null
null
null
null
null
null
Python
2026-05-04T02:18:36.501513
"""Same as the table_movie.py but uses Live to update""" import time from contextlib import contextmanager from rich import box from rich.align import Align from rich.console import Console from rich.live import Live from rich.table import Table from rich.text import Text TABLE_DATA = [ [ "May 25, 1977", ...
Textualize/rich
https://github.com/Textualize/rich
null
null
null
null
56,239
null
null
mit
null
null
null
null
null
null
null
examples/tree.py
null
null
null
null
null
null
Python
2026-05-04T02:18:36.572341
""" Demonstrates how to display a tree of files / directories with the Tree renderable. """ import os import pathlib import sys from rich import print from rich.filesize import decimal from rich.markup import escape from rich.text import Text from rich.tree import Tree def walk_directory(directory: pathlib.Path, tr...
Textualize/rich
https://github.com/Textualize/rich
null
null
null
null
56,239
null
null
mit
null
null
null
null
null
null
null
rich/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:18:36.680597
"""Rich text and beautiful formatting in the terminal.""" import os from typing import IO, TYPE_CHECKING, Any, Callable, Optional, Union from ._extension import load_ipython_extension # noqa: F401 __all__ = ["get_console", "reconfigure", "print", "inspect", "print_json"] if TYPE_CHECKING: from .console import ...
Textualize/rich
https://github.com/Textualize/rich
null
null
null
null
56,239
null
null
mit
null
null
null
null
null
null
null
rich/__main__.py
null
null
null
null
null
null
Python
2026-05-04T02:18:36.904652
import colorsys import io from time import process_time from rich import box from rich.color import Color from rich.console import Console, ConsoleOptions, Group, RenderableType, RenderResult from rich.markdown import Markdown from rich.measure import Measurement from rich.pretty import Pretty from rich.segment import...
Textualize/rich
https://github.com/Textualize/rich
null
null
null
null
56,239
null
null
mit
null
null
null
null
null
null
null
rich/_export_format.py
null
null
null
null
null
null
Python
2026-05-04T02:18:36.959889
CONSOLE_HTML_FORMAT = """\ <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <style> {stylesheet} body {{ color: {foreground}; background-color: {background}; }} </style> </head> <body> <pre style="font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace"><code style="font-family:inherit">{c...
Textualize/rich
https://github.com/Textualize/rich
null
null
null
null
56,239
null
null
mit
null
null
null
null
null
null
null
rich/_emoji_replace.py
null
null
null
null
null
null
Python
2026-05-04T02:18:36.973822
import re from typing import Callable, Match, Optional _ReStringMatch = Match[str] # regex match object _ReSubCallable = Callable[[_ReStringMatch], str] # Callable invoked by re.sub _EmojiSubMethod = Callable[[_ReSubCallable, str], str] # Sub method of a compiled re def _emoji_replace( text: str, default_...
Textualize/rich
https://github.com/Textualize/rich
null
null
null
null
56,239
null
null
mit
null
null
null
null
null
null
null
rich/_fileno.py
null
null
null
null
null
null
Python
2026-05-04T02:18:36.983358
from __future__ import annotations from typing import IO, Callable def get_fileno(file_like: IO[str]) -> int | None: """Get fileno() from a file, accounting for poorly implemented file-like objects. Args: file_like (IO): A file-like object. Returns: int | None: The result of fileno if a...
Textualize/rich
https://github.com/Textualize/rich
null
null
null
null
56,239
null
null
mit
null
null
null
null
null
null
null
rich/_inspect.py
null
null
null
null
null
null
Python
2026-05-04T02:18:37.045643
import inspect from inspect import cleandoc, getdoc, getfile, isclass, ismodule, signature from typing import Any, Collection, Iterable, Optional, Tuple, Type, Union from .console import Group, RenderableType from .control import escape_control_codes from .highlighter import ReprHighlighter from .jupyter import Jupyte...
Textualize/rich
https://github.com/Textualize/rich
null
null
null
null
56,239
null
null
mit
null
null
null
null
null
null
null
rich/_log_render.py
null
null
null
null
null
null
Python
2026-05-04T02:18:37.072808
from datetime import datetime from typing import Iterable, List, Optional, TYPE_CHECKING, Union, Callable from .text import Text, TextType if TYPE_CHECKING: from .console import Console, ConsoleRenderable, RenderableType from .table import Table FormatTimeCallable = Callable[[datetime], Text] class LogRen...
Textualize/rich
https://github.com/Textualize/rich
null
null
null
null
56,239
null
null
mit
null
null
null
null
null
null
null
rich/_extension.py
null
null
null
null
null
null
Python
2026-05-04T02:18:37.073316
from typing import Any def load_ipython_extension(ip: Any) -> None: # pragma: no cover # prevent circular import from rich.pretty import install from rich.traceback import install as tr_install install() tr_install()
Textualize/rich
https://github.com/Textualize/rich
null
null
null
null
56,239
null
null
mit
null
null
null
null
null
null
null
rich/_loop.py
null
null
null
null
null
null
Python
2026-05-04T02:18:37.130545
from typing import Iterable, Tuple, TypeVar T = TypeVar("T") def loop_first(values: Iterable[T]) -> Iterable[Tuple[bool, T]]: """Iterate and generate a tuple with a flag for first value.""" iter_values = iter(values) try: value = next(iter_values) except StopIteration: return yiel...
Textualize/rich
https://github.com/Textualize/rich
null
null
null
null
56,239
null
null
mit
null
null
null
null
null
null
null
rich/_null_file.py
null
null
null
null
null
null
Python
2026-05-04T02:18:37.157810
from types import TracebackType from typing import IO, Iterable, Iterator, List, Optional, Type class NullFile(IO[str]): def close(self) -> None: pass def isatty(self) -> bool: return False def read(self, __n: int = 1) -> str: return "" def readable(self) -> bool: re...
FoundationAgents/OpenManus
https://github.com/FoundationAgents/OpenManus
null
null
null
null
56,012
null
null
mit
null
null
null
null
null
null
null
app/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:18:39.581734
# Python version check: 3.11-3.13 import sys if sys.version_info < (3, 11) or sys.version_info > (3, 13): print( "Warning: Unsupported Python version {ver}, please use 3.11-3.13".format( ver=".".join(map(str, sys.version_info)) ) )
FoundationAgents/OpenManus
https://github.com/FoundationAgents/OpenManus
null
null
null
null
56,012
null
null
mit
null
null
null
null
null
null
null
app/agent/data_analysis.py
null
null
null
null
null
null
Python
2026-05-04T02:18:39.582779
from pydantic import Field from app.agent.toolcall import ToolCallAgent from app.config import config from app.prompt.visualization import NEXT_STEP_PROMPT, SYSTEM_PROMPT from app.tool import Terminate, ToolCollection from app.tool.chart_visualization.chart_prepare import VisualizationPrepare from app.tool.chart_visua...
FoundationAgents/OpenManus
https://github.com/FoundationAgents/OpenManus
null
null
null
null
56,012
null
null
mit
null
null
null
null
null
null
null
app/agent/react.py
null
null
null
null
null
null
Python
2026-05-04T02:18:39.585742
from abc import ABC, abstractmethod from typing import Optional from pydantic import Field from app.agent.base import BaseAgent from app.llm import LLM from app.schema import AgentState, Memory class ReActAgent(BaseAgent, ABC): name: str description: Optional[str] = None system_prompt: Optional[str] = ...
FoundationAgents/OpenManus
https://github.com/FoundationAgents/OpenManus
null
null
null
null
56,012
null
null
mit
null
null
null
null
null
null
null
app/agent/base.py
null
null
null
null
null
null
Python
2026-05-04T02:18:39.605766
from abc import ABC, abstractmethod from contextlib import asynccontextmanager from typing import List, Optional from pydantic import BaseModel, Field, model_validator from app.llm import LLM from app.logger import logger from app.sandbox.client import SANDBOX_CLIENT from app.schema import ROLE_TYPE, AgentState, Memo...
FoundationAgents/OpenManus
https://github.com/FoundationAgents/OpenManus
null
null
null
null
56,012
null
null
mit
null
null
null
null
null
null
null
app/agent/sandbox_agent.py
null
null
null
null
null
null
Python
2026-05-04T02:18:39.609390
from typing import Dict, List, Optional from pydantic import Field, model_validator from app.agent.browser import BrowserContextHelper from app.agent.toolcall import ToolCallAgent from app.config import config from app.daytona.sandbox import create_sandbox, delete_sandbox from app.daytona.tool_base import SandboxTool...
FoundationAgents/OpenManus
https://github.com/FoundationAgents/OpenManus
null
null
null
null
56,012
null
null
mit
null
null
null
null
null
null
null
app/agent/browser.py
null
null
null
null
null
null
Python
2026-05-04T02:18:39.621684
import json from typing import TYPE_CHECKING, Optional from pydantic import Field, model_validator from app.agent.toolcall import ToolCallAgent from app.logger import logger from app.prompt.browser import NEXT_STEP_PROMPT, SYSTEM_PROMPT from app.schema import Message, ToolChoice from app.tool import BrowserUseTool, T...
FoundationAgents/OpenManus
https://github.com/FoundationAgents/OpenManus
null
null
null
null
56,012
null
null
mit
null
null
null
null
null
null
null
app/agent/mcp.py
null
null
null
null
null
null
Python
2026-05-04T02:18:39.630038
from typing import Any, Dict, List, Optional, Tuple from pydantic import Field from app.agent.toolcall import ToolCallAgent from app.logger import logger from app.prompt.mcp import MULTIMEDIA_RESPONSE_PROMPT, NEXT_STEP_PROMPT, SYSTEM_PROMPT from app.schema import AgentState, Message from app.tool.base import ToolResu...
FoundationAgents/OpenManus
https://github.com/FoundationAgents/OpenManus
null
null
null
null
56,012
null
null
mit
null
null
null
null
null
null
null
app/agent/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:18:39.630555
from app.agent.base import BaseAgent from app.agent.browser import BrowserAgent from app.agent.mcp import MCPAgent from app.agent.react import ReActAgent from app.agent.swe import SWEAgent from app.agent.toolcall import ToolCallAgent __all__ = [ "BaseAgent", "BrowserAgent", "ReActAgent", "SWEAgent", ...
FoundationAgents/OpenManus
https://github.com/FoundationAgents/OpenManus
null
null
null
null
56,012
null
null
mit
null
null
null
null
null
null
null
app/agent/swe.py
null
null
null
null
null
null
Python
2026-05-04T02:18:39.639219
from typing import List from pydantic import Field from app.agent.toolcall import ToolCallAgent from app.prompt.swe import SYSTEM_PROMPT from app.tool import Bash, StrReplaceEditor, Terminate, ToolCollection class SWEAgent(ToolCallAgent): """An agent that implements the SWEAgent paradigm for executing code and ...
FoundationAgents/OpenManus
https://github.com/FoundationAgents/OpenManus
null
null
null
null
56,012
null
null
mit
null
null
null
null
null
null
null
app/agent/manus.py
null
null
null
null
null
null
Python
2026-05-04T02:18:39.640416
from typing import Dict, List, Optional from pydantic import Field, model_validator from app.agent.browser import BrowserContextHelper from app.agent.toolcall import ToolCallAgent from app.config import config from app.logger import logger from app.prompt.manus import NEXT_STEP_PROMPT, SYSTEM_PROMPT from app.tool imp...
FoundationAgents/OpenManus
https://github.com/FoundationAgents/OpenManus
null
null
null
null
56,012
null
null
mit
null
null
null
null
null
null
null
app/flow/base.py
null
null
null
null
null
null
Python
2026-05-04T02:18:40.455537
from abc import ABC, abstractmethod from typing import Dict, List, Optional, Union from pydantic import BaseModel from app.agent.base import BaseAgent class BaseFlow(BaseModel, ABC): """Base class for execution flows supporting multiple agents""" agents: Dict[str, BaseAgent] tools: Optional[List] = Non...
FoundationAgents/OpenManus
https://github.com/FoundationAgents/OpenManus
null
null
null
null
56,012
null
null
mit
null
null
null
null
null
null
null
app/config.py
null
null
null
null
null
null
Python
2026-05-04T02:18:40.457073
import json import threading import tomllib from pathlib import Path from typing import Dict, List, Optional from pydantic import BaseModel, Field def get_project_root() -> Path: """Get the project root directory""" return Path(__file__).resolve().parent.parent PROJECT_ROOT = get_project_root() WORKSPACE_R...
FoundationAgents/OpenManus
https://github.com/FoundationAgents/OpenManus
null
null
null
null
56,012
null
null
mit
null
null
null
null
null
null
null
app/flow/flow_factory.py
null
null
null
null
null
null
Python
2026-05-04T02:18:40.458332
from enum import Enum from typing import Dict, List, Union from app.agent.base import BaseAgent from app.flow.base import BaseFlow from app.flow.planning import PlanningFlow class FlowType(str, Enum): PLANNING = "planning" class FlowFactory: """Factory for creating different types of flows with support for...
FoundationAgents/OpenManus
https://github.com/FoundationAgents/OpenManus
null
null
null
null
56,012
null
null
mit
null
null
null
null
null
null
null
app/bedrock.py
null
null
null
null
null
null
Python
2026-05-04T02:18:40.459349
import json import sys import time import uuid from datetime import datetime from typing import Dict, List, Literal, Optional import boto3 # Global variables to track the current tool use ID across function calls # Tmp solution CURRENT_TOOLUSE_ID = None # Class to handle OpenAI-style response formatting class Open...
FoundationAgents/OpenManus
https://github.com/FoundationAgents/OpenManus
null
null
null
null
56,012
null
null
mit
null
null
null
null
null
null
null
app/exceptions.py
null
null
null
null
null
null
Python
2026-05-04T02:18:40.571466
class ToolError(Exception): """Raised when a tool encounters an error.""" def __init__(self, message): self.message = message class OpenManusError(Exception): """Base exception for all OpenManus errors""" class TokenLimitExceeded(OpenManusError): """Exception raised when the token limit is ...
FoundationAgents/OpenManus
https://github.com/FoundationAgents/OpenManus
null
null
null
null
56,012
null
null
mit
null
null
null
null
null
null
null
app/daytona/tool_base.py
null
null
null
null
null
null
Python
2026-05-04T02:18:41.322296
from dataclasses import dataclass, field from datetime import datetime from typing import Any, ClassVar, Dict, Optional from daytona import Daytona, DaytonaConfig, Sandbox, SandboxState from pydantic import Field from app.config import config from app.daytona.sandbox import create_sandbox, start_supervisord_session f...
FoundationAgents/OpenManus
https://github.com/FoundationAgents/OpenManus
null
null
null
null
56,012
null
null
mit
null
null
null
null
null
null
null
app/agent/toolcall.py
null
null
null
null
null
null
Python
2026-05-04T02:18:41.322848
import asyncio import json from typing import Any, List, Optional, Union from pydantic import Field from app.agent.react import ReActAgent from app.exceptions import TokenLimitExceeded from app.logger import logger from app.prompt.toolcall import NEXT_STEP_PROMPT, SYSTEM_PROMPT from app.schema import TOOL_CHOICE_TYPE...
FoundationAgents/OpenManus
https://github.com/FoundationAgents/OpenManus
null
null
null
null
56,012
null
null
mit
null
null
null
null
null
null
null
app/flow/planning.py
null
null
null
null
null
null
Python
2026-05-04T02:18:41.403326
import json import time from enum import Enum from typing import Dict, List, Optional, Union from pydantic import Field from app.agent.base import BaseAgent from app.flow.base import BaseFlow from app.llm import LLM from app.logger import logger from app.schema import AgentState, Message, ToolChoice from app.tool imp...
FoundationAgents/OpenManus
https://github.com/FoundationAgents/OpenManus
null
null
null
null
56,012
null
null
mit
null
null
null
null
null
null
null
app/daytona/sandbox.py
null
null
null
null
null
null
Python
2026-05-04T02:18:41.482509
import time from daytona import ( CreateSandboxFromImageParams, Daytona, DaytonaConfig, Resources, Sandbox, SandboxState, SessionExecuteRequest, ) from app.config import config from app.utils.logger import logger # load_dotenv() daytona_settings = config.daytona logger.info("Initializing...
FoundationAgents/OpenManus
https://github.com/FoundationAgents/OpenManus
null
null
null
null
56,012
null
null
mit
null
null
null
null
null
null
null
app/llm.py
null
null
null
null
null
null
Python
2026-05-04T02:18:41.484846
import math from typing import Dict, List, Optional, Union import tiktoken from openai import ( APIError, AsyncAzureOpenAI, AsyncOpenAI, AuthenticationError, OpenAIError, RateLimitError, ) from openai.types.chat import ChatCompletion, ChatCompletionMessage from tenacity import ( retry, ...
FoundationAgents/OpenManus
https://github.com/FoundationAgents/OpenManus
null
null
null
null
56,012
null
null
mit
null
null
null
null
null
null
null
app/logger.py
null
null
null
null
null
null
Python
2026-05-04T02:18:41.488054
import sys from datetime import datetime from loguru import logger as _logger from app.config import PROJECT_ROOT _print_level = "INFO" def define_log_level(print_level="INFO", logfile_level="DEBUG", name: str = None): """Adjust the log level to above level""" global _print_level _print_level = print_...
FoundationAgents/OpenManus
https://github.com/FoundationAgents/OpenManus
null
null
null
null
56,012
null
null
mit
null
null
null
null
null
null
null
app/mcp/server.py
null
null
null
null
null
null
Python
2026-05-04T02:18:41.515401
import logging import sys logging.basicConfig(level=logging.INFO, handlers=[logging.StreamHandler(sys.stderr)]) import argparse import asyncio import atexit import json from inspect import Parameter, Signature from typing import Any, Dict, Optional from mcp.server.fastmcp import FastMCP from app.logger import logg...
FoundationAgents/OpenManus
https://github.com/FoundationAgents/OpenManus
null
null
null
null
56,012
null
null
mit
null
null
null
null
null
null
null
app/prompt/browser.py
null
null
null
null
null
null
Python
2026-05-04T02:18:41.567191
SYSTEM_PROMPT = """\ You are an AI agent designed to automate browser tasks. Your goal is to accomplish the ultimate task following the rules. # Input Format Task Previous steps Current URL Open Tabs Interactive Elements [index]<type>text</type> - index: Numeric identifier for interaction - type: HTML element type (bu...
FoundationAgents/OpenManus
https://github.com/FoundationAgents/OpenManus
null
null
null
null
56,012
null
null
mit
null
null
null
null
null
null
null
app/prompt/manus.py
null
null
null
null
null
null
Python
2026-05-04T02:18:41.888490
SYSTEM_PROMPT = ( "You are OpenManus, an all-capable AI assistant, aimed at solving any task presented by the user. You have various tools at your disposal that you can call upon to efficiently complete complex requests. Whether it's programming, information retrieval, file processing, web browsing, or human intera...
FoundationAgents/OpenManus
https://github.com/FoundationAgents/OpenManus
null
null
null
null
56,012
null
null
mit
null
null
null
null
null
null
null
app/prompt/mcp.py
null
null
null
null
null
null
Python
2026-05-04T02:18:41.889731
"""Prompts for the MCP Agent.""" SYSTEM_PROMPT = """You are an AI assistant with access to a Model Context Protocol (MCP) server. You can use the tools provided by the MCP server to complete tasks. The MCP server will dynamically expose tools that you can use - always check the available tools first. When using an MC...
FoundationAgents/OpenManus
https://github.com/FoundationAgents/OpenManus
null
null
null
null
56,012
null
null
mit
null
null
null
null
null
null
null
app/prompt/planning.py
null
null
null
null
null
null
Python
2026-05-04T02:18:41.987115
PLANNING_SYSTEM_PROMPT = """ You are an expert Planning Agent tasked with solving problems efficiently through structured plans. Your job is: 1. Analyze requests to understand the task scope 2. Create a clear, actionable plan that makes meaningful progress with the `planning` tool 3. Execute steps using available tools...
FoundationAgents/OpenManus
https://github.com/FoundationAgents/OpenManus
null
null
null
null
56,012
null
null
mit
null
null
null
null
null
null
null
app/prompt/visualization.py
null
null
null
null
null
null
Python
2026-05-04T02:18:42.036776
SYSTEM_PROMPT = """You are an AI agent designed to data analysis / visualization task. You have various tools at your disposal that you can call upon to efficiently complete complex requests. # Note: 1. The workspace directory is: {directory}; Read / write file in workspace 2. Generate analysis conclusion report in the...
FoundationAgents/OpenManus
https://github.com/FoundationAgents/OpenManus
null
null
null
null
56,012
null
null
mit
null
null
null
null
null
null
null
app/prompt/swe.py
null
null
null
null
null
null
Python
2026-05-04T02:18:42.037930
SYSTEM_PROMPT = """SETTING: You are an autonomous programmer, and you're working directly in the command line with a special interface. The special interface consists of a file editor that shows you {{WINDOW}} lines of a file at a time. In addition to typical bash commands, you can also use specific commands to help y...