Commit 29ec014
IanDoarn
Updated sorting package and packages __init__.py. when users are using this from the command line, after importing
the module or its packages they can call help() on the methods or packages.
Update modular level __init__.py:
- Added proper docstrings to top of files
- optimized imports
- added __version__, __author__, __maintainers__, __contributors__
- Added __all__ variable to list all modules in package
Brought all files in sorting module to PEP8 compliance:
- Added proper docstrings to top of files
- Added proper docstrings to methods
- removed camel casing from variable and method names, they are not PEP8 compliant
Fixed sorting module __init__.py:
- Added proper docstrings to top of file
- Added __all__ variable to list all modules in package
- optimized imports
Example:
```
import pygorithm
help(pygorithm)
Help on package pygorithm:
NAME
pygorithm - Pygorithm
DESCRIPTION
A Python module to learn all the major algorithms on the go!
Purely for educational purposes
If you have found my software to be of any use to you,
do consider helping me pay my internet bills.
This would encourage me to create many such softwares :)
PayPal -> https://paypal.me/omkarpathak27
INR - > https://www.instamojo.com/@omkarpathak/
PACKAGE CONTENTS
data_structures (package)
fibonacci (package)
math (package)
searching (package)
sorting (package)
DATA
__all__ = ['data_structures', 'fibonacci', 'math', 'searching', 'sorti...
__contributors__ = ['Mohamed Kiouaz', 'Ashutosh Gupta']
__maintainers__ = ['Omkar Pathak']
VERSION
1.0.0
AUTHOR
Omkar Pathak
FILE
c:\users\doarni\dev\pygorithm\pygorithm\__init__.py
```1 parent 243b632 commit 29ec014
File tree
12 files changed
+473
-190
lines changed- pygorithm
- sorting
12 files changed
+473
-190
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
18 | 33 | | |
19 | | - | |
20 | | - | |
| 34 | + | |
| 35 | + | |
21 | 36 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
26 | 42 | | |
27 | | - | |
| 43 | + | |
28 | 44 | | |
29 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
30 | 55 | | |
31 | | - | |
32 | 56 | | |
33 | | - | |
34 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
35 | 60 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
3 | 4 | | |
4 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
5 | 12 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
11 | 22 | | |
12 | 23 | | |
13 | | - | |
14 | | - | |
15 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
16 | 29 | | |
17 | | - | |
| 30 | + | |
18 | 31 | | |
19 | | - | |
20 | | - | |
| 32 | + | |
| 33 | + | |
21 | 34 | | |
22 | 35 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
28 | 41 | | |
29 | 42 | | |
30 | | - | |
| 43 | + | |
31 | 44 | | |
32 | | - | |
| 45 | + | |
33 | 46 | | |
34 | 47 | | |
35 | 48 | | |
36 | | - | |
37 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
38 | 52 | | |
39 | 53 | | |
40 | | - | |
| 54 | + | |
41 | 55 | | |
42 | 56 | | |
43 | 57 | | |
44 | | - | |
| 58 | + | |
45 | 59 | | |
46 | 60 | | |
47 | | - | |
| 61 | + | |
48 | 62 | | |
49 | | - | |
| 63 | + | |
50 | 64 | | |
51 | | - | |
| 65 | + | |
| 66 | + | |
52 | 67 | | |
53 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
54 | 75 | | |
55 | | - | |
56 | 76 | | |
57 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
58 | 83 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
3 | 8 | | |
4 | | - | |
5 | 9 | | |
6 | 10 | | |
7 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
8 | 18 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
13 | 23 | | |
14 | | - | |
| 24 | + | |
15 | 25 | | |
16 | | - | |
| 26 | + | |
17 | 27 | | |
18 | | - | |
19 | 28 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | 29 | | |
25 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
26 | 36 | | |
27 | | - | |
28 | | - | |
| 37 | + | |
| 38 | + | |
29 | 39 | | |
30 | | - | |
| 40 | + | |
| 41 | + | |
31 | 42 | | |
32 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
33 | 50 | | |
34 | | - | |
35 | 51 | | |
36 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
37 | 58 | | |
0 commit comments