Skip to content

Commit

Permalink
GitiPack
Browse files Browse the repository at this point in the history
v1.6.3
  • Loading branch information
ljy-002 authored Feb 3, 2021
1 parent 10e26ab commit 815c7b2
Show file tree
Hide file tree
Showing 17 changed files with 271 additions and 0 deletions.
63 changes: 63 additions & 0 deletions GitiPack.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
Metadata-Version: 2.1
Name: GitiPack
Version: 1.6.3
Summary: GITI网站的辅助功能,用于推动GITI的发展
Home-page: https://github.com/ljy-002/GitiPack
Author: 李今越
Author-email: ljy123ljy123@dingtalk.com
License: UNKNOWN
Description: # GitiPack

## 如何使用:
命令`GitiPack.ctig()`,需要在运行此包的时候提前运行。

命令`GitiPack.webg()`,需要在使用时运行。

函数`GitiPack.ctime()`返回时间戳

函数`GitiPack.mtime()`返回可读的字符串

函数`GitiPack.stime()`获取格式化时间字符串

函数`GitiPack.jc(值)`计算“值”的阶乘值,并写入“.tig”文件

函数`GitiPack.pertion(列表,开始索引,结束索引)`对“列表”进行全排序,并写入“.tig”文件

函数`GitiPack.w(内容)`将“内容”写入“.tig”文件

## 版本
### v1.3.2
创建函数`tig`和`webg`

### v1.4.5
修复了函数`tig`和`webg`不能调用的问题

### v1.5.8
修复了“Tig.ini”的版本错误问题

修复了更新v1.4.5后导入包时发生的错误

增添“__pycache__”配置文件,让程序运行的更快

更新`ctime()`、`mtime()`、`stime()`、`w()`函数

加入`jc()`、`pertion()`算法

### v1.6.0
修复了更改v1.5.8的主要文件后无法调用包的错误

添加了更多Tig的配置信息

### v1.6.3
修复了`GitiPack.ctig()`命令介绍的错误

添加最低版限制`v1.6.0`


Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3.7
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Provides-Extra: GitiPack
9 changes: 9 additions & 0 deletions GitiPack.egg-info/SOURCES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
README.md
setup.py
GitiPack/__init__.py
GitiPack/tig.py
GitiPack.egg-info/PKG-INFO
GitiPack.egg-info/SOURCES.txt
GitiPack.egg-info/dependency_links.txt
GitiPack.egg-info/requires.txt
GitiPack.egg-info/top_level.txt
1 change: 1 addition & 0 deletions GitiPack.egg-info/dependency_links.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

3 changes: 3 additions & 0 deletions GitiPack.egg-info/requires.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

[GitiPack]
python
1 change: 1 addition & 0 deletions GitiPack.egg-info/top_level.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GitiPack
10 changes: 10 additions & 0 deletions GitiPack/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from .tig import *
# 调用文件

# import tig

# tig.ctig()
# tig.webg()

# a = tig.ctime()
# print(a)
Binary file added GitiPack/__pycache__/__init__.cpython-39.pyc
Binary file not shown.
Binary file added GitiPack/__pycache__/tig.cpython-36.pyc
Binary file not shown.
Binary file added GitiPack/__pycache__/tig.cpython-39.pyc
Binary file not shown.
48 changes: 48 additions & 0 deletions GitiPack/tig.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
import time


def ctig():
global f
f = open("GITI-Web-Go!.tig", 'a', encoding="UTF-8")
f.write("————————————\n")
ti = time.strftime("%Y-%m-%d %H:%M:%S\n", time.gmtime())
f.write(ti)

def webg():
f.write("Deal with: giti-web.github.io\n")

def ctime():
return time.time()

def mtime():
return time.ctime()

def stime():
return time.strftime("%Y-%m-%d %H:%M:%S",time.gmtime())

# ——————————

def w(r):
f.write(r)
f.write('\n')

# ——————————

def jc(n):
if n == 1:
return 1
else:
return jc(n-1)*n

def pertion(l, s, e):
w("进行全排列")
if s == e:
w(l)
else:
for i in range(s,e+1):
l[s],l[i]=l[i],l[s]
# 将这个元素和第一个元素交换
pertion(l,s+1,e)
l[s],l[i]=l[i],l[s]
# 换回位置

47 changes: 47 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# GitiPack

## 如何使用:
命令`GitiPack.ctig()`,需要在运行此包的时候提前运行。

命令`GitiPack.webg()`,需要在使用时运行。

函数`GitiPack.ctime()`返回时间戳

函数`GitiPack.mtime()`返回可读的字符串

函数`GitiPack.stime()`获取格式化时间字符串

函数`GitiPack.jc(值)`计算“值”的阶乘值,并写入“.tig”文件

函数`GitiPack.pertion(列表,开始索引,结束索引)`对“列表”进行全排序,并写入“.tig”文件

函数`GitiPack.w(内容)`将“内容”写入“.tig”文件

## 版本
### v1.3.2
创建函数`tig``webg`

### v1.4.5
修复了函数`tig``webg`不能调用的问题

### v1.5.8
修复了“Tig.ini”的版本错误问题

修复了更新v1.4.5后导入包时发生的错误

增添“__pycache__”配置文件,让程序运行的更快

更新`ctime()``mtime()``stime()``w()`函数

加入`jc()``pertion()`算法

### v1.6.0
修复了更改v1.5.8的主要文件后无法调用包的错误

添加了更多Tig的配置信息

### v1.6.3
修复了`GitiPack.ctig()`命令介绍的错误

添加最低版限制`v1.6.0`

8 changes: 8 additions & 0 deletions Tig.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[Tig]
deal_with_gitis = True
tig_file = True
user_management = undefined
tig = 0.7
version = "1.6.3"
multi_progress = True
Use_SystemKeyItems = False
10 changes: 10 additions & 0 deletions build/lib/GitiPack/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from .tig import *
# 调用文件

# import tig

# tig.ctig()
# tig.webg()

# a = tig.ctime()
# print(a)
48 changes: 48 additions & 0 deletions build/lib/GitiPack/tig.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
import time


def ctig():
global f
f = open("GITI-Web-Go!.tig", 'a', encoding="UTF-8")
f.write("————————————\n")
ti = time.strftime("%Y-%m-%d %H:%M:%S\n", time.gmtime())
f.write(ti)

def webg():
f.write("Deal with: giti-web.github.io\n")

def ctime():
return time.time()

def mtime():
return time.ctime()

def stime():
return time.strftime("%Y-%m-%d %H:%M:%S",time.gmtime())

# ——————————

def w(r):
f.write(r)
f.write('\n')

# ——————————

def jc(n):
if n == 1:
return 1
else:
return jc(n-1)*n

def pertion(l, s, e):
w("进行全排列")
if s == e:
w(l)
else:
for i in range(s,e+1):
l[s],l[i]=l[i],l[s]
# 将这个元素和第一个元素交换
pertion(l,s+1,e)
l[s],l[i]=l[i],l[s]
# 换回位置

Binary file added dist/GitiPack-1.6.3-py3-none-any.whl
Binary file not shown.
Binary file added dist/GitiPack-1.6.3.tar.gz
Binary file not shown.
23 changes: 23 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import setuptools

with open("README.md", "r", encoding="UTF-8") as fh:
long_description = fh.read()

setuptools.setup(
name="GitiPack",
version="1.6.3",
author="李今越",
author_email="ljy123ljy123@dingtalk.com",
description="GITI网站的辅助功能,用于推动GITI的发展",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/ljy-002/GitiPack",
packages=setuptools.find_packages(),
classifiers=[
"Programming Language :: Python :: 3.7",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires='>=3.7',
extras_require={"GitiPack": ["python"]},
)

0 comments on commit 815c7b2

Please sign in to comment.