mlymath 0.1.2__tar.gz → 0.1.4b1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,70 @@
1
+ Metadata-Version: 2.2
2
+ Name: mlymath
3
+ Version: 0.1.4b1
4
+ Summary: 一个用于数学计算的Python库
5
+ Author: mly
6
+ Classifier: Programming Language :: Python :: 3
7
+ Classifier: License :: OSI Approved :: MIT License
8
+ Classifier: Operating System :: OS Independent
9
+ Requires-Python: >=3.6
10
+ Description-Content-Type: text/markdown
11
+ Dynamic: author
12
+ Dynamic: classifier
13
+ Dynamic: description
14
+ Dynamic: description-content-type
15
+ Dynamic: requires-python
16
+ Dynamic: summary
17
+
18
+ #### 由mly创建的与数学有关的工具库
19
+ ##### 附属模块:
20
+ - mlymath.math 数学模块
21
+ - gcd(*nums: int) -> int: 计算多个整数的最大公约数
22
+ - lcm(*nums: int) -> int: 计算多个整数的最小公倍数
23
+ - is_prime(n) -> bool: 判断一个整数是否为素数
24
+ - comb(n: int, k: int) -> int: 计算组合数 C(n, k)
25
+ - pow(x, y): 快速计算 x 的 y 次幂
26
+ - sha256(input_string: str) -> str: 使用 SHA-256 算法加密字符串
27
+ - sha3_256(input_string: str) -> str: 使用 SHA3-256 算法加密字符串
28
+ - sha3_512(input_string: str) -> str: 使用 SHA3-512 算法加密字符串
29
+ - fib_list(n) -> list: 生成包含前 N 项的斐波那契数列
30
+ - fib(n) -> int: 返回第 N 项的斐波那契数
31
+ - pell_list(n) -> list: 生成包含前 N 项的佩尔数列
32
+ - pell(n) -> int: 返回第 N 项的佩尔数
33
+ - factor(n: int) -> list: 分解整数 n 的质因数
34
+ - manhattan_d(point1, point2): 计算两个点之间的曼哈顿距离
35
+ - euclidean_d(point1, point2, precision=None): 计算两个点之间的欧几里得距离,可指定小数位数
36
+ - matrix_add(matrix1, matrix2): 计算两个矩阵的加法
37
+ - matrix_sub(matrix1, matrix2): 计算两个矩阵的减法
38
+ - matrix_mu(matrix1, matrix2): 计算两个矩阵的乘法
39
+ - matrix_transpose(matrix): 计算矩阵的转置
40
+ - matrix_scalar_mul(matrix, scalar): 计算矩阵与标量的乘法
41
+ - list_max(nums, n): 找到数组中第 N 大的数
42
+ - max(\*nums, n): 找到多个数中第 N 大的数, 输入n时请注意使用n = [num]
43
+ - list_max_index(nums, n): 找到数组中第 N 大的数的索引
44
+ - max_index(\*nums, n): 找到多个数中第 N 大的数的索引, 输入n时请注意使用n = [num]
45
+ - list_min(nums, n): 找到数组中第 N 小的数
46
+ - min(\*nums, n): 找到多个数中第 N 小的数, 输入n时请注意使用n = [num]
47
+ - list_min_index(nums, n): 找到数组中第 N 小的数的索引
48
+ - min_index(\*nums, n): 找到多个数中第 N 小的数的索引, 输入n时请注意使用n = [num]
49
+ - get_rsa_keys(p: int, q: int) -> Tuple[Tuple[int, int], Tuple[int, int]]: 生成 RSA 公钥和私钥
50
+ - rsa_encrypt(public_key: Tuple[int, int], plaintext: int) -> int: 使用 RSA 公钥加密数据
51
+ - rsa_decrypt(private_key: Tuple[int, int], ciphertext: int) -> int: 使用 RSA 私钥解密数据
52
+ - mlymath.sort 排序模块
53
+ - quick_sort: 使用快速排序算法对数组进行排序。可通过 reverse 参数控制排序顺序(默认正序)
54
+ - shell_sort: 使用希尔排序算法对数组进行排序。可通过 reverse 参数控制排序顺序(默认正序)
55
+ - heap_sort: 使用堆排序算法对数组进行排序。可通过 reverse 参数控制排序顺序(默认正序)
56
+ - bucket_sort: 使用桶排序算法对数组进行排序。可通过 reverse 参数控制排序顺序(默认正序)
57
+ - insertion_sort: 使用插入排序算法对数组进行排序。可通过 reverse 参数控制排序顺序(默认正序)
58
+ - bubble_sort: 使用冒泡排序算法对数组进行排序。可通过 reverse 参数控制排序顺序(默认正序)
59
+ - merge_sort: 使用归并排序算法对数组进行排序。可通过 reverse 参数控制排序顺序(默认正序)
60
+ - selection_sort: 使用选择排序算法对数组进行排序。可通过 reverse 参数控制排序顺序(默认正序)
61
+ - counting_sort: 使用计数排序算法对数组进行排序。可通过 reverse 参数控制排序顺序(默认正序)
62
+ - radix_sort: 使用基数排序算法对数组进行排序。可通过 reverse 参数控制排序顺序(默认正序)
63
+ - mlymath.morse 摩斯电码模块
64
+ - morse(input_string): 将字符串转换为摩尔斯电码
65
+ - unmorse(morse_code): 将摩尔斯电码转换为字符串
66
+ #### mly万岁!!!🎉
67
+ #### mly万岁!!!🎉
68
+ #### mly万岁!!!🎉
69
+
70
+
@@ -0,0 +1,70 @@
1
+ Metadata-Version: 2.2
2
+ Name: mlymath
3
+ Version: 0.1.4b1
4
+ Summary: 一个用于数学计算的Python库
5
+ Author: mly
6
+ Classifier: Programming Language :: Python :: 3
7
+ Classifier: License :: OSI Approved :: MIT License
8
+ Classifier: Operating System :: OS Independent
9
+ Requires-Python: >=3.6
10
+ Description-Content-Type: text/markdown
11
+ Dynamic: author
12
+ Dynamic: classifier
13
+ Dynamic: description
14
+ Dynamic: description-content-type
15
+ Dynamic: requires-python
16
+ Dynamic: summary
17
+
18
+ #### 由mly创建的与数学有关的工具库
19
+ ##### 附属模块:
20
+ - mlymath.math 数学模块
21
+ - gcd(*nums: int) -> int: 计算多个整数的最大公约数
22
+ - lcm(*nums: int) -> int: 计算多个整数的最小公倍数
23
+ - is_prime(n) -> bool: 判断一个整数是否为素数
24
+ - comb(n: int, k: int) -> int: 计算组合数 C(n, k)
25
+ - pow(x, y): 快速计算 x 的 y 次幂
26
+ - sha256(input_string: str) -> str: 使用 SHA-256 算法加密字符串
27
+ - sha3_256(input_string: str) -> str: 使用 SHA3-256 算法加密字符串
28
+ - sha3_512(input_string: str) -> str: 使用 SHA3-512 算法加密字符串
29
+ - fib_list(n) -> list: 生成包含前 N 项的斐波那契数列
30
+ - fib(n) -> int: 返回第 N 项的斐波那契数
31
+ - pell_list(n) -> list: 生成包含前 N 项的佩尔数列
32
+ - pell(n) -> int: 返回第 N 项的佩尔数
33
+ - factor(n: int) -> list: 分解整数 n 的质因数
34
+ - manhattan_d(point1, point2): 计算两个点之间的曼哈顿距离
35
+ - euclidean_d(point1, point2, precision=None): 计算两个点之间的欧几里得距离,可指定小数位数
36
+ - matrix_add(matrix1, matrix2): 计算两个矩阵的加法
37
+ - matrix_sub(matrix1, matrix2): 计算两个矩阵的减法
38
+ - matrix_mu(matrix1, matrix2): 计算两个矩阵的乘法
39
+ - matrix_transpose(matrix): 计算矩阵的转置
40
+ - matrix_scalar_mul(matrix, scalar): 计算矩阵与标量的乘法
41
+ - list_max(nums, n): 找到数组中第 N 大的数
42
+ - max(\*nums, n): 找到多个数中第 N 大的数, 输入n时请注意使用n = [num]
43
+ - list_max_index(nums, n): 找到数组中第 N 大的数的索引
44
+ - max_index(\*nums, n): 找到多个数中第 N 大的数的索引, 输入n时请注意使用n = [num]
45
+ - list_min(nums, n): 找到数组中第 N 小的数
46
+ - min(\*nums, n): 找到多个数中第 N 小的数, 输入n时请注意使用n = [num]
47
+ - list_min_index(nums, n): 找到数组中第 N 小的数的索引
48
+ - min_index(\*nums, n): 找到多个数中第 N 小的数的索引, 输入n时请注意使用n = [num]
49
+ - get_rsa_keys(p: int, q: int) -> Tuple[Tuple[int, int], Tuple[int, int]]: 生成 RSA 公钥和私钥
50
+ - rsa_encrypt(public_key: Tuple[int, int], plaintext: int) -> int: 使用 RSA 公钥加密数据
51
+ - rsa_decrypt(private_key: Tuple[int, int], ciphertext: int) -> int: 使用 RSA 私钥解密数据
52
+ - mlymath.sort 排序模块
53
+ - quick_sort: 使用快速排序算法对数组进行排序。可通过 reverse 参数控制排序顺序(默认正序)
54
+ - shell_sort: 使用希尔排序算法对数组进行排序。可通过 reverse 参数控制排序顺序(默认正序)
55
+ - heap_sort: 使用堆排序算法对数组进行排序。可通过 reverse 参数控制排序顺序(默认正序)
56
+ - bucket_sort: 使用桶排序算法对数组进行排序。可通过 reverse 参数控制排序顺序(默认正序)
57
+ - insertion_sort: 使用插入排序算法对数组进行排序。可通过 reverse 参数控制排序顺序(默认正序)
58
+ - bubble_sort: 使用冒泡排序算法对数组进行排序。可通过 reverse 参数控制排序顺序(默认正序)
59
+ - merge_sort: 使用归并排序算法对数组进行排序。可通过 reverse 参数控制排序顺序(默认正序)
60
+ - selection_sort: 使用选择排序算法对数组进行排序。可通过 reverse 参数控制排序顺序(默认正序)
61
+ - counting_sort: 使用计数排序算法对数组进行排序。可通过 reverse 参数控制排序顺序(默认正序)
62
+ - radix_sort: 使用基数排序算法对数组进行排序。可通过 reverse 参数控制排序顺序(默认正序)
63
+ - mlymath.morse 摩斯电码模块
64
+ - morse(input_string): 将字符串转换为摩尔斯电码
65
+ - unmorse(morse_code): 将摩尔斯电码转换为字符串
66
+ #### mly万岁!!!🎉
67
+ #### mly万岁!!!🎉
68
+ #### mly万岁!!!🎉
69
+
70
+
@@ -1,5 +1,4 @@
1
1
  README.md
