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
learnbyexample/TUI-apps
https://github.com/learnbyexample/TUI-apps
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
PythonExercises/exercises/fstring_braces.py
null
null
null
null
null
null
Python
2026-05-04T01:34:19.538599
def surround(ip): # add your solution here surround(5) surround('hello world') surround([1, 2])
learnbyexample/TUI-apps
https://github.com/learnbyexample/TUI-apps
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
PythonExercises/exercises/dictionary_sort.py
null
null
null
null
null
null
Python
2026-05-04T01:34:19.539229
def sort_by_value(d): # add your solution here marks = dict(Rahul=86, Ravi=92, Rohit=75, Rajan=79, Ram=95) assert sort_by_value(marks) == {'Rohit': 75, 'Rajan': 79, 'Rahul': 86, 'Ravi': 92, 'Ram': 95} assert sort_by_value({}) == {} assert sort_by_value({1: 'banana', 2: 'apple'}) == {2: 'apple', 1: 'banana'} print...
learnbyexample/TUI-apps
https://github.com/learnbyexample/TUI-apps
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
PythonExercises/exercises/count_nested_braces.py
null
null
null
null
null
null
Python
2026-05-04T01:34:19.541590
def max_nested_braces(expr): # add your solution here assert max_nested_braces('a*b') == 0 assert max_nested_braces('a*b+{}') == 1 assert max_nested_braces('a*{b+c}') == 1 assert max_nested_braces('{a+2}*{b+c}') == 1 assert max_nested_braces('a*{b+c*{e*3.14}}') == 2 assert max_nested_braces('{{a+2}*{b+c}+e}') == 2...
learnbyexample/TUI-apps
https://github.com/learnbyexample/TUI-apps
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
PythonExercises/exercises/iterable_duplicates.py
null
null
null
null
null
null
Python
2026-05-04T01:34:19.543212
def has_duplicates(iterable): # add your solution here assert has_duplicates('pip') == True assert has_duplicates(range(4)) == False assert has_duplicates([3, 2, 3.0]) == True assert has_duplicates({3.14, 5, 3, 3.14, 2, 1, 3}) == False assert has_duplicates((('a', 2), 3, ('b',), ('a', 2))) == True print('all test...
learnbyexample/TUI-apps
https://github.com/learnbyexample/TUI-apps
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
PythonExercises/exercises/list_of_words.py
null
null
null
null
null
null
Python
2026-05-04T01:34:20.252052
def extract_words(s): # add your solution here assert extract_words(' apple banana_cherry ') == ['apple', 'banana', 'cherry'] s = '"Hi", there! How *are* you? All fine here.' assert extract_words(s) == ['Hi', 'there', 'How', 'are', 'you', 'All', 'fine', 'here'] s = 'This-Is-A:Colon:Separated,Phrase' assert extrac...
learnbyexample/TUI-apps
https://github.com/learnbyexample/TUI-apps
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
PythonExercises/exercises/character_diff.py
null
null
null
null
null
null
Python
2026-05-04T01:34:20.353902
def one_char_diff(w1, w2): # add your solution here assert one_char_diff('A', 'b') assert one_char_diff('A', 'a') assert not one_char_diff('a', '') assert one_char_diff('do', 'do') assert one_char_diff('to', 'do') assert one_char_diff('to', 'tz') assert not one_char_diff('ab', '') assert not one_char_diff('ab', '...
learnbyexample/TUI-apps
https://github.com/learnbyexample/TUI-apps
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
PythonExercises/exercises/int_length.py
null
null
null
null
null
null
Python
2026-05-04T01:34:20.417067
def len_int(n): # add your solution here assert len_int(123) == 3 assert len_int(2) == 1 assert len_int(+42) == 2 assert len_int(-42) == 2 assert len_int(572342) == 6 assert len_int(962306349871524124750813401378124) == 33 try: len_int('a') except TypeError as e: assert str(e) == 'provide only integer inp...
learnbyexample/TUI-apps
https://github.com/learnbyexample/TUI-apps
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
PythonExercises/exercises/product_of_nums.py
null
null
null
null
null
null
Python
2026-05-04T01:34:20.973229
def product(iterable): # add your solution here from math import isclose assert isclose(product([-4, 2.3e12, 77.23, 982, 0b101]), -3.48863356e+18) assert product(range(2, 6)) == 120 assert product({42, 5, 1, -2, 3, -7}) == 8820 try: product(()) except TypeError as e: assert str(e) == 'at least one number ...
learnbyexample/TUI-apps
https://github.com/learnbyexample/TUI-apps
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
PythonExercises/exercises/numeric_palindrome.py
null
null
null
null
null
null
Python
2026-05-04T01:34:20.974471
def palindrome(start=1, stop=10000): # add your solution here expected_op = [1, 3, 5, 7, 9, 33, 99, 313, 585, 717, 7447, 9009] assert palindrome() == expected_op assert palindrome(42564, 73737) == [53235, 53835, 73737] print('all tests passed')
learnbyexample/TUI-apps
https://github.com/learnbyexample/TUI-apps
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
PythonExercises/exercises/min_max_iter.py
null
null
null
null
null
null
Python
2026-05-04T01:34:21.084835
def min_max(iterable): # add your solution here assert min_max('visualization') == ('a', 'z') assert min_max({10, -42, 53.2, -3}) == (-42, 53.2) assert min_max([0]) == (0, 0) assert min_max({'Raj': 86, 'Zak': 92, 'Joe': 75, 'Amy': 79}) == ('Amy', 'Zak') assert min_max(range(-2, 20, 4)) == (-2, 18) print('all test...
learnbyexample/TUI-apps
https://github.com/learnbyexample/TUI-apps
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
PythonExercises/exercises/square_cube.py
null
null
null
null
null
null
Python
2026-05-04T01:34:21.086799
def sqr_even_cube_odd(seq): # add your solution here assert sqr_even_cube_odd([321, 1, -4, 0, 5, 2]) == [33076161, 1, 16, 0, 125, 4] assert sqr_even_cube_odd((2, 4, 6)) == [4, 16, 36] print('all tests passed')
learnbyexample/TUI-apps
https://github.com/learnbyexample/TUI-apps
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
PythonExercises/exercises/sort_even_odd.py
null
null
null
null
null
null
Python
2026-05-04T01:34:21.095619
def sort(seq): # add your solution here assert sort([1, 4, 5, -2, 51, 3, 6, 22, 0]) == [22, 6, 4, 0, -2, 51, 5, 3, 1] assert sort((-99, 5, 33, 71)) == [71, 33, 5, -99] assert sort([4, 100, 42, 12, 0]) == [100, 42, 12, 4, 0] print('all tests passed')
learnbyexample/TUI-apps
https://github.com/learnbyexample/TUI-apps
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
PythonExercises/exercises/first_occurrence.py
null
null
null
null
null
null
Python
2026-05-04T01:34:21.105987
def remove_duplicates(seq): # add your solution here nums = [1, 4, 6, 22, 3, 5, 4, 3, 6, 2, 1, 51, 3, 1] assert remove_duplicates(nums) == [1, 4, 6, 22, 3, 5, 2, 51] assert remove_duplicates('abracadabra') == ['a', 'b', 'r', 'c', 'd'] print('all tests passed')
learnbyexample/TUI-apps
https://github.com/learnbyexample/TUI-apps
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
PythonExercises/exercises/string_styling.py
null
null
null
null
null
null
Python
2026-05-04T01:34:21.546241
def greeting(ip, style='-', spacing=6, char=' '): # add your solution here greeting('hi') greeting('hello', style='*', char='/') greeting('good day', spacing=20) greeting('pomegranate', style='=-=') greeting('fig', ':', 2, '=') ######### Expected output ######### ''' -------- hi -------- *********** ///hell...
learnbyexample/TUI-apps
https://github.com/learnbyexample/TUI-apps
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
PythonExercises/exercises/sum_file_numbers.py
null
null
null
null
null
null
Python
2026-05-04T01:34:21.649478
def sum_file_nums(ip_file, floating=False): # add your solution here filename = 'sample_files/n1.txt' # only integers expected_op = -335 assert sum_file_nums(filename) == expected_op # both integers and floating-point numbers expected_op = -3463.2599999999998 from math import isclose assert isclose(sum_file_nums...
learnbyexample/TUI-apps
https://github.com/learnbyexample/TUI-apps
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
PythonExercises/exercises/sum_numbers.py
null
null
null
null
null
null
Python
2026-05-04T01:34:21.656617
def sum_nums(): # add your solution here assert sum_nums() == 0 assert sum_nums(3, -8) == -5 assert sum_nums(1, 2, 3, 4, 5, initial=5) == 20 from math import isclose assert isclose(sum_nums(3.14, -341.5234e-6, 42, 4e2, 7.89), 453.0296584766) print('all tests passed')
learnbyexample/TUI-apps
https://github.com/learnbyexample/TUI-apps
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
PythonExercises/solutions/6by7.py
null
null
null
null
null
null
Python
2026-05-04T01:34:21.685885
def six_by_seven(num): if num % 42 == 0: return 'Universe' elif num % 7 == 0: return 'Good' elif num % 6 == 0: return 'Food' else: return 'Oops' assert six_by_seven(66) == 'Food' assert six_by_seven(13) == 'Oops' assert six_by_seven(42) == 'Universe' assert six_by_seven(...
learnbyexample/TUI-apps
https://github.com/learnbyexample/TUI-apps
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
PythonExercises/python_exercises.py
null
null
null
null
null
null
Python
2026-05-04T01:34:21.686915
from textual.app import App from textual.binding import Binding from textual.containers import Horizontal, VerticalScroll, Vertical from textual.widgets import Footer, Label, TextArea, Button from textual.widgets import MarkdownViewer, ContentSwitcher, DirectoryTree from textual.widgets import RadioButton, RadioSet fro...
learnbyexample/TUI-apps
https://github.com/learnbyexample/TUI-apps
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
PythonExercises/exercises/str_comparison.py
null
null
null
null
null
null
Python
2026-05-04T01:34:22.073829
def str_cmp(s1, s2): # add your solution here assert str_cmp('abc', 'Abc') assert str_cmp('Hi there', 'hi there') assert not str_cmp('foo', 'food') assert str_cmp('nice', 'nice') assert str_cmp('GoOd DaY', 'gOOd dAy') assert not str_cmp('how', 'who') print('all tests passed')
learnbyexample/TUI-apps
https://github.com/learnbyexample/TUI-apps
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
PythonExercises/solutions/dictionary_sort.py
null
null
null
null
null
null
Python
2026-05-04T01:34:22.515768
def sort_by_value(d): return {k:d[k] for k in sorted(d, key=lambda k: d[k])} marks = dict(Rahul=86, Ravi=92, Rohit=75, Rajan=79, Ram=95) assert sort_by_value(marks) == {'Rohit': 75, 'Rajan': 79, 'Rahul': 86, 'Ravi': 92, 'Ram': 95} assert sort_by_value({}) == {} assert sort_by_value({1: 'banana', 2: 'apple'}) == {2...
learnbyexample/TUI-apps
https://github.com/learnbyexample/TUI-apps
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
PythonExercises/solutions/first_occurrence.py
null
null
null
null
null
null
Python
2026-05-04T01:34:22.518807
def remove_duplicates(seq): return list(dict.fromkeys(seq)) nums = [1, 4, 6, 22, 3, 5, 4, 3, 6, 2, 1, 51, 3, 1] assert remove_duplicates(nums) == [1, 4, 6, 22, 3, 5, 2, 51] assert remove_duplicates('abracadabra') == ['a', 'b', 'r', 'c', 'd'] print('all tests passed')
learnbyexample/TUI-apps
https://github.com/learnbyexample/TUI-apps
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
PythonExercises/solutions/inner_product.py
null
null
null
null
null
null
Python
2026-05-04T01:34:23.081049
def sum_of_product(s1, s2): return sum(i * j for i, j in zip(s1, s2)) assert sum_of_product((1, 3, 5), [2, 4, 6]) == 44 assert sum_of_product([], []) == 0 from math import isclose assert isclose(sum_of_product(range(3, 12, 2), [3.14, 0, -12, 6, 0.4223]), -15.9347) print('all tests passed')
learnbyexample/TUI-apps
https://github.com/learnbyexample/TUI-apps
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
PythonExercises/solutions/int_length.py
null
null
null
null
null
null
Python
2026-05-04T01:34:23.138065
def len_int(n): if type(n) != int: raise TypeError('provide only integer input') str_n = str(abs(n)) return len(str_n) assert len_int(123) == 3 assert len_int(2) == 1 assert len_int(+42) == 2 assert len_int(-42) == 2 assert len_int(572342) == 6 assert len_int(962306349871524124750813401378124) == 3...
learnbyexample/TUI-apps
https://github.com/learnbyexample/TUI-apps
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
PythonExercises/solutions/iterable_duplicates.py
null
null
null
null
null
null
Python
2026-05-04T01:34:23.211360
def has_duplicates(iterable): return len(iterable) != len(set(iterable)) assert has_duplicates('pip') == True assert has_duplicates(range(4)) == False assert has_duplicates([3, 2, 3.0]) == True assert has_duplicates({3.14, 5, 3, 3.14, 2, 1, 3}) == False assert has_duplicates((('a', 2), 3, ('b',), ('a', 2))) == Tru...
learnbyexample/TUI-apps
https://github.com/learnbyexample/TUI-apps
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
PythonExercises/solutions/alphabetic_ordering.py
null
null
null
null
null
null
Python
2026-05-04T01:34:23.302245
def alphabetic_word(word): word = word.lower() wl = list(word) return wl == sorted(word) or wl == sorted(word, reverse=True) def alphabetic_sentence(sentence): return all(alphabetic_word(word) for word in sentence.split()) # ascending order assert alphabetic_word('AborT') assert alphabetic_word('acces...
learnbyexample/TUI-apps
https://github.com/learnbyexample/TUI-apps
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
PythonExercises/solutions/add_time_strings.py
null
null
null
null
null
null
Python
2026-05-04T01:34:23.354458
def add_time(t1, t2): h1, m1, s1 = t1.split(':') h2, m2, s2 = t2.split(':') c, s3 = divmod(int(s1) + int(s2), 60) c, m3 = divmod(c + int(m1) + int(m2), 60) d, h3 = divmod(c + int(h1) + int(h2), 24) return f'{d:02}-{h3:02}:{m3:02}:{s3:02}' assert add_time('01:02:03', '4:5:6') == '00-05:07:09' as...
learnbyexample/TUI-apps
https://github.com/learnbyexample/TUI-apps
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
PythonExercises/solutions/list_of_words.py
null
null
null
null
null
null
Python
2026-05-04T01:34:23.710422
import re def extract_words(s): return re.findall(r'[a-zA-Z]+', s) assert extract_words(' apple banana_cherry ') == ['apple', 'banana', 'cherry'] s = '"Hi", there! How *are* you? All fine here.' assert extract_words(s) == ['Hi', 'there', 'How', 'are', 'you', 'All', 'fine', 'here'] s = 'This-Is-A:Colon:Separated,...
learnbyexample/TUI-apps
https://github.com/learnbyexample/TUI-apps
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
PythonExercises/solutions/longest_words.py
null
null
null
null
null
null
Python
2026-05-04T01:34:23.789195
def longest(ip_file): with open(ip_file) as f: sorted_words = sorted(f.read().split(), key=len, reverse=True) op = set() if sorted_words: first = sorted_words[0] word_size = len(first) op.add(first) for w in sorted_words[1:]: if len(w) == word_size: op...
learnbyexample/TUI-apps
https://github.com/learnbyexample/TUI-apps
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
PythonExercises/solutions/min_max_iter.py
null
null
null
null
null
null
Python
2026-05-04T01:34:23.807261
def min_max(iterable): first = True for n in iterable: if first: minimum = maximum = n first = False continue if n > maximum: maximum = n if n < minimum: minimum = n return minimum, maximum assert min_max('visualization') =...
learnbyexample/TUI-apps
https://github.com/learnbyexample/TUI-apps
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
PythonExercises/solutions/numeric_palindrome.py
null
null
null
null
null
null
Python
2026-05-04T01:34:23.850407
def palindrome(start=1, stop=10000): op = [] for n in range(start, stop+1): dec_s = str(n) bin_s = f'{n:b}' if dec_s == dec_s[::-1] and bin_s == bin_s[::-1]: op.append(n) return op expected_op = [1, 3, 5, 7, 9, 33, 99, 313, 585, 717, 7447, 9009] assert palindrome() == ex...
learnbyexample/TUI-apps
https://github.com/learnbyexample/TUI-apps
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
PythonExercises/solutions/product_of_nums.py
null
null
null
null
null
null
Python
2026-05-04T01:34:23.954252
def product(iterable): if len(iterable) == 0: raise TypeError('at least one number expected') p = 1 for n in iterable: if type(n) not in (int, float): raise TypeError('int or float expected') p *= n return p from math import isclose assert isclose(product([-4, 2.3e1...
learnbyexample/TUI-apps
https://github.com/learnbyexample/TUI-apps
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
PythonExercises/exercises/longest_words.py
null
null
null
null
null
null
Python
2026-05-04T01:34:25.176768
def longest(ip_file): # add your solution here filename = 'sample_files/f1.txt' expected_op = {'rhinestone', 'PERISHABLE', 'invaluable'} longest(filename) == expected_op filename = 'sample_files/f2.txt' expected_op = {'beginning', 'REwoRkinG'} longest(filename) == expected_op filename = 'sample_files/f3.txt' exp...
learnbyexample/TUI-apps
https://github.com/learnbyexample/TUI-apps
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
PythonExercises/exercises/string_slices.py
null
null
null
null
null
null
Python
2026-05-04T01:34:26.262716
def slice(s): # add your solution here assert slice('') == [''] assert slice('a') == ['a'] assert slice('to') == ['to'] assert slice('cat') == ['ca', 'cat', 'at'] assert slice('kite') == ['ki', 'kit', 'kite', 'it', 'ite', 'te'] assert slice('table') == ['ta', 'tab', 'tabl', 'table', 'ab', 'abl', 'able', 'bl', 'ble...
learnbyexample/TUI-apps
https://github.com/learnbyexample/TUI-apps
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
PythonExercises/exercises/str_same_letters.py
null
null
null
null
null
null
Python
2026-05-04T01:34:26.320278
def str_anagram(s1, s2): # add your solution here assert str_anagram('god', 'Dog') assert str_anagram('beat', 'abet') assert str_anagram('Tap', 'paT') assert not str_anagram('beat', 'table') assert not str_anagram('seat', 'teal') print('all tests passed')
learnbyexample/TUI-apps
https://github.com/learnbyexample/TUI-apps
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
PythonExercises/solutions/character_diff.py
null
null
null
null
null
null
Python
2026-05-04T01:34:27.321047
def one_char_diff(w1, w2): if len(w1) != len(w2): return False w1, w2 = w1.lower(), w2.lower() for i in range(len(w1)): if w1[0:i] + w1[i+1:] == w2[0:i] + w2[i+1:]: return True return False assert one_char_diff('A', 'b') assert one_char_diff('A', 'a') assert not one_char_di...
learnbyexample/TUI-apps
https://github.com/learnbyexample/TUI-apps
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
PythonExercises/solutions/count_nested_braces.py
null
null
null
null
null
null
Python
2026-05-04T01:34:27.351511
def max_nested_braces(expr): max_count = count = 0 for char in expr: if char == '{': count += 1 if count > max_count: max_count = count elif char == '}': if count == 0: return -1 count -= 1 if count != 0: ...
localminimum/QANet
https://github.com/localminimum/QANet
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
demo.py
null
null
null
null
null
null
Python
2026-05-04T01:34:29.718268
#!/usr/bin/env python # coding=utf-8 import tensorflow as tf import bottle from bottle import route, run import threading import json import numpy as np from prepro import convert_to_features, word_tokenize from time import sleep ''' This file is taken and modified from R-Net by Minsangkim142 https://github.com/mins...
localminimum/QANet
https://github.com/localminimum/QANet
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
config.py
null
null
null
null
null
null
Python
2026-05-04T01:34:29.719187
import os import tensorflow as tf ''' This file is taken and modified from R-Net by HKUST-KnowComp https://github.com/HKUST-KnowComp/R-Net ''' from prepro import prepro from main import train, test, demo flags = tf.flags home = os.getcwd() train_file = os.path.join(home, "datasets", "squad", "train-v1.1.json") dev_...
localminimum/QANet
https://github.com/localminimum/QANet
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
util.py
null
null
null
null
null
null
Python
2026-05-04T01:34:29.720285
import tensorflow as tf import re from collections import Counter import string ''' This file is taken and modified from R-Net by HKUST-KnowComp https://github.com/HKUST-KnowComp/R-Net ''' def get_record_parser(config, is_test=False): def parse(example): para_limit = config.test_para_limit if is_test els...
localminimum/QANet
https://github.com/localminimum/QANet
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
evaluate-v1.1.py
null
null
null
null
null
null
Python
2026-05-04T01:34:29.720701
""" Official evaluation script for v1.1 of the SQuAD dataset. """ from __future__ import print_function from collections import Counter import string import re import argparse import json import sys def normalize_answer(s): """Lower text and remove punctuation, articles and extra whitespace.""" def remove_art...
localminimum/QANet
https://github.com/localminimum/QANet
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
prepro.py
null
null
null
null
null
null
Python
2026-05-04T01:34:29.721152
import tensorflow as tf import random from tqdm import tqdm import spacy import ujson as json from collections import Counter import numpy as np from codecs import open ''' This file is taken and modified from R-Net by HKUST-KnowComp https://github.com/HKUST-KnowComp/R-Net ''' nlp = spacy.blank("en") def word_token...
localminimum/QANet
https://github.com/localminimum/QANet
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
model.py
null
null
null
null
null
null
Python
2026-05-04T01:34:29.721810
import tensorflow as tf from layers import initializer, regularizer, residual_block, highway, conv, mask_logits, trilinear, total_params, optimized_trilinear_for_attention class Model(object): def __init__(self, config, batch, word_mat=None, char_mat=None, trainable=True, opt=True, demo = False, graph = None): ...
localminimum/QANet
https://github.com/localminimum/QANet
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
main.py
null
null
null
null
null
null
Python
2026-05-04T01:34:29.722389
import tensorflow as tf import ujson as json import numpy as np from tqdm import tqdm import os ''' This file is taken and modified from R-Net by HKUST-KnowComp https://github.com/HKUST-KnowComp/R-Net ''' from model import Model from demo import Demo from util import get_record_parser, convert_tokens, evaluate, get_...
localminimum/QANet
https://github.com/localminimum/QANet
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
layers.py
null
null
null
null
null
null
Python
2026-05-04T01:34:30.322953
# -*- coding: utf-8 -*- #/usr/bin/python2 import tensorflow as tf import numpy as np import math from tensorflow.contrib.rnn import MultiRNNCell from tensorflow.contrib.rnn import RNNCell from tensorflow.python.util import nest from tensorflow.python.ops import math_ops from tensorflow.python.ops import array_ops fr...
samuelcolvin/dirty-equals
https://github.com/samuelcolvin/dirty-equals
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
dirty_equals/_inspection.py
null
null
null
null
null
null
Python
2026-05-04T01:34:32.425867
from typing import Any, TypeVar, Union, overload from ._base import DirtyEquals from ._strings import IsStr from ._utils import get_dict_arg ExpectedType = TypeVar('ExpectedType', bound=Union[type, tuple[Union[type, tuple[Any, ...]], ...]]) class IsInstance(DirtyEquals[ExpectedType]): """ A type which check...
samuelcolvin/dirty-equals
https://github.com/samuelcolvin/dirty-equals
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
dirty_equals/_sequence.py
null
null
null
null
null
null
Python
2026-05-04T01:34:32.432432
import sys from collections.abc import Container, Sized from typing import TYPE_CHECKING, Any, Optional, TypeVar, Union, overload from ._base import DirtyEquals from ._utils import Omit, plain_repr if TYPE_CHECKING: from typing import TypeAlias if sys.version_info >= (3, 10): from types import EllipsisType e...
samuelcolvin/dirty-equals
https://github.com/samuelcolvin/dirty-equals
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
dirty_equals/_base.py
null
null
null
null
null
null
Python
2026-05-04T01:34:32.434678
import io from abc import ABCMeta from collections.abc import Iterable from pprint import PrettyPrinter from typing import TYPE_CHECKING, Any, Generic, Optional, Protocol, TypeVar from ._utils import Omit if TYPE_CHECKING: from typing import TypeAlias, Union # noqa: F401 __all__ = 'DirtyEqualsMeta', 'DirtyEqual...
samuelcolvin/dirty-equals
https://github.com/samuelcolvin/dirty-equals
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
dirty_equals/_datetime.py
null
null
null
null
null
null
Python
2026-05-04T01:34:32.458379
from __future__ import annotations as _annotations from datetime import date, datetime, timedelta, timezone, tzinfo from typing import Any from zoneinfo import ZoneInfo from ._numeric import IsNumeric from ._utils import Omit class IsDatetime(IsNumeric[datetime]): """ Check if the value is a datetime, and m...
samuelcolvin/dirty-equals
https://github.com/samuelcolvin/dirty-equals
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
dirty_equals/__init__.py
null
null
null
null
null
null
Python
2026-05-04T01:34:32.459869
from ._base import AnyThing, DirtyEquals, IsOneOf from ._boolean import IsFalseLike, IsTrueLike from ._datetime import IsDate, IsDatetime, IsNow, IsToday from ._dict import IsDict, IsIgnoreDict, IsPartialDict, IsStrictDict from ._inspection import HasAttributes, HasName, HasRepr, IsInstance from ._numeric import ( ...
samuelcolvin/dirty-equals
https://github.com/samuelcolvin/dirty-equals
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
dirty_equals/_numeric.py
null
null
null
null
null
null
Python
2026-05-04T01:34:32.460969
import math from datetime import date, datetime, timedelta from decimal import Decimal from typing import Any, Optional, TypeVar, Union from ._base import DirtyEquals __all__ = ( 'IsApprox', 'IsNumeric', 'IsNumber', 'IsPositive', 'IsNegative', 'IsNonPositive', 'IsNonNegative', 'IsInt',...
samuelcolvin/dirty-equals
https://github.com/samuelcolvin/dirty-equals
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
dirty_equals/_other.py
null
null
null
null
null
null
Python
2026-05-04T01:34:32.466362
from __future__ import annotations import json import re from dataclasses import fields, is_dataclass from enum import Enum from functools import lru_cache from ipaddress import IPv4Address, IPv4Network, IPv6Address, IPv6Network, ip_network from typing import TYPE_CHECKING, Any, Callable, Literal, TypeVar, Union, over...
samuelcolvin/dirty-equals
https://github.com/samuelcolvin/dirty-equals
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
dirty_equals/_dict.py
null
null
null
null
null
null
Python
2026-05-04T01:34:32.478588
from __future__ import annotations from collections.abc import Container from typing import Any, Callable, overload from ._base import DirtyEquals, DirtyEqualsMeta from ._utils import get_dict_arg NotGiven = object() class IsDict(DirtyEquals[dict[Any, Any]]): """ Base class for comparing dictionaries. By d...
samuelcolvin/dirty-equals
https://github.com/samuelcolvin/dirty-equals
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
dirty_equals/_boolean.py
null
null
null
null
null
null
Python
2026-05-04T01:34:32.479804
from typing import Any from ._base import DirtyEquals from ._utils import Omit class IsTrueLike(DirtyEquals[bool]): """ Check if the value is True like. `IsTrueLike` allows comparison to anything and effectively uses just `return bool(other)`. Example of basic usage: ```py title="IsTrueLike" ...
samuelcolvin/dirty-equals
https://github.com/samuelcolvin/dirty-equals
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
dirty_equals/_strings.py
null
null
null
null
null
null
Python
2026-05-04T01:34:32.494142
import re from re import Pattern from typing import Any, Literal, Optional, TypeVar, Union from ._base import DirtyEquals from ._utils import Omit, plain_repr T = TypeVar('T', str, bytes) __all__ = 'IsStr', 'IsBytes', 'IsAnyStr' class IsAnyStr(DirtyEquals[T]): """ Comparison of `str` or `bytes` objects. ...
samuelcolvin/dirty-equals
https://github.com/samuelcolvin/dirty-equals
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
tests/test_boolean.py
null
null
null
null
null
null
Python
2026-05-04T01:34:33.298606
import platform import pytest from dirty_equals import IsFalseLike, IsTrueLike @pytest.mark.parametrize( 'other, expected', [ (False, IsFalseLike), (True, ~IsFalseLike), ([], IsFalseLike), ([1], ~IsFalseLike), ((), IsFalseLike), ('', IsFalseLike), ('',...
samuelcolvin/dirty-equals
https://github.com/samuelcolvin/dirty-equals
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
tests/test_base.py
null
null
null
null
null
null
Python
2026-05-04T01:34:33.302133
import platform import pprint from functools import singledispatch import packaging.version import pytest from dirty_equals import Contains, DirtyEquals, IsApprox, IsInt, IsList, IsNegative, IsOneOf, IsPositive, IsStr from dirty_equals.version import VERSION def test_or(): assert 'foo' == IsStr | IsInt asse...
samuelcolvin/dirty-equals
https://github.com/samuelcolvin/dirty-equals
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
tests/test_datetime.py
null
null
null
null
null
null
Python
2026-05-04T01:34:33.303143
from datetime import date, datetime, timedelta, timezone from unittest.mock import Mock from zoneinfo import ZoneInfo import pytest from dirty_equals import IsDate, IsDatetime, IsNow, IsToday @pytest.mark.parametrize( 'value,dirty,expect_match', [ pytest.param(datetime(2000, 1, 1), IsDatetime(approx...
samuelcolvin/dirty-equals
https://github.com/samuelcolvin/dirty-equals
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
tests/test_docs.py
null
null
null
null
null
null
Python
2026-05-04T01:34:33.304475
import platform import sys from pathlib import Path import pytest from pytest_examples import CodeExample, EvalExample, find_examples root_dir = Path(__file__).parent.parent examples = find_examples( root_dir / 'dirty_equals', root_dir / 'docs', ) @pytest.mark.skipif(platform.python_implementation() == 'Py...
samuelcolvin/dirty-equals
https://github.com/samuelcolvin/dirty-equals
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
dirty_equals/_utils.py
null
null
null
null
null
null
Python
2026-05-04T01:34:33.411023
__all__ = 'plain_repr', 'PlainRepr', 'Omit', 'get_dict_arg' from typing import Any class PlainRepr: """ Hack to allow repr of string without quotes. """ def __init__(self, v: str): self.v = v def __repr__(self) -> str: return self.v def plain_repr(v: str) -> PlainRepr: ret...
samuelcolvin/dirty-equals
https://github.com/samuelcolvin/dirty-equals
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
tests/mypy_checks.py
null
null
null
null
null
null
Python
2026-05-04T01:34:33.417414
""" This module is run with mypy to check types can be used correctly externally. """ import sys sys.path.append('.') from dirty_equals import HasName, HasRepr, IsStr assert 123 == HasName('int') assert 123 == HasRepr('123') assert 123 == HasName(IsStr(regex='i..')) assert 123 == HasRepr(IsStr(regex=r'\d{3}')) # t...
samuelcolvin/dirty-equals
https://github.com/samuelcolvin/dirty-equals
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
docs/plugins.py
null
null
null
null
null
null
Python
2026-05-04T01:34:33.874738
import logging import os import re from mkdocs.config import Config from mkdocs.structure.files import Files from mkdocs.structure.pages import Page try: import pytest except ImportError: pytest = None logger = logging.getLogger('mkdocs.test_examples') def on_pre_build(config: Config): pass def on_fi...
samuelcolvin/dirty-equals
https://github.com/samuelcolvin/dirty-equals
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
tests/test_dict.py
null
null
null
null
null
null
Python
2026-05-04T01:34:33.986979
import pytest from dirty_equals import IsDict, IsIgnoreDict, IsPartialDict, IsPositiveInt, IsStr, IsStrictDict @pytest.mark.parametrize( 'input_value,expected', [ ({}, IsDict), ({}, IsDict()), ({'a': 1}, IsDict(a=1)), ({1: 2}, IsDict({1: 2})), ({'a': 1, 'b': 2}, IsDict...
samuelcolvin/dirty-equals
https://github.com/samuelcolvin/dirty-equals
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
tests/test_other.py
null
null
null
null
null
null
Python
2026-05-04T01:34:34.218475
import sys import uuid from dataclasses import dataclass from enum import Enum, auto from hashlib import md5, sha1, sha256 from ipaddress import IPv4Address, IPv4Network, IPv6Address, IPv6Network import pytest from dirty_equals import ( FunctionCheck, IsDataclass, IsDataclassType, IsEnum, IsHash, ...
samuelcolvin/dirty-equals
https://github.com/samuelcolvin/dirty-equals
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
tests/test_strings.py
null
null
null
null
null
null
Python
2026-05-04T01:34:34.224102
import re import pytest from dirty_equals import IsAnyStr, IsBytes, IsStr @pytest.mark.parametrize( 'value,dirty,match', [ # IsStr tests ('foo', IsStr, True), ('foo', IsStr(), True), (b'foo', IsStr, False), ('foo', IsStr(regex='fo{2}'), True), ('foo', IsStr(re...
samuelcolvin/dirty-equals
https://github.com/samuelcolvin/dirty-equals
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
tests/test_numeric.py
null
null
null
null
null
null
Python
2026-05-04T01:34:34.228981
import pytest from dirty_equals import ( IsApprox, IsFloat, IsFloatInf, IsFloatInfNeg, IsFloatInfPos, IsFloatNan, IsInt, IsNegative, IsNegativeFloat, IsNegativeInt, IsNonNegative, IsNonPositive, IsPositive, IsPositiveFloat, IsPositiveInt, ) @pytest.mark.par...
samuelcolvin/dirty-equals
https://github.com/samuelcolvin/dirty-equals
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
tests/test_inspection.py
null
null
null
null
null
null
Python
2026-05-04T01:34:34.259186
import pytest from dirty_equals import AnyThing, HasAttributes, HasName, HasRepr, IsInstance, IsInt, IsStr class Foo: def __init__(self, a=1, b=2): self.a = a self.b = b def spam(self): pass def dirty_repr(value): if hasattr(value, 'equals'): return repr(value) retu...
samuelcolvin/dirty-equals
https://github.com/samuelcolvin/dirty-equals
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
tests/test_list_tuple.py
null
null
null
null
null
null
Python
2026-05-04T01:34:39.275279
import pytest from dirty_equals import AnyThing, Contains, HasLen, IsInt, IsList, IsListOrTuple, IsNegative, IsTuple @pytest.mark.parametrize( 'other,dirty', [ ([], IsList), ((), IsTuple), ([], IsList()), ([1], IsList(length=1)), ((), IsTuple()), ([1, 2, 3], Is...
AIDC-AI/Pixelle-MCP
https://github.com/AIDC-AI/Pixelle-MCP
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
pixelle/cli/__main__.py
null
null
null
null
null
null
Python
2026-05-04T01:34:41.807016
# Copyright (C) 2025 AIDC-AI # This project is licensed under the MIT License (SPDX-License-identifier: MIT). """Allow pixelle.cli to be executed as a module.""" from pixelle.cli.main import main if __name__ == "__main__": main()
AIDC-AI/Pixelle-MCP
https://github.com/AIDC-AI/Pixelle-MCP
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
pixelle/api/__init__.py
null
null
null
null
null
null
Python
2026-05-04T01:34:41.809095
# Copyright (C) 2025 AIDC-AI # This project is licensed under the MIT License (SPDX-License-identifier: MIT).
AIDC-AI/Pixelle-MCP
https://github.com/AIDC-AI/Pixelle-MCP
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
pixelle/__init__.py
null
null
null
null
null
null
Python
2026-05-04T01:34:42.290563
# Copyright (C) 2025 AIDC-AI # This project is licensed under the MIT License (SPDX-License-identifier: MIT). """Pixelle MCP package.""" import tomllib from pathlib import Path def get_version() -> str: """Get the version from multiple sources""" # Method 1: Try to get version from installed package metadata...
AIDC-AI/Pixelle-MCP
https://github.com/AIDC-AI/Pixelle-MCP
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
pixelle/cli/commands/__init__.py
null
null
null
null
null
null
Python
2026-05-04T01:34:42.292542
# Copyright (C) 2025 AIDC-AI # This project is licensed under the MIT License (SPDX-License-identifier: MIT). """Command-line subcommands for Pixelle CLI."""
AIDC-AI/Pixelle-MCP
https://github.com/AIDC-AI/Pixelle-MCP
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
pixelle/cli/__init__.py
null
null
null
null
null
null
Python
2026-05-04T01:34:42.293907
# Copyright (C) 2025 AIDC-AI # This project is licensed under the MIT License (SPDX-License-identifier: MIT). """ Pixelle CLI module - A refactored command-line interface. This module provides a clean, maintainable structure for the CLI functionality. """ from pixelle.cli.main import app, main __all__ = ["app", "ma...
AIDC-AI/Pixelle-MCP
https://github.com/AIDC-AI/Pixelle-MCP
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
pixelle/cli/commands/edit.py
null
null
null
null
null
null
Python
2026-05-04T01:34:42.296166
# Copyright (C) 2025 AIDC-AI # This project is licensed under the MIT License (SPDX-License-identifier: MIT). """Manual command implementation.""" import typer from pathlib import Path from rich.console import Console from rich.panel import Panel console = Console() def edit_command(): """📝 Show configurati...
AIDC-AI/Pixelle-MCP
https://github.com/AIDC-AI/Pixelle-MCP
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
pixelle/cli/commands/init.py
null
null
null
null
null
null
Python
2026-05-04T01:34:42.297069
# Copyright (C) 2025 AIDC-AI # This project is licensed under the MIT License (SPDX-License-identifier: MIT). """Reconfig command implementation.""" import typer from rich.console import Console from pixelle.cli.setup.execution_engines import setup_execution_engines_interactive from pixelle.cli.setup.service import ...
AIDC-AI/Pixelle-MCP
https://github.com/AIDC-AI/Pixelle-MCP
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
pixelle/cli/commands/dev.py
null
null
null
null
null
null
Python
2026-05-04T01:34:42.298087
# Copyright (C) 2025 AIDC-AI # This project is licensed under the MIT License (SPDX-License-identifier: MIT). """Development command implementation.""" import typer from pathlib import Path from rich.console import Console from rich.table import Table from rich.tree import Tree from rich.panel import Panel console =...
AIDC-AI/Pixelle-MCP
https://github.com/AIDC-AI/Pixelle-MCP
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
pixelle/cli.py
null
null
null
null
null
null
Python
2026-05-04T01:34:43.125072
# Copyright (C) 2025 AIDC-AI # This project is licensed under the MIT License (SPDX-License-identifier: MIT). """ Pixelle CLI - Simplified main entry point. This module serves as the main entry point for the Pixelle CLI. All functionality has been refactored into the pixelle.cli subpackage. """ from pixelle.cli.main...
AIDC-AI/Pixelle-MCP
https://github.com/AIDC-AI/Pixelle-MCP
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
pixelle/cli/commands/interactive.py
null
null
null
null
null
null
Python
2026-05-04T01:34:43.299699
# Copyright (C) 2025 AIDC-AI # This project is licensed under the MIT License (SPDX-License-identifier: MIT). """Interactive command implementation.""" from rich.console import Console from pixelle.cli.interactive.welcome import run_interactive_mode console = Console() def interactive_command(): """🎨 Run in ...
AIDC-AI/Pixelle-MCP
https://github.com/AIDC-AI/Pixelle-MCP
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
pixelle/cli/commands/logs.py
null
null
null
null
null
null
Python
2026-05-04T01:34:43.344217
# Copyright (C) 2025 AIDC-AI # This project is licensed under the MIT License (SPDX-License-identifier: MIT). """Logs command implementation.""" import typer from pathlib import Path from rich.console import Console console = Console() def logs_command( follow: bool = typer.Option(False, "--follow", "-f", help...
AIDC-AI/Pixelle-MCP
https://github.com/AIDC-AI/Pixelle-MCP
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
pixelle/cli/interactive/__init__.py
null
null
null
null
null
null
Python
2026-05-04T01:34:43.456392
# Copyright (C) 2025 AIDC-AI # This project is licensed under the MIT License (SPDX-License-identifier: MIT). """Interactive mode for Pixelle CLI."""
AIDC-AI/Pixelle-MCP
https://github.com/AIDC-AI/Pixelle-MCP
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
pixelle/cli/commands/reconfig.py
null
null
null
null
null
null
Python
2026-05-04T01:34:43.475153
# Copyright (C) 2025 AIDC-AI # This project is licensed under the MIT License (SPDX-License-identifier: MIT). """Reconfig command implementation.""" import typer from rich.console import Console from pixelle.cli.setup.comfyui import setup_comfyui from pixelle.cli.setup.service import setup_service_config from pixell...
AIDC-AI/Pixelle-MCP
https://github.com/AIDC-AI/Pixelle-MCP
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
pixelle/api/files_api.py
null
null
null
null
null
null
Python
2026-05-04T01:34:43.526857
# Copyright (C) 2025 AIDC-AI # This project is licensed under the MIT License (SPDX-License-identifier: MIT). from fastapi import APIRouter, HTTPException, UploadFile, File from fastapi.responses import Response from pixelle.upload.file_service import file_service from pixelle.upload.base import FileInfo # Create ro...
AIDC-AI/Pixelle-MCP
https://github.com/AIDC-AI/Pixelle-MCP
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
pixelle/cli/interactive/menu.py
null
null
null
null
null
null
Python
2026-05-04T01:34:43.748081
# Copyright (C) 2025 AIDC-AI # This project is licensed under the MIT License (SPDX-License-identifier: MIT). """Main menu for interactive mode.""" import questionary from pathlib import Path from rich.console import Console from rich.panel import Panel from pixelle.cli.utils.display import show_header_info, show_cu...
AIDC-AI/Pixelle-MCP
https://github.com/AIDC-AI/Pixelle-MCP
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
pixelle/cli/commands/start.py
null
null
null
null
null
null
Python
2026-05-04T01:34:43.953854
# Copyright (C) 2025 AIDC-AI # This project is licensed under the MIT License (SPDX-License-identifier: MIT). """Start command implementation.""" import typer from rich.console import Console from pixelle.cli.utils.command_utils import detect_config_status from pixelle.cli.utils.server_utils import start_pixelle_ser...
AIDC-AI/Pixelle-MCP
https://github.com/AIDC-AI/Pixelle-MCP
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
pixelle/cli/interactive/welcome.py
null
null
null
null
null
null
Python
2026-05-04T01:34:43.959832
# Copyright (C) 2025 AIDC-AI # This project is licensed under the MIT License (SPDX-License-identifier: MIT). """Welcome and initial setup detection for interactive mode.""" from rich.console import Console from pixelle.cli.utils.display import show_welcome from pixelle.cli.utils.command_utils import detect_config_s...
AIDC-AI/Pixelle-MCP
https://github.com/AIDC-AI/Pixelle-MCP
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
pixelle/cli/interactive/wizard.py
null
null
null
null
null
null
Python
2026-05-04T01:34:44.017327
# Copyright (C) 2025 AIDC-AI # This project is licensed under the MIT License (SPDX-License-identifier: MIT). """Setup wizard for interactive configuration.""" import questionary from rich.console import Console from pixelle.cli.setup.execution_engines import setup_execution_engines_interactive from pixelle.cli.setu...
AIDC-AI/Pixelle-MCP
https://github.com/AIDC-AI/Pixelle-MCP
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
pixelle/cli/commands/status.py
null
null
null
null
null
null
Python
2026-05-04T01:34:44.030166
# Copyright (C) 2025 AIDC-AI # This project is licensed under the MIT License (SPDX-License-identifier: MIT). """Status command implementation.""" import typer from pathlib import Path from rich.console import Console from rich.table import Table from rich.panel import Panel console = Console() def status_command(...
AIDC-AI/Pixelle-MCP
https://github.com/AIDC-AI/Pixelle-MCP
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
pixelle/cli/main.py
null
null
null
null
null
null
Python
2026-05-04T01:34:44.053713
# Copyright (C) 2025 AIDC-AI # This project is licensed under the MIT License (SPDX-License-identifier: MIT). """Main entry point for Pixelle CLI.""" import typer from pixelle.cli.commands.interactive import interactive_command from pixelle.cli.commands.start import start_command from pixelle.cli.commands.stop impor...
AIDC-AI/Pixelle-MCP
https://github.com/AIDC-AI/Pixelle-MCP
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
pixelle/cli/commands/stop.py
null
null
null
null
null
null
Python
2026-05-04T01:34:44.055032
# Copyright (C) 2025 AIDC-AI # This project is licensed under the MIT License (SPDX-License-identifier: MIT). """Stop command implementation.""" import typer from pathlib import Path from rich.console import Console console = Console() def stop_command(): """🛑 Stop the running Pixelle MCP service""" ...
AIDC-AI/Pixelle-MCP
https://github.com/AIDC-AI/Pixelle-MCP
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
pixelle/cli/setup/__init__.py
null
null
null
null
null
null
Python
2026-05-04T01:34:44.539132
# Copyright (C) 2025 AIDC-AI # This project is licensed under the MIT License (SPDX-License-identifier: MIT). """Configuration setup modules for Pixelle CLI."""
AIDC-AI/Pixelle-MCP
https://github.com/AIDC-AI/Pixelle-MCP
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
pixelle/cli/commands/workflow.py
null
null
null
null
null
null
Python
2026-05-04T01:34:44.540498
# Copyright (C) 2025 AIDC-AI # This project is licensed under the MIT License (SPDX-License-identifier: MIT). """Workflow command implementation.""" import typer import json import shutil import subprocess import platform from pathlib import Path from datetime import datetime from typing import List, Optional from ri...
AIDC-AI/Pixelle-MCP
https://github.com/AIDC-AI/Pixelle-MCP
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
pixelle/cli/setup/comfyui.py
null
null
null
null
null
null
Python
2026-05-04T01:34:44.652158
# Copyright (C) 2025 AIDC-AI # This project is licensed under the MIT License (SPDX-License-identifier: MIT). """ComfyUI configuration setup.""" from typing import Dict, Optional import questionary from rich.console import Console from rich.panel import Panel console = Console() def setup_comfyui(default_url: st...
AIDC-AI/Pixelle-MCP
https://github.com/AIDC-AI/Pixelle-MCP
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
pixelle/cli/setup/config_saver.py
null
null
null
null
null
null
Python
2026-05-04T01:34:44.748304
# Copyright (C) 2025 AIDC-AI # This project is licensed under the MIT License (SPDX-License-identifier: MIT). """Configuration saving and loading utilities.""" from typing import Dict, List, Optional from pathlib import Path from rich.console import Console from rich.panel import Panel from pixelle.utils.config_util...
AIDC-AI/Pixelle-MCP
https://github.com/AIDC-AI/Pixelle-MCP
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
pixelle/cli/setup/providers/claude.py
null
null
null
null
null
null
Python
2026-05-04T01:34:44.976716
# Copyright (C) 2025 AIDC-AI # This project is licensed under the MIT License (SPDX-License-identifier: MIT). """Claude provider configuration.""" from typing import Dict, Optional import questionary from rich.console import Console console = Console() def configure_claude() -> Optional[Dict]: """Configure Cla...
AIDC-AI/Pixelle-MCP
https://github.com/AIDC-AI/Pixelle-MCP
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
pixelle/cli/setup/providers/ollama.py
null
null
null
null
null
null
Python
2026-05-04T01:34:45.144277
# Copyright (C) 2025 AIDC-AI # This project is licensed under the MIT License (SPDX-License-identifier: MIT). """Ollama provider configuration.""" from typing import Dict, Optional import questionary from rich.console import Console from pixelle.utils.network_util import test_ollama_connection, get_ollama_models co...
AIDC-AI/Pixelle-MCP
https://github.com/AIDC-AI/Pixelle-MCP
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
pixelle/cli/setup/providers/qwen.py
null
null
null
null
null
null
Python
2026-05-04T01:34:45.255954
# Copyright (C) 2025 AIDC-AI # This project is licensed under the MIT License (SPDX-License-identifier: MIT). """Qwen provider configuration.""" from typing import Dict, Optional import questionary from rich.console import Console console = Console() def configure_qwen() -> Optional[Dict]: """Configure Qwen"""...
AIDC-AI/Pixelle-MCP
https://github.com/AIDC-AI/Pixelle-MCP
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
pixelle/cli/setup/providers/openai.py
null
null
null
null
null
null
Python
2026-05-04T01:34:45.310687
# Copyright (C) 2025 AIDC-AI # This project is licensed under the MIT License (SPDX-License-identifier: MIT). """OpenAI provider configuration.""" from typing import Dict, Optional import questionary from rich.console import Console from pixelle.utils.network_util import get_openai_models console = Console() def ...
AIDC-AI/Pixelle-MCP
https://github.com/AIDC-AI/Pixelle-MCP
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
pixelle/cli/setup/runninghub.py
null
null
null
null
null
null
Python
2026-05-04T01:34:45.468494
# Copyright (C) 2025 AIDC-AI # This project is licensed under the MIT License (SPDX-License-identifier: MIT). """RunningHub configuration setup.""" from typing import Dict, Optional import questionary from rich.console import Console from rich.panel import Panel console = Console() def setup_runninghub() -> Option...
AIDC-AI/Pixelle-MCP
https://github.com/AIDC-AI/Pixelle-MCP
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
pixelle/cli/setup/service.py
null
null
null
null
null
null
Python
2026-05-04T01:34:45.572552
# Copyright (C) 2025 AIDC-AI # This project is licensed under the MIT License (SPDX-License-identifier: MIT). """Service configuration setup.""" from typing import Dict, Optional import socket import questionary from rich.console import Console from rich.panel import Panel console = Console() def setup_service_c...
AIDC-AI/Pixelle-MCP
https://github.com/AIDC-AI/Pixelle-MCP
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
pixelle/cli/setup/execution_engines.py
null
null
null
null
null
null
Python
2026-05-04T01:34:45.599045
# Copyright (C) 2025 AIDC-AI # This project is licensed under the MIT License (SPDX-License-identifier: MIT). """Execution engines configuration setup.""" from typing import Dict, Optional, Tuple import questionary from rich.console import Console from rich.panel import Panel from rich.table import Table from .runni...
AIDC-AI/Pixelle-MCP
https://github.com/AIDC-AI/Pixelle-MCP
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
pixelle/cli/utils/__init__.py
null
null
null
null
null
null
Python
2026-05-04T01:34:45.713987
# Copyright (C) 2025 AIDC-AI # This project is licensed under the MIT License (SPDX-License-identifier: MIT). """Utility functions for Pixelle CLI."""