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
CharlesPikachu/pytools
https://github.com/CharlesPikachu/pytools
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
pytools/modules/arxivhelper/arxivhelper.py
null
null
null
null
null
null
Python
2026-05-04T02:39:59.348667
''' Function: 每天从arxiv获取自己感兴趣的论文 Author: Charles 微信公众号: Charles的皮卡丘 ''' import os import time import click import random import pickle import requests from bs4 import BeautifulSoup '''每天从arxiv获取自己感兴趣的论文''' class ArxivHelper(): tool_name = 'Arxiv小助手' def __init__(self, keywords_list=['continual lea...
CharlesPikachu/pytools
https://github.com/CharlesPikachu/pytools
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
pytools/modules/calculator/calculator.py
null
null
null
null
null
null
Python
2026-05-04T02:39:59.349835
''' Function: 简易计算器 Author: Charles 微信公众号: Charles的皮卡丘 ''' import math import tkinter '''简易计算器''' class Calculator(): tool_name = '简易计算器' def __init__(self, title='简易计算器 —— Charles的皮卡丘', root_size=(320, 420), **kwargs): # 基本界面 self.root = tkinter.Tk() self.root.resizable(wi...
CharlesPikachu/pytools
https://github.com/CharlesPikachu/pytools
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
pytools/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:39:59.706006
'''title''' __title__ = 'pikachupytools' '''description''' __description__ = 'Pytools: Some useful tools written by pure python.' '''url''' __url__ = 'https://github.com/CharlesPikachu/pytools' '''version''' __version__ = '0.1.24' '''author''' __author__ = 'Charles' '''email''' __email__ = 'charlesblwx@gmail.com' '''li...
CharlesPikachu/pytools
https://github.com/CharlesPikachu/pytools
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
docs/conf.py
null
null
null
null
null
null
Python
2026-05-04T02:39:59.771103
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
CharlesPikachu/pytools
https://github.com/CharlesPikachu/pytools
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
pytools/modules/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:39:59.801288
'''初始化''' from .timer import Timer from .clock import Clock from .runcat import RunCat from .sheepsheep import SheepSheep from .tianyancha import Tianyancha from .ukrainemap import UkraineMap from .desktoppet import DesktopPet from .translator import Translator from .calculator import Calculator from .arxivhelper impor...
CharlesPikachu/pytools
https://github.com/CharlesPikachu/pytools
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
pytools/modules/clock/clock.py
null
null
null
null
null
null
Python
2026-05-04T02:39:59.936002
''' Function: 简易时钟 Author: Charles 微信公众号: Charles的皮卡丘 ''' import turtle import datetime '''简易时钟''' class Clock(): tool_name = '简易时钟' def __init__(self, title='简易时钟 —— Charles的皮卡丘', time_deltas=(0, 0, 0), **kwargs): turtle.title(title) self.time_deltas = time_deltas '''悬空移动''' ...
CharlesPikachu/pytools
https://github.com/CharlesPikachu/pytools
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
pytools/modules/artsigngenerator/artsigngenerator.py
null
null
null
null
null
null
Python
2026-05-04T02:39:59.967502
''' Function: 艺术签名生成器 Author: Charles 微信公众号: Charles的皮卡丘 ''' import os import re import io import requests from PIL import Image from PyQt5.QtGui import * from PyQt5.QtWidgets import * from PyQt5 import QtWidgets, QtGui '''艺术签名生成器''' class ArtSignGenerator(QWidget): tool_name = '艺术签名生成器' def __ini...
CharlesPikachu/pytools
https://github.com/CharlesPikachu/pytools
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
pytools/modules/computersinger/computersinger.py
null
null
null
null
null
null
Python
2026-05-04T02:40:00.112466
''' Function: 让电脑主板上的蜂鸣器哼歌 Author: Charles 微信公众号: Charles的皮卡丘 ''' import os import sys import time import threading from PyQt5.QtGui import * from PyQt5.QtCore import * from PyQt5.QtWidgets import * '''让电脑主板上的蜂鸣器哼歌''' class ComputerSinger(QWidget): tool_name = '让电脑主板上的蜂鸣器哼歌' def __init__(self, par...
CharlesPikachu/pytools
https://github.com/CharlesPikachu/pytools
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
pytools/modules/controlpcbyemail/controlpcbyemail.py
null
null
null
null
null
null
Python
2026-05-04T02:40:00.304932
''' Function: 邮件控制电脑 Author: Charles 微信公众号: Charles的皮卡丘 ''' import re import os import json import time import email import poplib import smtplib import datetime from email import encoders from email.header import Header from email.parser import Parser from email.mime.base import MIMEBase from email.mime.te...
CharlesPikachu/pytools
https://github.com/CharlesPikachu/pytools
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
pytools/modules/coupletgenerator/coupletgenerator.py
null
null
null
null
null
null
Python
2026-05-04T02:40:00.352623
''' Function: 对联生成器 Author: Charles 微信公众号: Charles的皮卡丘 ''' import os import json import random import requests from PyQt5 import * from PyQt5.QtGui import * from PyQt5.QtCore import * from PyQt5.QtWidgets import * from PyQt5 import QtWidgets, QtGui '''对联生成器''' class CoupletGenerator(QWidget): tool_nam...
CharlesPikachu/pytools
https://github.com/CharlesPikachu/pytools
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
pytools/modules/decryptbrowser/decryptbrowser.py
null
null
null
null
null
null
Python
2026-05-04T02:40:00.411902
''' Function: 盗取浏览器里的账号密码 Author: Charles 微信公众号: Charles的皮卡丘 ''' import os import csv import json import shutil import base64 import sqlite3 '''盗取浏览器里的账号密码''' class DecryptBrowser(): tool_name = '盗取浏览器里的账号密码' def __init__(self, savename='results.csv'): self.csv_heads = ['url', 'username', ...
CharlesPikachu/pytools
https://github.com/CharlesPikachu/pytools
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
pytools/modules/desktoppet/desktoppet.py
null
null
null
null
null
null
Python
2026-05-04T02:40:00.520755
''' Function: 桌面宠物 Author: Charles 微信公众号: Charles的皮卡丘 ''' import os import sys import time import random import requests import threading from PyQt5.QtGui import * from PyQt5.QtCore import * from PyQt5.QtWidgets import * from PyQt5 import QtWidgets, QtGui '''配置信息''' class Config(): ROOT_DIR = os.path....
CharlesPikachu/pytools
https://github.com/CharlesPikachu/pytools
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
pytools/modules/earthwallpaper/earthwallpaper.py
null
null
null
null
null
null
Python
2026-05-04T02:40:00.686013
''' Function: 动态更新地球壁纸 Author: Charles 微信公众号: Charles的皮卡丘 ''' import os import datetime import requests '''动态更新地球壁纸''' class EarthWallpaper(): tool_name = '动态更新地球壁纸' def __init__(self, cache_dir='download', zoom_level=4, **kwargs): assert zoom_level >= 1 and zoom_level <= 20 self.z...
CharlesPikachu/pytools
https://github.com/CharlesPikachu/pytools
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
pytools/modules/emailsecurity/emailsecurity.py
null
null
null
null
null
null
Python
2026-05-04T02:40:00.793189
''' Function: 邮箱安全性验证工具 Author: Charles 微信公众号: Charles的皮卡丘 ''' import re import time import random import hashlib import requests from lxml import etree '''邮箱安全性验证工具''' class EmailSecurity(): tool_name = '邮箱安全性验证工具' def __init__(self, emails=None, check_mode='Haveibeenpwned', hibp_api_key=None, **...
CharlesPikachu/pytools
https://github.com/CharlesPikachu/pytools
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
pytools/modules/genderpredictor/genderpredictor.py
null
null
null
null
null
null
Python
2026-05-04T02:40:00.897881
''' Function: 给定中文名的性别猜测器 Author: Charles 微信公众号: Charles的皮卡丘 ''' import os import csv from PyQt5.QtGui import * from PyQt5.QtWidgets import * '''给定中文名的性别猜测器''' class GenderPredictor(QWidget): tool_name = '给定中文名的性别猜测器' def __init__(self, parent=None, title='给定中文名的性别猜测器 —— Charles的皮卡丘', **kwargs): ...
CharlesPikachu/pytools
https://github.com/CharlesPikachu/pytools
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
pytools/modules/githubacceleration/githubacceleration.py
null
null
null
null
null
null
Python
2026-05-04T02:40:01.041404
''' Function: 国内访问Github一键加速脚本 Author: Charles 微信公众号: Charles的皮卡丘 ''' import os import re import shutil import requests import platform from tqdm import tqdm from pythonping import ping from bs4 import BeautifulSoup '''国内访问Github一键加速脚本''' class GithubAcceleration(): tool_name = '国内访问Github一键加速脚本' ...
CharlesPikachu/pytools
https://github.com/CharlesPikachu/pytools
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
pytools/modules/goodgoodgenerator/goodgoodgenerator.py
null
null
null
null
null
null
Python
2026-05-04T02:40:01.075004
''' Function: 稳中向好生成器 Author: Charles 微信公众号: Charle的皮卡丘 ''' import os import json import random import pyttsx3 from PyQt5.QtGui import * from PyQt5.QtWidgets import * from PyQt5 import QtWidgets, QtGui '''稳中向好生成器''' class GoodGoodGenerator(QWidget): tool_name = '稳中向好生成器' def __init__(self, parent=...
CharlesPikachu/pytools
https://github.com/CharlesPikachu/pytools
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
pytools/modules/hubbleseeonbirthday/hubbleseeonbirthday.py
null
null
null
null
null
null
Python
2026-05-04T02:40:01.266443
''' Function: 你生日那天的宇宙 Author: Charles 微信公众号: Charles的皮卡丘 ''' import io import os import warnings import requests import threading from PyQt5 import * from PIL import Image from lxml import etree from PyQt5.QtGui import * from PyQt5.QtCore import * from PyQt5.QtWidgets import * from PyQt5 import QtWidgets, ...
CharlesPikachu/pytools
https://github.com/CharlesPikachu/pytools
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
pytools/modules/idcardquery/idcardquery.py
null
null
null
null
null
null
Python
2026-05-04T02:40:01.400468
''' Function: 身份证信息查询工具 Author: Charles 微信公众号: Charles的皮卡丘 ''' import os from PyQt5 import * from PyQt5.QtGui import * from PyQt5.QtCore import * from PyQt5.QtWidgets import * from PyQt5 import QtWidgets, QtGui from id_validator import validator '''身份证信息查询工具''' class IDCardQuery(QWidget): tool_name = ...
CharlesPikachu/pytools
https://github.com/CharlesPikachu/pytools
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
pytools/modules/idiomsolitaire/idiomsolitaire.py
null
null
null
null
null
null
Python
2026-05-04T02:40:01.572831
''' Function: 成语接龙小软件 Author: Charles 微信公众号: Charles的皮卡丘 ''' import os import random from PyQt5.QtGui import * from PyQt5.QtWidgets import * '''成语接龙''' class IdiomSolitaire(QWidget): tool_name = '成语接龙小软件' def __init__(self, parent=None, title='成语接龙小软件 —— Charles的皮卡丘', **kwargs): super(Idio...
CharlesPikachu/pytools
https://github.com/CharlesPikachu/pytools
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
pytools/modules/inquiryexpress/inquiryexpress.py
null
null
null
null
null
null
Python
2026-05-04T02:40:01.619307
''' Function: 快递查询系统 Author: Charles 微信公众号: Charles的皮卡丘 ''' import os import time import pickle import random import requests from PyQt5.QtGui import * from PyQt5.QtWidgets import * from PyQt5 import QtWidgets, QtGui '''快递查询系统''' class InquiryExpress(QWidget): tool_name = '快递查询系统' def __init__(sel...
CharlesPikachu/pytools
https://github.com/CharlesPikachu/pytools
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
pytools/modules/iplocationquery/iplocationquery.py
null
null
null
null
null
null
Python
2026-05-04T02:40:01.653499
''' Function: 根据IP地址查询地理信息小工具 Author: Charles 微信公众号: Charles的皮卡丘 ''' import IPy import time import random import hashlib import argparse import requests '''根据IP地址查询地理信息小工具''' class IPLocationQuery(): tool_name = '根据IP地址查询地理信息小工具' def __init__(self, ipaddress='202.108.23.153', **kwargs): ...
CharlesPikachu/pytools
https://github.com/CharlesPikachu/pytools
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
pytools/modules/luxunsentencesquery/luxunsentencesquery.py
null
null
null
null
null
null
Python
2026-05-04T02:40:01.833664
''' Function: 鲁迅名言查询系统 Author: Charles 微信公众号: Charles的皮卡丘 ''' import os from PyQt5 import * from PyQt5.QtGui import * from PyQt5.QtCore import * from PyQt5.QtWidgets import * from PyQt5 import QtWidgets, QtGui from fuzzywuzzy import fuzz from fuzzywuzzy import process '''鲁迅名言查询系统''' class LuxunSentencesQu...
CharlesPikachu/pytools
https://github.com/CharlesPikachu/pytools
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
pytools/modules/modifyfoldericon/modifyfoldericon.py
null
null
null
null
null
null
Python
2026-05-04T02:40:01.951021
''' Function: 文件夹图标批量修改 Author: Charles 微信公众号: Charles的皮卡丘 ''' import os import stat '''文件夹图标批量修改''' class ModifyFolderICON(): tool_name = '文件夹图标批量修改' def __init__(self, icon_path, **kwargs): assert os.path.exists(icon_path) self.icon_path = icon_path '''run''' def run(self...
CharlesPikachu/pytools
https://github.com/CharlesPikachu/pytools
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
pytools/modules/moviehelper/moviehelper.py
null
null
null
null
null
null
Python
2026-05-04T02:40:02.247537
''' Function: 电影小助手 Author: Charles 微信公众号: Charles的皮卡丘 ''' import sys from .apis import * '''电影小助手''' class MovieHelper(): tool_name = '电影小助手' def __init__(self, **kwargs): self.__version = 'V 1.1.0' self.__author = 'Charles' self.__source = '微信公众号: Charles的皮卡丘' sel...
CharlesPikachu/pytools
https://github.com/CharlesPikachu/pytools
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
pytools/modules/moviehelper/apis/douban.py
null
null
null
null
null
null
Python
2026-05-04T02:40:02.265897
''' Function: 根据电影名在豆瓣电影里搜索电影信息(脚本仅供学习交流,禁止用于其他) Author: Charles 微信公众号: Charles的皮卡丘 ''' import re import sys import requests import urllib.parse '''根据电影名在豆瓣电影里搜索电影信息''' class Douban(): def __init__(self): self.headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) A...
CharlesPikachu/pytools
https://github.com/CharlesPikachu/pytools
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
pytools/modules/moviehelper/apis/paofan.py
null
null
null
null
null
null
Python
2026-05-04T02:40:02.308388
''' Function: 根据电影名在泡饭影视里搜索电影资源(脚本仅供学习交流,禁止用于其他) Author: Charles 微信公众号: Charles的皮卡丘 ''' import re import sys import requests from bs4 import BeautifulSoup '''泡饭影视''' class Paofan(): def __init__(self): self.headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) Appl...
ishepard/pydriller
https://github.com/ishepard/pydriller
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
pydriller/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:40:04.540680
# pylint: disable=C0111 from .domain.commit import Commit, ModifiedFile, ModificationType # noqa from .repository import Repository, Git # noqa __version__ = "2.9"
ishepard/pydriller
https://github.com/ishepard/pydriller
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
pydriller/domain/commit.py
null
null
null
null
null
null
Python
2026-05-04T02:40:04.550648
# Copyright 2018 Davide Spadini # # 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 to in writing...
ishepard/pydriller
https://github.com/ishepard/pydriller
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
docs/conf.py
null
null
null
null
null
null
Python
2026-05-04T02:40:04.554079
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/stable/config # -- Path setup ------------------------------------------------------------...
ishepard/pydriller
https://github.com/ishepard/pydriller
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
pydriller/git.py
null
null
null
null
null
null
Python
2026-05-04T02:40:04.555077
# Copyright 2018 Davide Spadini # # 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 to in writing...
ishepard/pydriller
https://github.com/ishepard/pydriller
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
pydriller/domain/developer.py
null
null
null
null
null
null
Python
2026-05-04T02:40:04.572878
# Copyright 2018 Davide Spadini # # 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 to in writing...
ishepard/pydriller
https://github.com/ishepard/pydriller
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
pydriller/metrics/process/code_churn.py
null
null
null
null
null
null
Python
2026-05-04T02:40:04.573962
""" Module that calculates the number of hunks made to a commit file. """ import statistics from typing import Optional, Dict, Tuple from pydriller import ModificationType from pydriller.metrics.process.process_metric import ProcessMetric class CodeChurn(ProcessMetric): """ This class is responsible to imple...
ishepard/pydriller
https://github.com/ishepard/pydriller
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
pydriller/domain/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:40:04.574864
# from pydriller.utils.check_git_version import CheckGitVersion # # # CheckGitVersion().check_git_version()
ishepard/pydriller
https://github.com/ishepard/pydriller
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
pydriller/metrics/process/change_set.py
null
null
null
null
null
null
Python
2026-05-04T02:40:04.646264
""" Module that calculates the number of files committed together. """ import statistics from typing import Optional from pydriller.metrics.process.process_metric import ProcessMetric class ChangeSet(ProcessMetric): """ This class is responsible to implement the Change Set metric that measures the *...
ishepard/pydriller
https://github.com/ishepard/pydriller
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
pydriller/metrics/process/history_complexity.py
null
null
null
null
null
null
Python
2026-05-04T02:40:05.158013
""" Module that calculates the History Complexity Period Factor (HCPF) \ for the History Complexity Metric (HCM). The History Complexity Metric can be calculated by calling the \ method count as many times as the evolution period to analyze and \ summing up the results. E.g. hcpf_1 = HistoryComplexity(..., from_comm...
ishepard/pydriller
https://github.com/ishepard/pydriller
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
pydriller/metrics/process/lines_count.py
null
null
null
null
null
null
Python
2026-05-04T02:40:05.159649
""" Module that calculates the number of normalized added and deleted lines of a file. """ import statistics from typing import Optional from pydriller import ModificationType from pydriller.metrics.process.process_metric import ProcessMetric class LinesCount(ProcessMetric): """ This class is responsible to i...
ishepard/pydriller
https://github.com/ishepard/pydriller
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
pydriller/metrics/process/contributors_count.py
null
null
null
null
null
null
Python
2026-05-04T02:40:05.162029
""" Module that calculates the number of developers that contributed to each modified file in the repo in a given time range. See https://dl.acm.org/doi/10.1145/2025113.2025119 """ from typing import Optional from pydriller import ModificationType from pydriller.metrics.process.process_metric import ProcessMetric cl...
ishepard/pydriller
https://github.com/ishepard/pydriller
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
pydriller/metrics/process/commits_count.py
null
null
null
null
null
null
Python
2026-05-04T02:40:05.163243
""" Module that calculates the number of commits made to a file. """ from pydriller import ModificationType from pydriller.metrics.process.process_metric import ProcessMetric class CommitsCount(ProcessMetric): """ This class is responsible to implement the Commit Count metric to \ measure the number of c...
ishepard/pydriller
https://github.com/ishepard/pydriller
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
pydriller/repository.py
null
null
null
null
null
null
Python
2026-05-04T02:40:05.216339
# Copyright 2018 Davide Spadini # # 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 to in writing...
ishepard/pydriller
https://github.com/ishepard/pydriller
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
pydriller/metrics/process/contributors_experience.py
null
null
null
null
null
null
Python
2026-05-04T02:40:05.238991
""" Module that calculates the experience of contributors of a file. """ from pydriller import ModificationType from pydriller.metrics.process.process_metric import ProcessMetric class ContributorsExperience(ProcessMetric): """ This class is responsible to implement the metric to measure the percentage of...
ishepard/pydriller
https://github.com/ishepard/pydriller
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
pydriller/metrics/process/process_metric.py
null
null
null
null
null
null
Python
2026-05-04T02:40:05.240035
""" This module contains the abstract class to implement process metrics. """ from datetime import datetime from typing import Optional from pydriller import Repository class ProcessMetric: """ Abstract class to implement process metrics """ def __init__(self, path_to_repo: str, sin...
ishepard/pydriller
https://github.com/ishepard/pydriller
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
pydriller/metrics/process/hunks_count.py
null
null
null
null
null
null
Python
2026-05-04T02:40:05.263375
""" Module that calculates the number of hunks made to a commit file. """ from statistics import median from pydriller import ModificationType from pydriller.metrics.process.process_metric import ProcessMetric class HunksCount(ProcessMetric): """ This class is responsible to implement the Number of Hunks met...
ishepard/pydriller
https://github.com/ishepard/pydriller
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
pydriller/utils/check_git_version.py
null
null
null
null
null
null
Python
2026-05-04T02:40:05.263942
# import subprocess # import re # # # class GitVersion(Exception): # def __init__(self, message): # super().__init__(message) # # # class CheckGitVersion: # def check_git_version(self): # git_version = ( # subprocess.check_output(["git", "--version"]).decode("ascii").strip() # ...
ishepard/pydriller
https://github.com/ishepard/pydriller
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
pydriller/utils/mailmap.py
null
null
null
null
null
null
Python
2026-05-04T02:40:06.015535
import subprocess from abc import ABC, abstractmethod from pydriller.domain.developer import Developer from typing import Optional, Tuple class DeveloperFactory(ABC): @abstractmethod def get_developer(self, name: Optional[str] = None, email: Optional[str] = None) -> Developer: pass class DefaultDev...
ishepard/pydriller
https://github.com/ishepard/pydriller
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
pydriller/utils/conf.py
null
null
null
null
null
null
Python
2026-05-04T02:40:06.019555
""" Configuration module. """ import logging from datetime import datetime from typing import Any, Dict, List, Optional, Tuple, Union import pytz from gitdb.exc import BadName from pydriller.domain.commit import Commit from pydriller.utils.mailmap import DefaultDeveloperFactory, MailmapDeveloperFactory logger = log...
ishepard/pydriller
https://github.com/ishepard/pydriller
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
tests/integration/test_commit_filters.py
null
null
null
null
null
null
Python
2026-05-04T02:40:06.020666
# Copyright 2018 Davide Spadini # # 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 to in writing...
ishepard/pydriller
https://github.com/ishepard/pydriller
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
tests/integration/test_mailmap.py
null
null
null
null
null
null
Python
2026-05-04T02:40:06.223245
from pydriller import Repository from pydriller.domain.developer import Developer PATH_TO_REPO = "test-repos/contentmine_mailmap" def test_without_mailmap(): sam = Developer("Sam Pablo Kuper", "sampablokuper@riseup.net") thomas = Developer("My Name", "tarrow@users.noreply.github.com") commits = list(Re...
ishepard/pydriller
https://github.com/ishepard/pydriller
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
tests/integration/test_dates_and_timezones.py
null
null
null
null
null
null
Python
2026-05-04T02:40:06.574223
# Copyright 2018 Davide Spadini # # 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 to in writing...
ishepard/pydriller
https://github.com/ishepard/pydriller
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
tests/integration/test_between_dates.py
null
null
null
null
null
null
Python
2026-05-04T02:40:06.578456
# Copyright 2018 Davide Spadini # # 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 to in writing...
ishepard/pydriller
https://github.com/ishepard/pydriller
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
tests/integration/test_ranges.py
null
null
null
null
null
null
Python
2026-05-04T02:40:06.745127
# Copyright 2018 Davide Spadini # # 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 to in writing...
ishepard/pydriller
https://github.com/ishepard/pydriller
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
tests/metrics/process/test_code_churn.py
null
null
null
null
null
null
Python
2026-05-04T02:40:06.824924
from pathlib import Path from datetime import datetime import pytest from pydriller.metrics.process.code_churn import CodeChurn TEST_COMMIT_DATA = [ ('test-repos/pydriller', 'domain/commit.py', 'ab36bf45859a210b0eae14e17683f31d19eea041', '71e053f61fc5d31b3e31eccd9c79df27c31279bf', 47, 34, 16) ] @pytest.mark.pa...
ishepard/pydriller
https://github.com/ishepard/pydriller
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
tests/integration/test_between_tags.py
null
null
null
null
null
null
Python
2026-05-04T02:40:07.490946
# Copyright 2018 Davide Spadini # # 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 to in writing...
ishepard/pydriller
https://github.com/ishepard/pydriller
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
tests/metrics/process/test_commits_count.py
null
null
null
null
null
null
Python
2026-05-04T02:40:07.492808
from pathlib import Path from datetime import datetime import pytest from pydriller.metrics.process.commits_count import CommitsCount TEST_COMMIT_DATA = [ ('test-repos/pydriller', 'domain/developer.py', 'fdf671856b260aca058e6595a96a7a0fba05454b', 'ab36bf45859a210b0eae14e17683f31d19eea041', 2), ('test-repos/p...
ishepard/pydriller
https://github.com/ishepard/pydriller
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
setup.py
null
null
null
null
null
null
Python
2026-05-04T02:40:07.494303
from os import path from setuptools import setup, find_packages with open('requirements.txt') as reqs_file: requirements = reqs_file.read().splitlines() with open('test-requirements.txt') as reqs_file: test_requirements = reqs_file.read().splitlines() # Get the long description from the relevant file long_de...
ishepard/pydriller
https://github.com/ishepard/pydriller
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
tests/metrics/process/test_contributors_experience_count.py
null
null
null
null
null
null
Python
2026-05-04T02:40:07.795131
from pathlib import Path from datetime import datetime import pytest from pydriller.metrics.process.contributors_experience import \ ContributorsExperience TEST_COMMIT_DATA = [ ('test-repos/pydriller', 'domain/modification.py', 'fdf671856b260aca058e6595a96a7a0fba05454b', 'ab36bf45859a210b0eae14e17...
ishepard/pydriller
https://github.com/ishepard/pydriller
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
tests/metrics/process/test_process_metric.py
null
null
null
null
null
null
Python
2026-05-04T02:40:08.146582
import pytest from datetime import datetime from pydriller.metrics.process.process_metric import ProcessMetric dt1 = datetime(2016, 10, 8, 17, 0, 0) dt2 = datetime(2016, 10, 8, 17, 59, 0) TEST_DATA = [ ('test-repos/pydriller', None, dt2, None, '81ddf7e78d92f3aaa212d5924d1ae0ed1fd980e6'), # Test (if not since an...
ishepard/pydriller
https://github.com/ishepard/pydriller
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
tests/metrics/process/test_lines_removed.py
null
null
null
null
null
null
Python
2026-05-04T02:40:08.147115
from pathlib import Path from datetime import datetime import pytest from pydriller.metrics.process.lines_count import LinesCount TEST_COMMIT_DATA = [ ('test-repos/pydriller', '.gitignore', 'ab36bf45859a210b0eae14e17683f31d19eea041', 'ab36bf45859a210b0eae14e17683f31d19eea041', 0, 0, 0), ('test-repos/pydriller'...
ishepard/pydriller
https://github.com/ishepard/pydriller
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
tests/metrics/process/test_minor_contributors_count.py
null
null
null
null
null
null
Python
2026-05-04T02:40:08.180010
from pathlib import Path from datetime import datetime import pytest from pydriller.metrics.process.contributors_count import ContributorsCount TEST_COMMIT_DATA = [ ('test-repos/pydriller', 'pydriller/git_repository.py', 'e9854bbea1cb7b7f06cbb559f7b06724d11ae1e5', 'e9854bbea1cb7b7f06cbb559f7b06724d11ae1e5', 0), ...
ishepard/pydriller
https://github.com/ishepard/pydriller
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
tests/metrics/process/test_contributors_count.py
null
null
null
null
null
null
Python
2026-05-04T02:40:08.245415
from pathlib import Path from datetime import datetime import pytest from pydriller.metrics.process.contributors_count import ContributorsCount TEST_COMMIT_DATA = [ ('test-repos/pydriller', 'pydriller/git_repository.py', '8b69cae085581256adfdbd58c0e499395819b84d', '115953109b57d841ccd0952d70f8ed6703d175cd', 2), ...
ishepard/pydriller
https://github.com/ishepard/pydriller
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
tests/test_check_git_version.py
null
null
null
null
null
null
Python
2026-05-04T02:40:08.374168
# from unittest.mock import patch # from pydriller.utils.check_git_version import CheckGitVersion, GitVersion # from contextlib import nullcontext as does_not_raise # # import pytest # # # @pytest.mark.parametrize( # "version_number,expectation", # [ # ("3.2.0", does_not_raise()), # ("2.38.1", d...
ishepard/pydriller
https://github.com/ishepard/pydriller
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
tests/metrics/process/test_change_set.py
null
null
null
null
null
null
Python
2026-05-04T02:40:08.504915
import pytest from datetime import datetime from pydriller.metrics.process.change_set import ChangeSet TEST_COMMIT_DATA = [ ('test-repos/pydriller', 'ab36bf45859a210b0eae14e17683f31d19eea041', '71e053f61fc5d31b3e31eccd9c79df27c31279bf', 13, 8) ] @pytest.mark.parametrize('path_to_repo, from_commit, to_commit, exp...
ishepard/pydriller
https://github.com/ishepard/pydriller
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
tests/test_developer.py
null
null
null
null
null
null
Python
2026-05-04T02:40:08.770018
from pydriller.domain.developer import Developer def test_eq_dev(): d1 = Developer("Davide", "s.d@gmail.com") d2 = Developer("Davide", "s.d@gmail.com") d3 = Developer("Davide", "s.d@gmail.eu") d4 = None assert d1 == d1 assert d1 == d2 assert d1 != d3 assert d1 != d4 def test_represe...
ishepard/pydriller
https://github.com/ishepard/pydriller
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
tests/test_commit.py
null
null
null
null
null
null
Python
2026-05-04T02:40:08.770625
# Copyright 2018 Davide Spadini # # 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 to in writing...
ishepard/pydriller
https://github.com/ishepard/pydriller
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
tests/test_diff.py
null
null
null
null
null
null
Python
2026-05-04T02:40:08.815419
# Copyright 2018 Davide Spadini # # 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 to in writing...
ishepard/pydriller
https://github.com/ishepard/pydriller
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
tests/test_dmm.py
null
null
null
null
null
null
Python
2026-05-04T02:40:08.875697
# Copyright 2018 Davide Spadini and Arie van Deursen # # 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...
ishepard/pydriller
https://github.com/ishepard/pydriller
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
tests/metrics/process/test_hunks_count.py
null
null
null
null
null
null
Python
2026-05-04T02:40:12.362862
from pathlib import Path from datetime import datetime import pytest from pydriller.metrics.process.hunks_count import HunksCount TEST_COMMIT_DATA = [ ('test-repos/pydriller', # path_to_repo 'scm/git_repository.py', # filepath '71e053f61fc5d31b3e31eccd9c79df27c3...
ishepard/pydriller
https://github.com/ishepard/pydriller
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
tests/metrics/process/test_history_complexity_count.py
null
null
null
null
null
null
Python
2026-05-04T02:40:12.363530
from pathlib import Path from datetime import datetime import pytest from pydriller.metrics.process.history_complexity import HistoryComplexity TEST_COMMIT_DATA = [ ('test-repos/pydriller', # path_to_repo 'scm/git_repository.py', # filepath '90ca34ebfe69629cb7f18...
ishepard/pydriller
https://github.com/ishepard/pydriller
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
tests/metrics/process/test_lines_added.py
null
null
null
null
null
null
Python
2026-05-04T02:40:12.437543
from pathlib import Path from datetime import datetime import pytest from pydriller.metrics.process.lines_count import LinesCount TEST_COMMIT_DATA = [ ('test-repos/pydriller', '.gitignore', 'ab36bf45859a210b0eae14e17683f31d19eea041', 'ab36bf45859a210b0eae14e17683f31d19eea041', 197, 197, 197 # exp...
ishepard/pydriller
https://github.com/ishepard/pydriller
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
tests/metrics/process/test_lines_count.py
null
null
null
null
null
null
Python
2026-05-04T02:40:12.438125
from pathlib import Path from datetime import datetime import pytest from pydriller.metrics.process.lines_count import LinesCount TEST_COMMIT_DATA = [ ('test-repos/pydriller', '.gitignore', 'ab36bf45859a210b0eae14e17683f31d19eea041', 'ab36bf45859a210b0eae14e17683f31d19eea041', 197), ('test-repos/pydriller', 'd...
iniwap/AIWriteX
https://github.com/iniwap/AIWriteX
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
src/ai_write_x/core/base_framework.py
null
null
null
null
null
null
Python
2026-05-04T02:40:15.011332
from abc import ABC, abstractmethod from typing import Dict, List, Any, Optional from crewai import Agent, Task from dataclasses import dataclass, field from enum import Enum import threading from datetime import datetime from src.ai_write_x.core.tool_registry import GlobalToolRegistry class WorkflowType(Enum): S...
iniwap/AIWriteX
https://github.com/iniwap/AIWriteX
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
src/ai_write_x/core/content_generation.py
null
null
null
null
null
null
Python
2026-05-04T02:40:15.017213
import time from typing import Dict, Any from crewai import Crew, Process, Task, Agent from src.ai_write_x.core.base_framework import ( BaseWorkflowFramework, WorkflowConfig, ContentResult, WorkflowType, ) from src.ai_write_x.core.agent_factory import AgentFactory from src.ai_write_x.core.monitoring imp...
iniwap/AIWriteX
https://github.com/iniwap/AIWriteX
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
src/ai_write_x/adapters/platform_adapters.py
null
null
null
null
null
null
Python
2026-05-04T02:40:15.022817
from enum import Enum from abc import ABC, abstractmethod from dataclasses import dataclass from typing import Optional from src.ai_write_x.config.config import Config from src.ai_write_x.tools.wx_publisher import pub2wx from src.ai_write_x.core.base_framework import ContentResult from src.ai_write_x.utils import util...
iniwap/AIWriteX
https://github.com/iniwap/AIWriteX
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
src/ai_write_x/core/agent_factory.py
null
null
null
null
null
null
Python
2026-05-04T02:40:15.052419
from typing import Dict, Type, Optional, Any from crewai import Agent, LLM from src.ai_write_x.core.base_framework import AgentConfig from src.ai_write_x.config.config import Config from src.ai_write_x.core.tool_registry import GlobalToolRegistry from src.ai_write_x.utils import log class AgentFactory: """智能体工厂类...
iniwap/AIWriteX
https://github.com/iniwap/AIWriteX
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
main.py
null
null
null
null
null
null
Python
2026-05-04T02:40:15.053071
# -*- coding: UTF-8 -*- import multiprocessing import sys import os os.environ["PYTHONIOENCODING"] = "utf-8" from aiforge import AIForgeEngine # noqa def run(): """启动GUI应用程序""" try: from src.ai_write_x.license import check_license_and_start check_license_and_start() except KeyboardInt...
iniwap/AIWriteX
https://github.com/iniwap/AIWriteX
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
src/ai_write_x/config/config.py
null
null
null
null
null
null
Python
2026-05-04T02:40:15.054863
from typing import Any, Dict import os import yaml import threading import tomlkit from src.ai_write_x.utils import log from src.ai_write_x.utils import utils from src.ai_write_x.utils.path_manager import PathManager # 默认分类配置 DEFAULT_TEMPLATE_CATEGORIES = { "TechDigital": "科技数码", "FinanceInvestment": "财经投资", ...
iniwap/AIWriteX
https://github.com/iniwap/AIWriteX
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
src/ai_write_x/core/monitoring.py
null
null
null
null
null
null
Python
2026-05-04T02:40:15.592499
import json from typing import Dict, List, Any, Optional from dataclasses import dataclass, asdict from datetime import datetime import threading @dataclass class ExecutionLog: workflow_name: str timestamp: datetime duration: float success: bool input_data: Dict[str, Any] error_message: Option...
iniwap/AIWriteX
https://github.com/iniwap/AIWriteX
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
src/ai_write_x/crew_main.py
null
null
null
null
null
null
Python
2026-05-04T02:40:15.602602
#!/usr/bin/env python import os import warnings import multiprocessing import signal import time import json from src.ai_write_x.utils.path_manager import PathManager from src.ai_write_x.tools import hotnews from src.ai_write_x.utils import utils from src.ai_write_x.utils import log from src.ai_write_x.config.config i...
iniwap/AIWriteX
https://github.com/iniwap/AIWriteX
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
src/ai_write_x/core/system_init.py
null
null
null
null
null
null
Python
2026-05-04T02:40:15.623660
from src.ai_write_x.core.tool_registry import GlobalToolRegistry from src.ai_write_x.tools.custom_tool import AIForgeSearchTool from src.ai_write_x.tools.custom_tool import ReadTemplateTool from src.ai_write_x.core.unified_workflow import UnifiedContentWorkflow from src.ai_write_x.adapters.platform_adapters import ( ...
iniwap/AIWriteX
https://github.com/iniwap/AIWriteX
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
src/ai_write_x/creative/dimensional_engine.py
null
null
null
null
null
null
Python
2026-05-04T02:40:15.625097
# -*- coding: utf-8 -*- """ 维度化创意引擎 实现基于多维度组合的创意生成机制 """ import random from typing import Dict, List, Any, Tuple from src.ai_write_x.core.content_generation import ContentGenerationEngine from src.ai_write_x.core.base_framework import ( WorkflowConfig, AgentConfig, TaskConfig, WorkflowType, Content...
iniwap/AIWriteX
https://github.com/iniwap/AIWriteX
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
src/ai_write_x/license/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:40:15.649149
""" 授权模块接口层 此模块在开源版本中为空实现,在商业版本中包含实际授权逻辑 """ def check_license_and_start(): """ 检查授权并启动应用 开源版本:直接启动应用 商业版本:验证授权后启动 Returns: bool: 是否允许启动 """ # 开源版本的默认实现 from src.ai_write_x.web.webview_gui import gui_start gui_start() return True def is_license_enabled(): """ ...
iniwap/AIWriteX
https://github.com/iniwap/AIWriteX
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
src/ai_write_x/tools/custom_tool.py
null
null
null
null
null
null
Python
2026-05-04T02:40:15.650633
import os import glob import random import sys from typing import List, Type from crewai.tools import BaseTool from pydantic import BaseModel, Field from src.ai_write_x.utils import utils from src.ai_write_x.config.config import Config from src.ai_write_x.utils import log from src.ai_write_x.tools import search_templ...
iniwap/AIWriteX
https://github.com/iniwap/AIWriteX
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
src/ai_write_x/core/unified_workflow.py
null
null
null
null
null
null
Python
2026-05-04T02:40:15.653217
import os import time from typing import Dict, Any from src.ai_write_x.core.base_framework import ( WorkflowConfig, AgentConfig, TaskConfig, WorkflowType, ContentType, ContentResult, ) from src.ai_write_x.adapters.platform_adapters import ( WeChatAdapter, XiaohongshuAdapter, DouyinA...
iniwap/AIWriteX
https://github.com/iniwap/AIWriteX
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
src/ai_write_x/core/tool_registry.py
null
null
null
null
null
null
Python
2026-05-04T02:40:15.685564
import threading from typing import Dict, Any class GlobalToolRegistry: _instance = None _lock = threading.Lock() def __init__(self): self._tools = {} self._tool_lock = threading.Lock() @classmethod def get_instance(cls): if cls._instance is None: with cls._lo...
iniwap/AIWriteX
https://github.com/iniwap/AIWriteX
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
src/ai_write_x/tools/hotnews.py
null
null
null
null
null
null
Python
2026-05-04T02:40:15.730220
# -*- coding: utf-8 -*- # Author: iniwap # Date: 2025-06-03 # Description: 用于热搜话题获取,关注项目 https://github.com/iniwap/ai_write_x # 版权所有 (c) 2025 iniwap # 本文件受 AIWriteX 附加授权条款约束,不可单独使用、传播或部署。 # 禁止在未经作者书面授权的情况下将本文件用于商业服务、分发或嵌入产品。 # 如需授权,请联系 iniwaper@gmail.com 或 522765228@qq.com # 本项目整体授权协议请见根目录下 LICENSE 和 NOTICE 文件。 impo...
iniwap/AIWriteX
https://github.com/iniwap/AIWriteX
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
src/ai_write_x/utils/comm.py
null
null
null
null
null
null
Python
2026-05-04T02:40:16.200546
import queue import time _command_queue = queue.Queue() _update_queue = queue.Queue() def get_update_queue(): return _update_queue def send_command(command): _command_queue.put(command) def get_command_queue(): return _command_queue _web_log_queue = None def set_log_queue(queue): """设置 Web 日...
iniwap/AIWriteX
https://github.com/iniwap/AIWriteX
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
src/ai_write_x/utils/content_parser.py
null
null
null
null
null
null
Python
2026-05-04T02:40:16.223166
import re import time from typing import Dict, Any, List from dataclasses import dataclass from bs4 import BeautifulSoup @dataclass class ParsedContent: """解析后的内容结构""" title: str content: str summary: str confidence: float sections: List[Dict[str, str]] metadata: Dict[str, Any] class Co...
iniwap/AIWriteX
https://github.com/iniwap/AIWriteX
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
src/ai_write_x/tools/search_template.py
null
null
null
null
null
null
Python
2026-05-04T02:40:16.224719
# -*- coding: utf-8 -*- # Author: iniwap # Date: 2025-06-03 # Description: 用于本地搜索,关注项目 https://github.com/iniwap/ai_write_x # 版权所有 (c) 2025 iniwap # 本文件受 AIWriteX 附加授权条款约束,不可单独使用、传播或部署。 # 禁止在未经作者书面授权的情况下将本文件用于商业服务、分发或嵌入产品。 # 如需授权,请联系 iniwaper@gmail.com 或 522765228@qq.com # 本项目整体授权协议请见根目录下 LICENSE 和 NOTICE 文件。 import...
iniwap/AIWriteX
https://github.com/iniwap/AIWriteX
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
src/ai_write_x/tools/wx_publisher.py
null
null
null
null
null
null
Python
2026-05-04T02:40:16.226059
from dataclasses import dataclass from enum import Enum from typing import Optional from datetime import datetime, timedelta import requests from io import BytesIO from http import HTTPStatus from urllib.parse import urlparse, unquote from pathlib import PurePosixPath from dashscope import ImageSynthesis import os impo...
iniwap/AIWriteX
https://github.com/iniwap/AIWriteX
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
src/ai_write_x/utils/tray_manager.py
null
null
null
null
null
null
Python
2026-05-04T02:40:16.262871
#!/usr/bin/env python # -*- coding: UTF-8 -*- import os import pystray from PIL import Image, ImageDraw, ImageFont from pathlib import Path import threading from src.ai_write_x.utils import utils class TrayManager: """系统托盘管理器""" def __init__(self, app_name="AIWriteX"): self.app_name = app_name ...
iniwap/AIWriteX
https://github.com/iniwap/AIWriteX
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
src/ai_write_x/utils/icon_manager.py
null
null
null
null
null
null
Python
2026-05-04T02:40:16.276467
#!/usr/bin/env python # -*- coding: UTF-8 -*- import platform import threading from pathlib import Path from . import utils class WindowIconManager: """窗口图标管理器""" def __init__(self): self.icon_path = self._get_icon_path() def _get_icon_path(self): """获取适合当前平台的图标文件路径""" gui_dir =...
iniwap/AIWriteX
https://github.com/iniwap/AIWriteX
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
src/ai_write_x/utils/log.py
null
null
null
null
null
null
Python
2026-05-04T02:40:16.277783
import logging import sys import re import time import traceback import multiprocessing import threading from datetime import datetime from src.ai_write_x.utils import comm from src.ai_write_x.utils import utils class FileLoggingHandler: """统一的文件日志处理器""" def __init__(self, log_file_path): self.log_f...
iniwap/AIWriteX
https://github.com/iniwap/AIWriteX
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
src/ai_write_x/utils/utils.py
null
null
null
null
null
null
Python
2026-05-04T02:40:16.311340
import re import os import random import warnings from bs4 import BeautifulSoup import requests import time import sys import shutil import webbrowser import markdown from PIL import Image import tempfile import urllib.parse from pathlib import Path import json def copy_file(src_file, dest_file): mkdir(os.path.di...
iniwap/AIWriteX
https://github.com/iniwap/AIWriteX
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
src/ai_write_x/utils/path_manager.py
null
null
null
null
null
null
Python
2026-05-04T02:40:16.329250
import os import glob import platform from pathlib import Path from src.ai_write_x.utils import utils class PathManager: """跨平台路径管理器,确保所有写入操作使用正确的可写目录""" @staticmethod def get_app_data_dir(): """获取应用数据目录""" # 开发模式:使用项目根目录 if not utils.get_is_release_ver(): # 从当前文件位置回到项...
iniwap/AIWriteX
https://github.com/iniwap/AIWriteX
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
src/ai_write_x/web/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:40:16.764854
#!/usr/bin/env python # -*- coding: UTF-8 -*- """ AIWriteX 新架构 基于FastAPI + PyWebView """ from src.ai_write_x.version import get_version, get_author __version__ = get_version() __author__ = get_author()
iniwap/AIWriteX
https://github.com/iniwap/AIWriteX
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
src/ai_write_x/version.py
null
null
null
null
null
null
Python
2026-05-04T02:40:16.802622
# -*- coding: UTF-8 -*- __version__ = "2.3.1" __author__ = "https://aiwritex.voidai.cc" def get_version(): return __version__ def get_author(): return __author__ def get_version_with_prefix(): return f"v{__version__}"
iniwap/AIWriteX
https://github.com/iniwap/AIWriteX
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
src/ai_write_x/web/api/config.py
null
null
null
null
null
null
Python
2026-05-04T02:40:16.803568
#!/usr/bin/env python # -*- coding: UTF-8 -*- import json from typing import Dict, Any from fastapi import APIRouter, HTTPException from pydantic import BaseModel import requests from packaging import version from src.ai_write_x.version import get_version from src.ai_write_x.config.config import Config from src.ai_w...
iniwap/AIWriteX
https://github.com/iniwap/AIWriteX
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
src/ai_write_x/web/api/articles.py
null
null
null
null
null
null
Python
2026-05-04T02:40:16.828681
from datetime import datetime from pathlib import Path from fastapi import APIRouter, HTTPException from fastapi.responses import HTMLResponse, Response from fastapi import File, UploadFile import uuid from pydantic import BaseModel from typing import List, Optional import json from src.ai_write_x.config.config impor...
iniwap/AIWriteX
https://github.com/iniwap/AIWriteX
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
src/ai_write_x/web/api/templates.py
null
null
null
null
null
null
Python
2026-05-04T02:40:16.855702
import shutil from datetime import datetime from pathlib import Path from fastapi import APIRouter, HTTPException from fastapi.responses import HTMLResponse, Response from pydantic import BaseModel from src.ai_write_x.utils.path_manager import PathManager router = APIRouter(prefix="/api/templates", tags=["templates"...
iniwap/AIWriteX
https://github.com/iniwap/AIWriteX
null
null
null
null
953
null
null
apache-2.0
null
null
null
null
null
null
null
src/ai_write_x/web/api/generate.py
null
null
null
null
null
null
Python
2026-05-04T02:40:16.870632
#!/usr/bin/env python # -*- coding: UTF-8 -*- from fastapi import APIRouter, HTTPException, WebSocket, WebSocketDisconnect from fastapi.responses import FileResponse from pydantic import BaseModel from typing import Optional import asyncio import time import queue from ..state import get_app_state from src.ai_write_...