2
- setup.cfg
3
2
  setup.py
4
3
  math/__init__.py
5
4
  math/math.py
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -1,10 +1,20 @@
1
1
  from setuptools import setup, find_packages
2
2
 
3
+ with open('README.md', 'r', encoding='utf-8') as fh:
4
+ long_description = fh.read()
5
+
3
6
  setup(
4
7
  name='mlymath',
5
- version='0.1.2',
8
+ version='0.1.4-beta.1',
6
9
  packages=find_packages(),
10
+ install_requires=[
11
+
12
+ ],
13
+
7
14
  author='mly',
15
+ description='一个用于数学计算的Python库',
16
+ long_description=long_description,
17
+ long_description_content_type='text/markdown',
8
18
  classifiers=[
9
19
  'Programming Language :: Python :: 3',
10
20
  'License :: OSI Approved :: MIT License',
mlymath-0.1.2/PKG-INFO DELETED
@@ -1,11 +0,0 @@
1
- Metadata-Version: 2.2
2
- Name: mlymath
3
- Version: 0.1.2
4
- Author: mly
5
- Classifier: Programming Language :: Python :: 3
6
- Classifier: License :: OSI Approved :: MIT License
7
- Classifier: Operating System :: OS Independent
8
- Requires-Python: >=3.6
9
- Dynamic: author
10
- Dynamic: classifier
11
- Dynamic: requires-python
@@ -1,11 +0,0 @@
1
- Metadata-Version: 2.2
2
- Name: mlymath
3
- Version: 0.1.2
4
- Author: mly
5
- Classifier: Programming Language :: Python :: 3
6
- Classifier: License :: OSI Approved :: MIT License
7
- Classifier: Operating System :: OS Independent
8
- Requires-Python: >=3.6
9
- Dynamic: author
10
- Dynamic: classifier
11
- Dynamic: requires-python
mlymath-0.1.2/setup.cfg DELETED
@@ -1,7 +0,0 @@
1
- [metadata]
2
- description_file = README.MD
3
-
4
- [egg_info]
5
- tag_build =
6
- tag_date = 0
7
-
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes