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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
X-PLUG/MobileAgent | https://github.com/X-PLUG/MobileAgent | null | null | null | null | 8,611 | null | null | mit | null | null | null | null | null | null | null | Mobile-Agent-v1/Mobile-Agent-qwen/MobileAgent/icon_localization.py | null | null | null | null | null | null | Python | 2026-05-04T02:08:52.950131 | from MobileAgent.crop import calculate_size, calculate_iou
from modelscope.pipelines import pipeline
from PIL import Image
import torch
def remove_boxes(boxes_filt, size, iou_threshold=0.5):
boxes_to_remove = set()
for i in range(len(boxes_filt)):
if calculate_size(boxes_filt[i]) > 0.05*size[0]*size[1... |
X-PLUG/MobileAgent | https://github.com/X-PLUG/MobileAgent | null | null | null | null | 8,611 | null | null | mit | null | null | null | null | null | null | null | Mobile-Agent-E/run.py | null | null | null | null | null | null | Python | 2026-05-04T02:08:52.979838 |
from inference_agent_E import run_single_task
from inference_agent_E import Perceptor, DEFAULT_PERCEPTION_ARGS, ADB_PATH, INIT_TIPS, INIT_SHORTCUTS, REASONING_MODEL
import torch
import os
import json
import shutil
import time
def main():
import argparse
parser = argparse.ArgumentParser()
parser.add_argume... |
X-PLUG/MobileAgent | https://github.com/X-PLUG/MobileAgent | null | null | null | null | 8,611 | null | null | mit | null | null | null | null | null | null | null | Mobile-Agent-v1/Mobile-Agent-qwen/MobileAgent/chat.py | null | null | null | null | null | null | Python | 2026-05-04T02:08:52.995248 | import copy
def init_chat(instruction):
operation_history = []
sysetm_prompt = f"You are a helpful phone operating assistant. You need to help me operate the phone to complete user's instruction."
operation_history.append(["system", [{"text": sysetm_prompt}]])
return operation_history
def add_respons... |
X-PLUG/MobileAgent | https://github.com/X-PLUG/MobileAgent | null | null | null | null | 8,611 | null | null | mit | null | null | null | null | null | null | null | Mobile-Agent-v1/Mobile-Agent-qwen/MobileAgent/text_localization.py | null | null | null | null | null | null | Python | 2026-05-04T02:08:52.996502 | import cv2
import numpy as np
from MobileAgent.crop import crop_image, calculate_size
from PIL import Image
def order_point(coor):
arr = np.array(coor).reshape([4, 2])
sum_ = np.sum(arr, 0)
centroid = sum_ / arr.shape[0]
theta = np.arctan2(arr[:, 1] - centroid[1], arr[:, 0] - centroid[0])
sort_poi... |
X-PLUG/MobileAgent | https://github.com/X-PLUG/MobileAgent | null | null | null | null | 8,611 | null | null | mit | null | null | null | null | null | null | null | Mobile-Agent-v1/Mobile-Agent-qwen/MobileAgent/crop.py | null | null | null | null | null | null | Python | 2026-05-04T02:08:52.998094 | import math
import cv2
import numpy as np
from PIL import Image, ImageDraw, ImageFont
import clip
import torch
def crop_image(img, position):
def distance(x1,y1,x2,y2):
return math.sqrt(pow(x1 - x2, 2) + pow(y1 - y2, 2))
position = position.tolist()
for i in range(4):
for j in range(i+... |
X-PLUG/MobileAgent | https://github.com/X-PLUG/MobileAgent | null | null | null | null | 8,611 | null | null | mit | null | null | null | null | null | null | null | Mobile-Agent-v1/Mobile-Agent-qwen/run.py | null | null | null | null | null | null | Python | 2026-05-04T02:08:53.080053 | import os
import clip
import shutil
import random
import argparse
from PIL import Image
from modelscope import snapshot_download
from modelscope.pipelines import pipeline
from modelscope.utils.constant import Tasks
from MobileAgent.api import inference_chat
from MobileAgent.text_localization import ocr
from MobileAgent... |
X-PLUG/MobileAgent | https://github.com/X-PLUG/MobileAgent | null | null | null | null | 8,611 | null | null | mit | null | null | null | null | null | null | null | Mobile-Agent-v1/Mobile-Agent-qwen/MobileAgent/prompt.py | null | null | null | null | null | null | Python | 2026-05-04T02:08:53.124841 | thought_prompt = "Based on this screenshot, please analyze the current progress and what the next step is."
action_prompt = '''Based on the above analysis, please select the most appropriate action from the following 9 actions:
open app (parameter): Click on the name of an App on the desktop home page. The parameter i... |
X-PLUG/MobileAgent | https://github.com/X-PLUG/MobileAgent | null | null | null | null | 8,611 | null | null | mit | null | null | null | null | null | null | null | Mobile-Agent-v1/Mobile-Agent-qwen/MobileAgent/api.py | null | null | null | null | null | null | Python | 2026-05-04T02:08:53.843256 | from dashscope import MultiModalConversation
import dashscope
def inference_chat(chat, api):
dashscope.api_key = api
messages = []
for role, content in chat:
messages.append({"role": role, "content": content})
while True:
try:
response = MultiModalConversation.call(mod... |
X-PLUG/MobileAgent | https://github.com/X-PLUG/MobileAgent | null | null | null | null | 8,611 | null | null | mit | null | null | null | null | null | null | null | Mobile-Agent-v1/Mobile-Agent-qwen/host.py | null | null | null | null | null | null | Python | 2026-05-04T02:08:53.861258 | import os
import clip
import uuid
import json
import shutil
import random
import argparse
from PIL import Image
from flask import Flask, request, jsonify
from modelscope import snapshot_download
from modelscope.pipelines import pipeline
from modelscope.utils.constant import Tasks
from MobileAgent.api import inference_c... |
X-PLUG/MobileAgent | https://github.com/X-PLUG/MobileAgent | null | null | null | null | 8,611 | null | null | mit | null | null | null | null | null | null | null | Mobile-Agent-v1/Mobile-Agent-qwen/MobileAgent/controller.py | null | null | null | null | null | null | Python | 2026-05-04T02:08:53.953022 | import time
import subprocess
from PIL import Image
def get_size(adb_path):
command = adb_path + " shell wm size"
result = subprocess.run(command, capture_output=True, text=True, shell=True)
resolution_line = result.stdout.strip().split('\n')[-1]
width, height = map(int, resolution_line.split(' ')[-1]... |
X-PLUG/MobileAgent | https://github.com/X-PLUG/MobileAgent | null | null | null | null | 8,611 | null | null | mit | null | null | null | null | null | null | null | Mobile-Agent-v1/Mobile-Agent-qwen/run_深色模式.py | null | null | null | null | null | null | Python | 2026-05-04T02:08:53.965887 | import requests
tutorial = '''The following content may help you complete the instruction:
1. "暗色模式" can be turned on in "设置" app.
2. "显示与亮度" can be found by scrolling down the setting page.
3. Tap the text "显示与亮度" when you find it.
4. Tap the text "暗色模式" in "显示与亮度" to turn on the dark mode, and then stop.
'''
image ... |
X-PLUG/MobileAgent | https://github.com/X-PLUG/MobileAgent | null | null | null | null | 8,611 | null | null | mit | null | null | null | null | null | null | null | Mobile-Agent-v1/Mobile-Agent-qwen/run_tiktok.py | null | null | null | null | null | null | Python | 2026-05-04T02:08:53.968436 | import requests
tutorial = '''The following content may help you complete the instruction:
1. Scroll down to change videos in TikTok.
2. Tap the icon of grey heart to like.
'''
image = "../results/TikTok/1/1.jpg"
query_data = {'screenshot': image, 'query': 'Find a video about cat in TikTok and tap a like for this vid... |
X-PLUG/MobileAgent | https://github.com/X-PLUG/MobileAgent | null | null | null | null | 8,611 | null | null | mit | null | null | null | null | null | null | null | Mobile-Agent-v1/Mobile-Agent-qwen/run_westlake.py | null | null | null | null | null | null | Python | 2026-05-04T02:08:53.969556 | import requests
tutorial = '''The following content may help you complete the instruction:
1. Use \"Maps\" app for navigation.
2. Tap \"Search here\" to activate the search box before typing.
3. Type \"Hangzhou West Lake\" in search box to search the target location.
4. Tap \"West Lake\" of the search results to get t... |
X-PLUG/MobileAgent | https://github.com/X-PLUG/MobileAgent | null | null | null | null | 8,611 | null | null | mit | null | null | null | null | null | null | null | Mobile-Agent-v1/MobileAgent/chat.py | null | null | null | null | null | null | Python | 2026-05-04T02:08:54.077329 | import copy
from MobileAgent.api import encode_image
def init_chat(instruction):
operation_history = []
sysetm_prompt = "You are a helpful phone operating assistant. You need to help me operate the phone to complete my instruction.\n"
sysetm_prompt += f"My instruction is: {instruction}"
operation_hist... |
X-PLUG/MobileAgent | https://github.com/X-PLUG/MobileAgent | null | null | null | null | 8,611 | null | null | mit | null | null | null | null | null | null | null | Mobile-Agent-v1/Mobile-Agent-qwen/run_darkmode.py | null | null | null | null | null | null | Python | 2026-05-04T02:08:54.972928 | import requests
tutorial = '''The following content may help you complete the instruction:
1. Dark mode is in \"Display & brightness\" of Settings.
2. \"Display & brightness\" can be found by scrolling down the setting page.
3. Tap the \"Dark mode\" to turn on the dark mode.
'''
image = "../results/Settings/1/1.jpg"
... |
X-PLUG/MobileAgent | https://github.com/X-PLUG/MobileAgent | null | null | null | null | 8,611 | null | null | mit | null | null | null | null | null | null | null | Mobile-Agent-v1/run.py | null | null | null | null | null | null | Python | 2026-05-04T02:08:55.140802 | import shutil
import os
import clip
import copy
import argparse
from PIL import Image
from modelscope import snapshot_download
from modelscope.pipelines import pipeline
from modelscope.utils.constant import Tasks
from MobileAgent.prompt import opreation_prompt, choose_opreation_prompt
from MobileAgent.icon_localization... |
X-PLUG/MobileAgent | https://github.com/X-PLUG/MobileAgent | null | null | null | null | 8,611 | null | null | mit | null | null | null | null | null | null | null | Mobile-Agent-v1/MobileAgent/controller.py | null | null | null | null | null | null | Python | 2026-05-04T02:08:55.462326 | import time
import subprocess
from PIL import Image
def get_size(adb_path):
command = adb_path + " shell wm size"
result = subprocess.run(command, capture_output=True, text=True, shell=True)
resolution_line = result.stdout.strip().split('\n')[-1]
width, height = map(int, resolution_line.split(' ')[-1]... |
X-PLUG/MobileAgent | https://github.com/X-PLUG/MobileAgent | null | null | null | null | 8,611 | null | null | mit | null | null | null | null | null | null | null | Mobile-Agent-v1/run_api.py | null | null | null | null | null | null | Python | 2026-05-04T02:08:55.574269 | import os
import json
import argparse
from MobileAgent.api_service import get_action
from MobileAgent.controller_api import get_screenshot, tap, type, slide, back, back_to_desktop
def get_args():
parser = argparse.ArgumentParser()
parser.add_argument("--instruction", type=str)
parser.add_argument("--adb_p... |
X-PLUG/MobileAgent | https://github.com/X-PLUG/MobileAgent | null | null | null | null | 8,611 | null | null | mit | null | null | null | null | null | null | null | Mobile-Agent-v1/MobileAgent/controller_api.py | null | null | null | null | null | null | Python | 2026-05-04T02:08:55.651614 | import time
import subprocess
from PIL import Image
def get_screenshot(adb_path):
command = adb_path + " shell rm /sdcard/screenshot.png"
subprocess.run(command, capture_output=True, text=True, shell=True)
time.sleep(0.5)
command = adb_path + " shell screencap -p /sdcard/screenshot.png"
subprocess.... |
X-PLUG/MobileAgent | https://github.com/X-PLUG/MobileAgent | null | null | null | null | 8,611 | null | null | mit | null | null | null | null | null | null | null | Mobile-Agent-v2/MobileAgent/api.py | null | null | null | null | null | null | Python | 2026-05-04T02:08:55.704261 | import base64
import requests
def encode_image(image_path):
with open(image_path, "rb") as image_file:
return base64.b64encode(image_file.read()).decode('utf-8')
def inference_chat(chat, model, api_url, token):
headers = {
"Content-Type": "application/json",
"Authorization": f"Bea... |
X-PLUG/MobileAgent | https://github.com/X-PLUG/MobileAgent | null | null | null | null | 8,611 | null | null | mit | null | null | null | null | null | null | null | Mobile-Agent-v2/MobileAgent/chat.py | null | null | null | null | null | null | Python | 2026-05-04T02:08:56.029875 | import copy
from MobileAgent.api import encode_image
def init_action_chat():
operation_history = []
sysetm_prompt = "You are a helpful AI mobile phone operating assistant. You need to help me operate the phone to complete the user\'s instruction."
operation_history.append(["system", [{"type": "text", "tex... |
X-PLUG/MobileAgent | https://github.com/X-PLUG/MobileAgent | null | null | null | null | 8,611 | null | null | mit | null | null | null | null | null | null | null | Mobile-Agent-v2/MobileAgent/controller.py | null | null | null | null | null | null | Python | 2026-05-04T02:08:56.139891 | import os
import time
import subprocess
from PIL import Image
def get_screenshot(adb_path):
command = adb_path + " shell rm /sdcard/screenshot.png"
subprocess.run(command, capture_output=True, text=True, shell=True)
time.sleep(0.5)
command = adb_path + " shell screencap -p /sdcard/screenshot.png"
... |
X-PLUG/MobileAgent | https://github.com/X-PLUG/MobileAgent | null | null | null | null | 8,611 | null | null | mit | null | null | null | null | null | null | null | Mobile-Agent-v2/MobileAgent/icon_localization.py | null | null | null | null | null | null | Python | 2026-05-04T02:08:56.269975 | from MobileAgent.crop import calculate_size, calculate_iou
from PIL import Image
import torch
def remove_boxes(boxes_filt, size, iou_threshold=0.5):
boxes_to_remove = set()
for i in range(len(boxes_filt)):
if calculate_size(boxes_filt[i]) > 0.05*size[0]*size[1]:
boxes_to_remove.add(i)
... |
X-PLUG/MobileAgent | https://github.com/X-PLUG/MobileAgent | null | null | null | null | 8,611 | null | null | mit | null | null | null | null | null | null | null | Mobile-Agent-v2/MobileAgent/crop.py | null | null | null | null | null | null | Python | 2026-05-04T02:08:56.296297 | import math
import cv2
import numpy as np
from PIL import Image, ImageDraw
import clip
import torch
def crop_image(img, position):
def distance(x1,y1,x2,y2):
return math.sqrt(pow(x1 - x2, 2) + pow(y1 - y2, 2))
position = position.tolist()
for i in range(4):
for j in range(i+1, 4):
... |
X-PLUG/MobileAgent | https://github.com/X-PLUG/MobileAgent | null | null | null | null | 8,611 | null | null | mit | null | null | null | null | null | null | null | Mobile-Agent-v2/MobileAgent/prompt.py | null | null | null | null | null | null | Python | 2026-05-04T02:08:56.699694 | def get_action_prompt(instruction, clickable_infos, width, height, keyboard, summary_history, action_history, last_summary, last_action, add_info, error_flag, completed_content, memory):
prompt = "### Background ###\n"
prompt += f"This image is a phone screenshot. Its width is {width} pixels and its height is {... |
X-PLUG/MobileAgent | https://github.com/X-PLUG/MobileAgent | null | null | null | null | 8,611 | null | null | mit | null | null | null | null | null | null | null | Mobile-Agent-v2/MobileAgent/text_localization.py | null | null | null | null | null | null | Python | 2026-05-04T02:08:56.702508 | import cv2
import numpy as np
from MobileAgent.crop import crop_image
def order_point(coor):
arr = np.array(coor).reshape([4, 2])
sum_ = np.sum(arr, 0)
centroid = sum_ / arr.shape[0]
theta = np.arctan2(arr[:, 1] - centroid[1], arr[:, 0] - centroid[0])
sort_points = arr[np.argsort(theta)]
sort_... |
X-PLUG/MobileAgent | https://github.com/X-PLUG/MobileAgent | null | null | null | null | 8,611 | null | null | mit | null | null | null | null | null | null | null | Mobile-Agent-v2/run.py | null | null | null | null | null | null | Python | 2026-05-04T02:08:56.905175 | import os
import time
import copy
import torch
import shutil
from PIL import Image, ImageDraw
from MobileAgent.api import inference_chat
from MobileAgent.text_localization import ocr
from MobileAgent.icon_localization import det
from MobileAgent.controller import get_screenshot, tap, slide, type, back, home
from Mobil... |
X-PLUG/MobileAgent | https://github.com/X-PLUG/MobileAgent | null | null | null | null | 8,611 | null | null | mit | null | null | null | null | null | null | null | Mobile-Agent-v3.5/android_world_v3.5/android_world/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:08:56.935315 | # Copyright 2025 The android_world Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... |
X-PLUG/MobileAgent | https://github.com/X-PLUG/MobileAgent | null | null | null | null | 8,611 | null | null | mit | null | null | null | null | null | null | null | Mobile-Agent-v3.5/android_world_v3.5/android_world/agents/base_agent.py | null | null | null | null | null | null | Python | 2026-05-04T02:08:57.297340 | # Copyright 2025 The android_world Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... |
X-PLUG/MobileAgent | https://github.com/X-PLUG/MobileAgent | null | null | null | null | 8,611 | null | null | mit | null | null | null | null | null | null | null | Mobile-Agent-v3.5/android_world_v3.5/android_world/agents/agent_utils.py | null | null | null | null | null | null | Python | 2026-05-04T02:08:57.320239 | # Copyright 2025 The android_world Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... |
X-PLUG/MobileAgent | https://github.com/X-PLUG/MobileAgent | null | null | null | null | 8,611 | null | null | mit | null | null | null | null | null | null | null | Mobile-Agent-v3.5/android_world_v3.5/android_world/agents/coordinate_resize.py | null | null | null | null | null | null | Python | 2026-05-04T02:08:57.519576 | import math
def round_by_factor(number: int, factor: int) -> int:
"""返回最接近 number 的且能被 factor 整除的整数"""
return round(number / factor) * factor
def ceil_by_factor(number: int, factor: int) -> int:
"""返回大于等于 number 的且能被 factor 整除的整数"""
return math.ceil(number / factor) * factor
def floor_by_factor(nu... |
X-PLUG/MobileAgent | https://github.com/X-PLUG/MobileAgent | null | null | null | null | 8,611 | null | null | mit | null | null | null | null | null | null | null | Mobile-Agent-v3.5/android_world_v3.5/android_world/agents/function_call_mobile_answer.py | null | null | null | null | null | null | Python | 2026-05-04T02:08:57.520158 | from typing import Union, Tuple
from qwen_agent.tools.base import BaseTool, register_tool
# is different to official
@register_tool("mobile_use", allow_overwrite=True)
class AndroidWorldMobileUse(BaseTool):
@property
def description(self):
return f"""
Use a touchscreen to interact with a mobile device... |
X-PLUG/MobileAgent | https://github.com/X-PLUG/MobileAgent | null | null | null | null | 8,611 | null | null | mit | null | null | null | null | null | null | null | Mobile-Agent-v3.5/android_world_v3.5/android_world/agents/human_agent.py | null | null | null | null | null | null | Python | 2026-05-04T02:08:57.882443 | # Copyright 2025 The android_world Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... |
X-PLUG/MobileAgent | https://github.com/X-PLUG/MobileAgent | null | null | null | null | 8,611 | null | null | mit | null | null | null | null | null | null | null | Mobile-Agent-v3.5/android_world_v3.5/android_world/agents/gui_owl.py | null | null | null | null | null | null | Python | 2026-05-04T02:08:57.883166 | # Copyright 2025 The android_world Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... |
X-PLUG/MobileAgent | https://github.com/X-PLUG/MobileAgent | null | null | null | null | 8,611 | null | null | mit | null | null | null | null | null | null | null | Mobile-Agent-v1/MobileAgent/api.py | null | null | null | null | null | null | Python | 2026-05-04T02:08:58.803526 | import base64
import requests
def encode_image(image_path):
with open(image_path, "rb") as image_file:
return base64.b64encode(image_file.read()).decode('utf-8')
def inference_chat(chat, API_TOKEN):
api_url = 'https://api.openai.com/v1/chat/completions'
headers = {
"Content-Type": "ap... |
X-PLUG/MobileAgent | https://github.com/X-PLUG/MobileAgent | null | null | null | null | 8,611 | null | null | mit | null | null | null | null | null | null | null | Mobile-Agent-v1/MobileAgent/api_service.py | null | null | null | null | null | null | Python | 2026-05-04T02:08:58.862885 | import base64
import requests
import json
def encode_image(image_path):
with open(image_path, "rb") as image_file:
return base64.b64encode(image_file.read()).decode('utf-8')
def get_action(image_base, query, session_id, url, token):
image_base = encode_image(image_base)
headers = {
'... |
X-PLUG/MobileAgent | https://github.com/X-PLUG/MobileAgent | null | null | null | null | 8,611 | null | null | mit | null | null | null | null | null | null | null | Mobile-Agent-v1/MobileAgent/crop.py | null | null | null | null | null | null | Python | 2026-05-04T02:08:59.523963 | import math
import cv2
import numpy as np
from PIL import Image, ImageDraw, ImageFont
import clip
import torch
def crop_image(img, position):
def distance(x1,y1,x2,y2):
return math.sqrt(pow(x1 - x2, 2) + pow(y1 - y2, 2))
position = position.tolist()
for i in range(4):
for j in range(i+... |
X-PLUG/MobileAgent | https://github.com/X-PLUG/MobileAgent | null | null | null | null | 8,611 | null | null | mit | null | null | null | null | null | null | null | Mobile-Agent-v1/MobileAgent/icon_localization.py | null | null | null | null | null | null | Python | 2026-05-04T02:08:59.534210 | from MobileAgent.crop import calculate_size, calculate_iou
from modelscope.pipelines import pipeline
from PIL import Image
import torch
def remove_boxes(boxes_filt, size, iou_threshold=0.5):
boxes_to_remove = set()
for i in range(len(boxes_filt)):
if calculate_size(boxes_filt[i]) > 0.05*size[0]*size[1... |
X-PLUG/MobileAgent | https://github.com/X-PLUG/MobileAgent | null | null | null | null | 8,611 | null | null | mit | null | null | null | null | null | null | null | Mobile-Agent-v1/MobileAgent/text_localization.py | null | null | null | null | null | null | Python | 2026-05-04T02:08:59.568450 | import cv2
import numpy as np
from MobileAgent.crop import crop_image, calculate_size
from PIL import Image
def order_point(coor):
arr = np.array(coor).reshape([4, 2])
sum_ = np.sum(arr, 0)
centroid = sum_ / arr.shape[0]
theta = np.arctan2(arr[:, 1] - centroid[1], arr[:, 0] - centroid[0])
sort_poi... |
X-PLUG/MobileAgent | https://github.com/X-PLUG/MobileAgent | null | null | null | null | 8,611 | null | null | mit | null | null | null | null | null | null | null | Mobile-Agent-v1/MobileAgent/prompt.py | null | null | null | null | null | null | Python | 2026-05-04T02:08:59.635552 | opreation_prompt = '''This is the current screenshot. Please give me the response as requested below.
First, you need to generate the Observation and Thought.
Observation: You need to briefly describe the current screenshot. If there are previous operations, you need to briefly describe the previous operations and the... |
Sitoi/dailycheckin | https://github.com/Sitoi/dailycheckin | null | null | null | null | 8,609 | null | null | mit | null | null | null | null | null | null | null | dailycheckin/acfun/main.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:02.390234 | import json
import os
import re
import requests
import urllib3
from dailycheckin import CheckIn
urllib3.disable_warnings()
class AcFun(CheckIn):
name = "AcFun"
def __init__(self, check_item: dict):
self.check_item = check_item
self.contentid = "27259341"
self.st = None
@static... |
Sitoi/dailycheckin | https://github.com/Sitoi/dailycheckin | null | null | null | null | 8,609 | null | null | mit | null | null | null | null | null | null | null | dailycheckin/aliyun/main.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:02.400017 | import json
import os
import requests
import urllib3
from dailycheckin import CheckIn
urllib3.disable_warnings()
class AliYun(CheckIn):
name = "阿里云盘"
def __init__(self, check_item: dict):
self.check_item = check_item
def update_token(self, refresh_token):
url = "https://auth.aliyundri... |
Sitoi/dailycheckin | https://github.com/Sitoi/dailycheckin | null | null | null | null | 8,609 | null | null | mit | null | null | null | null | null | null | null | dailycheckin/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:02.404283 | import pkgutil as _pkgutil
class CheckIn:
name = "Base"
__path__ = _pkgutil.extend_path(__path__, __name__)
for _, _modname, _ in _pkgutil.walk_packages(path=__path__, prefix=__name__ + "."):
if _modname not in ["dailycheckin.main", "dailycheckin.configs"]:
__import__(_modname)
|
Sitoi/dailycheckin | https://github.com/Sitoi/dailycheckin | null | null | null | null | 8,609 | null | null | mit | null | null | null | null | null | null | null | dailycheckin/aolaxing/main.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:02.405405 | import json
import os
import time
import requests
from dailycheckin import CheckIn
class AoLaXing(CheckIn):
name = "奥拉星"
def __init__(self, check_item: dict):
self.check_item = check_item
def user(self, headers):
url = "http://service.100bt.com/creditmall/my/user_info.jsonp"
us... |
Sitoi/dailycheckin | https://github.com/Sitoi/dailycheckin | null | null | null | null | 8,609 | null | null | mit | null | null | null | null | null | null | null | dailycheckin/baidu/main.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:02.424503 | import json
import os
from urllib import parse
import requests
from dailycheckin import CheckIn
class Baidu(CheckIn):
name = "百度站点提交"
def __init__(self, check_item: dict):
self.check_item = check_item
@staticmethod
def url_submit(data_url: str, submit_url: str, times: int = 100) -> str:
... |
Sitoi/dailycheckin | https://github.com/Sitoi/dailycheckin | null | null | null | null | 8,609 | null | null | mit | null | null | null | null | null | null | null | dailycheckin/configs.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:03.362121 | import json
import os
from dailycheckin import CheckIn
def checkin_map():
result = {}
for cls in CheckIn.__subclasses__():
check_name = cls.__name__.upper()
if check_name:
result[check_name] = (cls.name, cls)
return result
checkin_map = checkin_map()
notice_map = {
"BAR... |
Sitoi/dailycheckin | https://github.com/Sitoi/dailycheckin | null | null | null | null | 8,609 | null | null | mit | null | null | null | null | null | null | null | dailycheckin/bilibili/main.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:03.374705 | import json
import os
import time
import requests
from dailycheckin import CheckIn
class BiliBili(CheckIn):
name = "Bilibili"
def __init__(self, check_item: dict):
self.check_item = check_item
@staticmethod
def get_nav(session):
url = "https://api.bilibili.com/x/web-interface/nav"
... |
Sitoi/dailycheckin | https://github.com/Sitoi/dailycheckin | null | null | null | null | 8,609 | null | null | mit | null | null | null | null | null | null | null | dailycheckin/enshan/main.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:03.382053 | import json
import os
import re
import requests
import urllib3
from dailycheckin import CheckIn
urllib3.disable_warnings()
class EnShan(CheckIn):
name = "恩山无线论坛"
def __init__(self, check_item):
self.check_item = check_item
@staticmethod
def get_formhash_from_page(session):
"""GET ... |
Sitoi/dailycheckin | https://github.com/Sitoi/dailycheckin | null | null | null | null | 8,609 | null | null | mit | null | null | null | null | null | null | null | dailycheckin/baiduwp/main.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:03.383010 | import json
import os
import re
import time
import requests
from dailycheckin import CheckIn
class BaiduWP(CheckIn):
name = "百度网盘"
"""
百度网盘会员成长值签到和答题功能。
传入cookie 自动完成签到、答题和会员信息查询。
"""
def __init__(self, check_item: dict):
self.cookie = check_item.get("cookie")
self.session =... |
Sitoi/dailycheckin | https://github.com/Sitoi/dailycheckin | null | null | null | null | 8,609 | null | null | mit | null | null | null | null | null | null | null | dailycheckin/fnnasclub/main.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:04.278464 | import json
import os
import re
import requests
from dailycheckin import CheckIn
class FnNasClub(CheckIn):
name = "飞牛Nas论坛"
def __init__(self, check_item):
self.check_item = check_item
@staticmethod
def get_sign_param_from_page(session):
"""GET 签到页面并提取 sign"""
response = ses... |
Sitoi/dailycheckin | https://github.com/Sitoi/dailycheckin | null | null | null | null | 8,609 | null | null | mit | null | null | null | null | null | null | null | dailycheckin/imaotai/main.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:04.281219 | import base64
import datetime
import json
import math
import os
import random
import time
import requests
from Crypto.Cipher import AES
from dailycheckin import CheckIn
class Encrypt:
def __init__(self, key, iv):
self.key = key.encode("utf-8")
self.iv = iv.encode("utf-8")
def pkcs7padding(s... |
Sitoi/dailycheckin | https://github.com/Sitoi/dailycheckin | null | null | null | null | 8,609 | null | null | mit | null | null | null | null | null | null | null | dailycheckin/main.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:04.286645 | import argparse
import json
import os
import time
from datetime import datetime, timedelta
import requests
from dailycheckin.__version__ import __version__
from dailycheckin.configs import checkin_map, get_checkin_info, get_notice_info
from dailycheckin.utils.message import push_message
def parse_arguments():
p... |
Sitoi/dailycheckin | https://github.com/Sitoi/dailycheckin | null | null | null | null | 8,609 | null | null | mit | null | null | null | null | null | null | null | dailycheckin/kgqq/main.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:04.291847 | import json
import os
import requests
from dailycheckin import CheckIn
class KGQQ(CheckIn):
name = "全民K歌"
def __init__(self, check_item):
self.check_item = check_item
@staticmethod
def sign(kgqq_cookie):
headers = {"Cookie": kgqq_cookie}
uid = kgqq_cookie.split("; ")
... |
Sitoi/dailycheckin | https://github.com/Sitoi/dailycheckin | null | null | null | null | 8,609 | null | null | mit | null | null | null | null | null | null | null | dailycheckin/iqiyi/main.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:04.292885 | import json
import os
import re
import time
from urllib.parse import unquote
from uuid import uuid4
import requests
from dailycheckin import CheckIn
class IQIYI(CheckIn):
name = "爱奇艺"
def __init__(self, check_item):
self.check_item = check_item
@staticmethod
def parse_cookie(cookie):
... |
Sitoi/dailycheckin | https://github.com/Sitoi/dailycheckin | null | null | null | null | 8,609 | null | null | mit | null | null | null | null | null | null | null | dailycheckin/smzdm/main.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:06.386275 | import hashlib
import json
import os
import re
import time
import requests
import urllib3
from dailycheckin import CheckIn
urllib3.disable_warnings()
class SMZDM(CheckIn):
name = "什么值得买"
def __init__(self, check_item: dict):
self.check_item = check_item
def robot_token(self, headers):
... |
Sitoi/dailycheckin | https://github.com/Sitoi/dailycheckin | null | null | null | null | 8,609 | null | null | mit | null | null | null | null | null | null | null | dailycheckin/tieba/main.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:07.398660 | import hashlib
import json
import os
import random
import time
from typing import Optional
import requests
from dailycheckin import CheckIn
class Tieba(CheckIn):
name = "百度贴吧"
def __init__(self, check_item: dict):
self.TBS_URL = "http://tieba.baidu.com/dc/common/tbs"
self.LIKE_URL = "http:/... |
Sitoi/dailycheckin | https://github.com/Sitoi/dailycheckin | null | null | null | null | 8,609 | null | null | mit | null | null | null | null | null | null | null | dailycheckin/utils/message.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:07.399412 | import base64
import hashlib
import hmac
import json
import re
import time
from urllib.parse import quote_plus
import requests
def message2server(sckey, content):
print("server 酱推送开始")
data = {"text": "每日签到", "desp": content.replace("\n", "\n\n")}
requests.post(url=f"https://sc.ftqq.com/{sckey}.send", da... |
Sitoi/dailycheckin | https://github.com/Sitoi/dailycheckin | null | null | null | null | 8,609 | null | null | mit | null | null | null | null | null | null | null | dailycheckin/mimotion/main.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:07.597664 | import json
import os
import random
import re
import time
import requests
from dailycheckin import CheckIn
class MiMotion(CheckIn):
name = "小米运动"
def __init__(self, check_item):
self.check_item = check_item
self.headers = {
"Content-Type": "application/x-www-form-urlencoded; cha... |
Sitoi/dailycheckin | https://github.com/Sitoi/dailycheckin | null | null | null | null | 8,609 | null | null | mit | null | null | null | null | null | null | null | setup.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:08.213127 | import os
from setuptools import find_packages, setup
NAME = "dailycheckin"
FOLDER = "dailycheckin"
DESCRIPTION = "dailycheckin"
EMAIL = "133397418@qq.com"
AUTHOR = "Sitoi"
REQUIRES_PYTHON = ">=3.9.0"
VERSION = None
def read_file(filename):
with open(filename) as fp:
return fp.read().strip()
def read_... |
Sitoi/dailycheckin | https://github.com/Sitoi/dailycheckin | null | null | null | null | 8,609 | null | null | mit | null | null | null | null | null | null | null | imaotai_login.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:08.417224 | import hashlib
import json
import time
import requests
"""
获取地点信息,这里用的高德 api,需要自己去高德开发者平台申请自己的 key
"""
AMAP_KEY = ""
SALT = "2af72f100c356273d46284f6fd1dfc08"
CURRENT_TIME = str(int(time.time() * 1000))
headers = {}
mt_version = json.loads(requests.get("https://itunes.apple.com/cn/lookup?id=1600482450").text)["r... |
Sitoi/dailycheckin | https://github.com/Sitoi/dailycheckin | null | null | null | null | 8,609 | null | null | mit | null | null | null | null | null | null | null | dailycheckin/youdao/main.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:08.418416 | import json
import os
import requests
from dailycheckin import CheckIn
class YouDao(CheckIn):
name = "有道云笔记"
def __init__(self, check_item):
self.check_item = check_item
@staticmethod
def sign(cookies):
ad_space = 0
refresh_cookies_res = requests.get("http://note.youdao.com... |
Sitoi/dailycheckin | https://github.com/Sitoi/dailycheckin | null | null | null | null | 8,609 | null | null | mit | null | null | null | null | null | null | null | dailycheckin/v2ex/main.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:11.182345 | import json
import os
import re
import requests
import urllib3
from dailycheckin import CheckIn
urllib3.disable_warnings()
class V2ex(CheckIn):
name = "V2EX 论坛"
def __init__(self, check_item):
self.check_item = check_item
@staticmethod
def sign(session):
msg = []
response ... |
pdm-project/pdm | https://github.com/pdm-project/pdm | null | null | null | null | 8,608 | null | null | mit | null | null | null | null | null | null | null | src/pdm/builders/sdist.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:15.196583 | from __future__ import annotations
import os
from pdm.builders.base import EnvBuilder, wrap_error
class SdistBuilder(EnvBuilder):
"""Build sdist in isolated env with managed Python."""
@wrap_error
def build(self, out_dir: str, metadata_directory: str | None = None) -> str:
if self.isolated:
... |
pdm-project/pdm | https://github.com/pdm-project/pdm | null | null | null | null | 8,608 | null | null | mit | null | null | null | null | null | null | null | src/pdm/builders/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:15.197322 | from pdm.builders.editable import EditableBuilder
from pdm.builders.sdist import SdistBuilder
from pdm.builders.wheel import WheelBuilder
__all__ = ["EditableBuilder", "SdistBuilder", "WheelBuilder"]
|
pdm-project/pdm | https://github.com/pdm-project/pdm | null | null | null | null | 8,608 | null | null | mit | null | null | null | null | null | null | null | src/pdm/builders/wheel.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:15.198699 | from __future__ import annotations
import os
from pdm.builders.base import EnvBuilder, wrap_error
class WheelBuilder(EnvBuilder):
"""Build wheel in isolated env with managed Python."""
@wrap_error
def prepare_metadata(self, out_dir: str) -> str:
if self.isolated:
self.install(self._... |
pdm-project/pdm | https://github.com/pdm-project/pdm | null | null | null | null | 8,608 | null | null | mit | null | null | null | null | null | null | null | src/pdm/__version__.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:15.199582 | from pdm.compat import importlib_metadata, resources_read_text
def read_version() -> str:
try:
return importlib_metadata.version(__package__ or "pdm")
except importlib_metadata.PackageNotFoundError:
return resources_read_text("pdm", "VERSION").strip()
__version__ = read_version()
|
pdm-project/pdm | https://github.com/pdm-project/pdm | null | null | null | null | 8,608 | null | null | mit | null | null | null | null | null | null | null | src/pdm/builders/base.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:15.202863 | from __future__ import annotations
import functools
import logging
import os
import shutil
import subprocess
import textwrap
import threading
from logging import Logger
from pathlib import Path
from typing import TYPE_CHECKING, Any, ClassVar, Iterable, cast
from pyproject_hooks import (
BackendInvalid,
Backen... |
pdm-project/pdm | https://github.com/pdm-project/pdm | null | null | null | null | 8,608 | null | null | mit | null | null | null | null | null | null | null | src/pdm/_types.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:15.204491 | from __future__ import annotations
import dataclasses as dc
import re
from typing import TYPE_CHECKING, Any, NamedTuple, TypeVar, Union
if TYPE_CHECKING:
from typing import Protocol
def _normalize_pattern(pattern: str) -> str:
return re.sub(r"[^A-Za-z0-9?*\[\]-]+", "-", pattern).lower()
@dc.dataclass
clas... |
pdm-project/pdm | https://github.com/pdm-project/pdm | null | null | null | null | 8,608 | null | null | mit | null | null | null | null | null | null | null | install-pdm.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:15.205532 | from __future__ import annotations
import argparse
import dataclasses
import io
import json
import os
import platform
import shutil
import site
import subprocess
import sys
import urllib.request
from pathlib import Path
from tempfile import TemporaryDirectory
from typing import Sequence
if sys.version_info < (3, 8): ... |
pdm-project/pdm | https://github.com/pdm-project/pdm | null | null | null | null | 8,608 | null | null | mit | null | null | null | null | null | null | null | src/pdm/builders/editable.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:15.206475 | from __future__ import annotations
import os
from pdm.builders.base import EnvBuilder, wrap_error
class EditableBuilder(EnvBuilder):
"""Build egg-info in isolated env with managed Python."""
@wrap_error
def prepare_metadata(self, out_dir: str) -> str:
if self.isolated:
self.install(... |
pdm-project/pdm | https://github.com/pdm-project/pdm | null | null | null | null | 8,608 | null | null | mit | null | null | null | null | null | null | null | src/pdm/cli/commands/cache.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:17.643924 | import argparse
import os
from pathlib import Path
from typing import Iterable
from pdm import termui
from pdm.cli.commands.base import BaseCommand
from pdm.cli.options import verbose_option
from pdm.exceptions import PdmUsageError
from pdm.project import Project
class Command(BaseCommand):
"""Control the caches... |
pdm-project/pdm | https://github.com/pdm-project/pdm | null | null | null | null | 8,608 | null | null | mit | null | null | null | null | null | null | null | src/pdm/cli/commands/base.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:17.645427 | from __future__ import annotations
import argparse
from argparse import _SubParsersAction
from typing import Any, Sequence, TypeVar
from pdm.cli.options import Option, global_option, project_option, verbose_option
from pdm.project import Project
C = TypeVar("C", bound="BaseCommand")
class BaseCommand:
"""A CLI... |
pdm-project/pdm | https://github.com/pdm-project/pdm | null | null | null | null | 8,608 | null | null | mit | null | null | null | null | null | null | null | src/pdm/cli/commands/export.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:17.646428 | from __future__ import annotations
import argparse
from pathlib import Path
from typing import Iterable
import tomlkit
from pdm.cli.commands.base import BaseCommand
from pdm.cli.filters import GroupSelection
from pdm.cli.options import groups_group, lockfile_option
from pdm.exceptions import PdmUsageError
from pdm.f... |
pdm-project/pdm | https://github.com/pdm-project/pdm | null | null | null | null | 8,608 | null | null | mit | null | null | null | null | null | null | null | src/pdm/cli/commands/build.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:17.648039 | from __future__ import annotations
import argparse
import os
import shutil
import tarfile
import tempfile
from pathlib import Path
from typing import Mapping
from pdm.cli.commands.base import BaseCommand
from pdm.cli.hooks import HookManager
from pdm.cli.options import (
config_setting_option,
no_isolation_op... |
pdm-project/pdm | https://github.com/pdm-project/pdm | null | null | null | null | 8,608 | null | null | mit | null | null | null | null | null | null | null | src/pdm/cli/commands/config.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:17.649159 | import argparse
import os
from pathlib import Path
from typing import Any, Mapping
from pdm import termui
from pdm._types import RepositoryConfig
from pdm.cli.commands.base import BaseCommand
from pdm.exceptions import PdmUsageError
from pdm.project import Project
from pdm.project.config import DEFAULT_REPOSITORIES, R... |
pdm-project/pdm | https://github.com/pdm-project/pdm | null | null | null | null | 8,608 | null | null | mit | null | null | null | null | null | null | null | src/pdm/cli/commands/completion.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:17.650490 | from __future__ import annotations
import argparse
import sys
from pdm.cli.commands.base import BaseCommand
from pdm.compat import resources_read_text
from pdm.exceptions import PdmUsageError
from pdm.project import Project
class Command(BaseCommand):
"""Generate completion scripts for the given shell"""
a... |
pdm-project/pdm | https://github.com/pdm-project/pdm | null | null | null | null | 8,608 | null | null | mit | null | null | null | null | null | null | null | src/pdm/cli/commands/add.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:17.651561 | from __future__ import annotations
import argparse
from typing import TYPE_CHECKING
from pdm.cli.commands.base import BaseCommand
from pdm.cli.filters import GroupSelection
from pdm.cli.hooks import HookManager
from pdm.cli.options import (
dry_run_option,
frozen_lockfile_option,
install_group,
lockfi... |
pdm-project/pdm | https://github.com/pdm-project/pdm | null | null | null | null | 8,608 | null | null | mit | null | null | null | null | null | null | null | src/pdm/cli/actions.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:17.652563 | from __future__ import annotations
import contextlib
import datetime
import hashlib
import inspect
import json
import os
import sys
import textwrap
from typing import TYPE_CHECKING, Collection, Iterable, cast
from resolvelib.resolvers import ResolutionImpossible, ResolutionTooDeep
from pdm import termui
from pdm.cli... |
pdm-project/pdm | https://github.com/pdm-project/pdm | null | null | null | null | 8,608 | null | null | mit | null | null | null | null | null | null | null | src/pdm/cli/commands/outdated.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:18.710936 | from __future__ import annotations
import functools
import json
from concurrent.futures import ThreadPoolExecutor
from dataclasses import asdict, dataclass
from fnmatch import fnmatch
from itertools import zip_longest
from typing import TYPE_CHECKING, cast
from pdm.cli.commands.base import BaseCommand
from pdm.cli.ut... |
pdm-project/pdm | https://github.com/pdm-project/pdm | null | null | null | null | 8,608 | null | null | mit | null | null | null | null | null | null | null | src/pdm/cli/commands/fix/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:18.711481 | from __future__ import annotations
import argparse
from pdm.cli.commands.base import BaseCommand
from pdm.cli.commands.fix.fixers import BaseFixer, LockStrategyFixer, PackageTypeFixer, ProjectConfigFixer
from pdm.exceptions import PdmUsageError
from pdm.project import Project
from pdm.termui import Emoji
class Comm... |
pdm-project/pdm | https://github.com/pdm-project/pdm | null | null | null | null | 8,608 | null | null | mit | null | null | null | null | null | null | null | src/pdm/cli/commands/info.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:18.713341 | import argparse
import json
from rich import print_json
from pdm.cli.commands.base import BaseCommand
from pdm.cli.options import ArgumentGroup, venv_option
from pdm.cli.utils import check_project_file
from pdm.project import Project
class Command(BaseCommand):
"""Show the project information"""
def add_ar... |
pdm-project/pdm | https://github.com/pdm-project/pdm | null | null | null | null | 8,608 | null | null | mit | null | null | null | null | null | null | null | src/pdm/cli/commands/install.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:18.741206 | import argparse
import sys
import sysconfig
from pdm import termui
from pdm.cli import actions
from pdm.cli.commands.base import BaseCommand
from pdm.cli.filters import GroupSelection
from pdm.cli.hooks import HookManager
from pdm.cli.options import (
dry_run_option,
frozen_lockfile_option,
groups_group,
... |
pdm-project/pdm | https://github.com/pdm-project/pdm | null | null | null | null | 8,608 | null | null | mit | null | null | null | null | null | null | null | src/pdm/cli/commands/fix/fixers.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:18.742142 | import abc
import re
from pdm.project import Config, Project
from pdm.project.lockfile import FLAG_CROSS_PLATFORM
from pdm.termui import Verbosity
from pdm.utils import parse_version
class BaseFixer(abc.ABC):
"""Base class for fixers"""
# A unique identifier for the fixer
identifier: str
# A boolean... |
pdm-project/pdm | https://github.com/pdm-project/pdm | null | null | null | null | 8,608 | null | null | mit | null | null | null | null | null | null | null | src/pdm/cli/commands/import_cmd.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:18.743249 | from __future__ import annotations
import argparse
from pdm.cli.commands.base import BaseCommand
from pdm.exceptions import PdmUsageError
from pdm.formats import FORMATS
from pdm.project import Project
class Command(BaseCommand):
"""Import project metadata from other formats"""
name = "import"
def add... |
pdm-project/pdm | https://github.com/pdm-project/pdm | null | null | null | null | 8,608 | null | null | mit | null | null | null | null | null | null | null | src/pdm/cli/commands/list.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:19.281287 | from __future__ import annotations
import argparse
import csv
import io
import json
from collections import defaultdict
from fnmatch import fnmatch
from typing import Iterable, Mapping, Sequence
from pdm.cli import actions
from pdm.cli.commands.base import BaseCommand
from pdm.cli.options import venv_option
from pdm.... |
pdm-project/pdm | https://github.com/pdm-project/pdm | null | null | null | null | 8,608 | null | null | mit | null | null | null | null | null | null | null | src/pdm/cli/commands/new.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:19.615815 | import argparse
import os
from pdm.cli.commands.base import verbose_option
from pdm.cli.commands.init import Command as InitCommand
from pdm.project.core import Project
class Command(InitCommand):
"""Create a new Python project at <project_path>"""
supports_other_generator = False
arguments = (verbose_... |
pdm-project/pdm | https://github.com/pdm-project/pdm | null | null | null | null | 8,608 | null | null | mit | null | null | null | null | null | null | null | src/pdm/cli/commands/publish/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:19.701461 | from __future__ import annotations
import argparse
import os
from typing import TYPE_CHECKING
from pdm.cli.commands import build
from pdm.cli.commands.base import BaseCommand
from pdm.cli.commands.publish.package import PackageFile
from pdm.cli.hooks import HookManager
from pdm.cli.options import project_option, skip... |
pdm-project/pdm | https://github.com/pdm-project/pdm | null | null | null | null | 8,608 | null | null | mit | null | null | null | null | null | null | null | src/pdm/cli/commands/publish/package.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:19.746173 | from __future__ import annotations
import email
import email.message
import email.policy
import hashlib
import io
import os
import re
import subprocess
from dataclasses import dataclass
from typing import IO, Any, cast
from pdm.exceptions import PdmUsageError, ProjectError
from pdm.termui import logger
DIST_EXTENSIO... |
pdm-project/pdm | https://github.com/pdm-project/pdm | null | null | null | null | 8,608 | null | null | mit | null | null | null | null | null | null | null | src/pdm/cli/commands/publish/repository.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:19.782349 | from __future__ import annotations
import os
from typing import TYPE_CHECKING, Any, Iterable, cast
from urllib.parse import urlparse, urlunparse
import httpx
from id import AmbientCredentialError, detect_credential
from rich.progress import (
BarColumn,
DownloadColumn,
TimeRemainingColumn,
TransferSpe... |
pdm-project/pdm | https://github.com/pdm-project/pdm | null | null | null | null | 8,608 | null | null | mit | null | null | null | null | null | null | null | src/pdm/cli/commands/lock.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:19.898303 | import argparse
import re
import sys
from typing import cast
from pdm import termui
from pdm.cli import actions
from pdm.cli.commands.base import BaseCommand
from pdm.cli.filters import GroupSelection
from pdm.cli.hooks import HookManager
from pdm.cli.options import (
config_setting_option,
groups_group,
l... |
pdm-project/pdm | https://github.com/pdm-project/pdm | null | null | null | null | 8,608 | null | null | mit | null | null | null | null | null | null | null | src/pdm/cli/commands/init.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:19.900118 | from __future__ import annotations
import argparse
from typing import TYPE_CHECKING, Any, cast
from pdm import termui
from pdm.cli import actions
from pdm.cli.commands.base import BaseCommand
from pdm.cli.hooks import HookManager
from pdm.cli.options import skip_option
from pdm.cli.templates import ProjectTemplate
fr... |
pdm-project/pdm | https://github.com/pdm-project/pdm | null | null | null | null | 8,608 | null | null | mit | null | null | null | null | null | null | null | src/pdm/cli/commands/remove.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:19.901156 | from __future__ import annotations
import argparse
from typing import TYPE_CHECKING
from pdm.cli.commands.base import BaseCommand
from pdm.cli.filters import GroupSelection
from pdm.cli.hooks import HookManager
from pdm.cli.options import (
dry_run_option,
frozen_lockfile_option,
install_group,
lockfi... |
pdm-project/pdm | https://github.com/pdm-project/pdm | null | null | null | null | 8,608 | null | null | mit | null | null | null | null | null | null | null | src/pdm/cli/commands/run.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:19.902314 | from __future__ import annotations
import argparse
import contextlib
import itertools
import os
import re
import shlex
import signal
import subprocess
import sys
from functools import partial
from pathlib import Path
from typing import TYPE_CHECKING, Mapping, NamedTuple, Sequence, cast
from rich import print_json
fr... |
pdm-project/pdm | https://github.com/pdm-project/pdm | null | null | null | null | 8,608 | null | null | mit | null | null | null | null | null | null | null | src/pdm/cli/commands/python.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:19.936592 | from __future__ import annotations
import os
import shutil
import sys
import tempfile
from argparse import ArgumentParser
from pathlib import Path
from typing import TYPE_CHECKING, cast
from pdm.cli.commands.base import BaseCommand
from pdm.cli.options import verbose_option
from pdm.environments import BareEnvironmen... |
pdm-project/pdm | https://github.com/pdm-project/pdm | null | null | null | null | 8,608 | null | null | mit | null | null | null | null | null | null | null | src/pdm/cli/commands/search.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:19.937887 | from __future__ import annotations
import argparse
import textwrap
from pdm import termui
from pdm._types import SearchResults
from pdm.cli.commands.base import BaseCommand
from pdm.cli.options import verbose_option
from pdm.models.working_set import WorkingSet
from pdm.project import Project
from pdm.utils import no... |
pdm-project/pdm | https://github.com/pdm-project/pdm | null | null | null | null | 8,608 | null | null | mit | null | null | null | null | null | null | null | src/pdm/cli/commands/self_cmd.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:20.307129 | from __future__ import annotations
import argparse
import shlex
import subprocess
import sys
from typing import Any
from pdm import termui
from pdm.cli.actions import get_latest_pdm_version_from_pypi
from pdm.cli.commands.base import BaseCommand
from pdm.cli.options import verbose_option
from pdm.cli.utils import Pac... |
pdm-project/pdm | https://github.com/pdm-project/pdm | null | null | null | null | 8,608 | null | null | mit | null | null | null | null | null | null | null | src/pdm/cli/commands/sync.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:20.511675 | import argparse
from pdm.cli import actions
from pdm.cli.commands.base import BaseCommand
from pdm.cli.filters import GroupSelection
from pdm.cli.hooks import HookManager
from pdm.cli.options import (
clean_group,
dry_run_option,
groups_group,
install_group,
lockfile_option,
skip_option,
ve... |
pdm-project/pdm | https://github.com/pdm-project/pdm | null | null | null | null | 8,608 | null | null | mit | null | null | null | null | null | null | null | src/pdm/cli/commands/show.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:20.623673 | from __future__ import annotations
import argparse
from typing import TYPE_CHECKING
from pdm.cli.commands.base import BaseCommand
from pdm.cli.options import venv_option
from pdm.exceptions import PdmUsageError
from pdm.models.candidates import Candidate
from pdm.models.project_info import ProjectInfo
from pdm.models... |
pdm-project/pdm | https://github.com/pdm-project/pdm | null | null | null | null | 8,608 | null | null | mit | null | null | null | null | null | null | null | src/pdm/cli/commands/venv/list.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:20.723010 | from __future__ import annotations
from pathlib import Path
from typing import TYPE_CHECKING
from pdm.cli.commands.base import BaseCommand
from pdm.cli.commands.venv.utils import iter_venvs
from pdm.cli.options import verbose_option
if TYPE_CHECKING:
from argparse import Namespace
from pdm.project import Pr... |
pdm-project/pdm | https://github.com/pdm-project/pdm | null | null | null | null | 8,608 | null | null | mit | null | null | null | null | null | null | null | src/pdm/cli/commands/venv/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:09:20.808197 | from __future__ import annotations
from typing import TYPE_CHECKING
from pdm.cli.commands.base import BaseCommand
from pdm.cli.commands.venv.activate import ActivateCommand
from pdm.cli.commands.venv.create import CreateCommand
from pdm.cli.commands.venv.list import ListCommand
from pdm.cli.commands.venv.purge import... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.