New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

MapleStoryPython

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

MapleStoryPython - pypi Package Compare versions

Comparing version
0.0.4
to
2.0.0
+69
MapleStoryPython/IOTool.py
# -*- coding: utf-8 -*-
import os;
import json;
import shutil;
# 添加文本
def appendText(file,content):
with open(file,"a",encoding="utf-8") as f:
f.write(content);
# 写入文本
def writeText(file,content,mode="w"):
with open(file,mode,encoding="utf-8") as f:
f.write(content);
# 读取文本
def readText(file,mode="r"):
with open(file,mode,encoding='utf-8') as f :
return f.read();
# 写入json
def writeJson(filePath,dictObj):
writeText(filePath,json.dumps(dictObj,indent=2));
# 读取json
def readJson(filePath):
strContent = readText(filePath);
return json.loads(strContent);
# 文件后缀
def fileSuffix(fileDir):
return os.path.splitext(fileDir)[-1];
# 创建目录
def createDirectoryIfAbsence(filepath):
if not os.path.exists(filepath):
os.mkdir(filepath);
# 创建文件
def createFileIfAbsence(filePath,content=""):
if(os.path.exists(filePath)==False):
f= open(filePath,"w+");
f.write(content);
f.close();
# 打开网站
def openWeb(url):
os.system('"C:/Program Files (x86)/Microsoft/Edge/Application/msedge.exe" %s'%url);
# 测试用
def main():
print("i am main func 2023.10.21");
# 递归执行委托,exts是白名单,dirs是黑名单
def traverseDir(filepath, action, exts=['.txt', '.tex'],dirs=['biantaiwenjianjia']):
files = os.listdir(filepath)
for fi in files:
fi_d = os.path.join(filepath, fi)
if os.path.isdir(fi_d):
dirName =fi;
if dirName not in dirs:
traverseDir(fi_d, action, exts,dirs)
else:
fileNameFull = os.path.abspath(fi_d)
ext = os.path.splitext(fileNameFull)[1]
if ext in exts:
action(fileNameFull)
if __name__ == '__main__':
main();
+3
-1
Metadata-Version: 2.1
Name: MapleStoryPython
Version: 0.0.4
Version: 2.0.0
Summary: No description.

@@ -17,1 +17,3 @@ Home-page: https://github.com/a405457747/MapleStoryPython

- https://github.com/a405457747/MapleStoryPython
- 我宣布这个项目荣升为MapleStory2_py
- todo 为了保持MapleStory2地位,可能需要整理贴吧号上面的github project,如果有就整理
LICENSE
README.md
setup.py
MapleStoryPython/IOTool.py
MapleStoryPython/__init__.py

@@ -5,0 +6,0 @@ MapleStoryPython/toolRoot.py

from .toolRoot import *;
from .IOTool import *;

@@ -51,3 +51,3 @@ # -*- coding: utf-8 -*-

def main():
print("i am main func");
print("i am main func 2023.10.21");

@@ -54,0 +54,0 @@ # 递归执行委托,exts是白名单,dirs是黑名单

Metadata-Version: 2.1
Name: MapleStoryPython
Version: 0.0.4
Version: 2.0.0
Summary: No description.

@@ -17,1 +17,3 @@ Home-page: https://github.com/a405457747/MapleStoryPython

- https://github.com/a405457747/MapleStoryPython
- 我宣布这个项目荣升为MapleStory2_py
- todo 为了保持MapleStory2地位,可能需要整理贴吧号上面的github project,如果有就整理
# MapleStoryPython
- https://github.com/a405457747/MapleStoryPython
- https://github.com/a405457747/MapleStoryPython
- 我宣布这个项目荣升为MapleStory2_py
- todo 为了保持MapleStory2地位,可能需要整理贴吧号上面的github project,如果有就整理

@@ -8,3 +8,3 @@ import setuptools

name="MapleStoryPython",
version="0.0.4",
version="2.0.0",
author="skyAllen",

@@ -11,0 +11,0 @@ author_email="894982165@qq.com",