py2ls 0.1.9.3__py3-none-any.whl → 0.1.9.5__py3-none-any.whl
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.
- py2ls/.DS_Store +0 -0
- py2ls/.git/COMMIT_EDITMSG +1 -1
- py2ls/.git/FETCH_HEAD +1 -1
- py2ls/.git/index +0 -0
- py2ls/.git/logs/HEAD +1 -0
- py2ls/.git/logs/refs/heads/main +1 -0
- py2ls/.git/logs/refs/remotes/origin/HEAD +2 -0
- py2ls/.git/logs/refs/remotes/origin/main +1 -0
- py2ls/.git/objects/12/c2808a1b3a4d0892a4154dfba1e2ae3770fa73 +0 -0
- py2ls/.git/objects/1c/9314c5f69b9390068a2a8616875d974849d71f +0 -0
- py2ls/.git/objects/2a/ae95d517d213b660bf4f65a4e0cfae7bb893eb +0 -0
- py2ls/.git/objects/34/9e31b6a3634cea102ce5588b98c11cc1738605 +0 -0
- py2ls/.git/objects/45/b1b6178bacbfc997811a998b5cc60c1ea7fac8 +0 -0
- py2ls/.git/objects/57/63d0c52f5c9c69e89d514a1f96034947abe21a +0 -0
- py2ls/.git/objects/59/380c4c26bdcd4d9b71ae3e2e35f05b3f26c5ab +0 -0
- py2ls/.git/objects/66/6227eeeba24073e63811e89f1449f3d958f183 +0 -0
- py2ls/.git/objects/66/c998778721d424bd0aae80602dabbffa93af2e +0 -0
- py2ls/.git/objects/6d/c2cdf4a84e538e5d4777486aeff87e42f41799 +2 -0
- py2ls/.git/objects/72/245a05b0966011cb381e6b32b0465000e969ab +0 -0
- py2ls/.git/objects/72/e4179337639859678ddaecf38b16f33aaec8e1 +0 -0
- py2ls/.git/objects/a1/906da89d1174f74867800c74c43af36253bd5e +0 -0
- py2ls/.git/objects/d2/992df305f4b56a466a2f221aeb182ddd20f418 +0 -0
- py2ls/.git/objects/dc/c2bdbafb3296e09d9ee4955cfa55d275825f94 +5 -0
- py2ls/.git/objects/dc/cdbd4266765d840be2ae35ab1752a0fa312c16 +0 -0
- py2ls/.git/objects/e2/f2f8f4c25e62a297fc55f36acc6b01cfbab76f +3 -0
- py2ls/.git/objects/ea/3a18cc75e53792744ef754e05d3f4481768c13 +0 -0
- py2ls/.git/objects/ec/40fd8bf8e4c342534a9fc020289e402ba6bc9d +0 -0
- py2ls/.git/objects/f4/ba7f815b886797b73fede071d86e0c134d2bc7 +0 -0
- py2ls/.git/objects/f6/44a8ff56fa035105fc517cbb1ac46c3d8e349a +0 -0
- py2ls/.git/refs/heads/main +1 -1
- py2ls/.git/refs/remotes/origin/main +1 -1
- py2ls/data/styles/example/style1.pdf +0 -0
- py2ls/data/styles/example/style2.pdf +0 -0
- py2ls/data/styles/example/style3.pdf +0 -0
- py2ls/data/styles/example/style4.pdf +0 -0
- py2ls/data/styles/example/style5.pdf +0 -0
- py2ls/data/styles/example/style6.pdf +0 -0
- py2ls/data/styles/example/style7.pdf +0 -0
- py2ls/data/styles/example/style8.pdf +0 -0
- py2ls/data/styles/example/style9.pdf +0 -0
- py2ls/data/styles/style6.json +31 -20
- py2ls/data/styles/style7.json +201 -0
- py2ls/data/styles/style8.json +199 -0
- py2ls/data/styles/style9.json +215 -0
- py2ls/netfinder.py +0 -8
- py2ls/plot.py +561 -126
- py2ls/stats.py +182 -372
- {py2ls-0.1.9.3.dist-info → py2ls-0.1.9.5.dist-info}/METADATA +1 -1
- {py2ls-0.1.9.3.dist-info → py2ls-0.1.9.5.dist-info}/RECORD +50 -17
- {py2ls-0.1.9.3.dist-info → py2ls-0.1.9.5.dist-info}/WHEEL +0 -0
@@ -0,0 +1,215 @@
|
|
1
|
+
{
|
2
|
+
"c": [
|
3
|
+
"#474747",
|
4
|
+
"#FF2C00",
|
5
|
+
"#0C5DA5",
|
6
|
+
"#845B97",
|
7
|
+
"#58BBCC"
|
8
|
+
],
|
9
|
+
"loc": {
|
10
|
+
"go": 0,
|
11
|
+
"xloc": [
|
12
|
+
1,
|
13
|
+
2,
|
14
|
+
3,
|
15
|
+
4,
|
16
|
+
5
|
17
|
+
]
|
18
|
+
},
|
19
|
+
"style": {},
|
20
|
+
"layer": [
|
21
|
+
"b",
|
22
|
+
"bx",
|
23
|
+
"e",
|
24
|
+
"v",
|
25
|
+
"s",
|
26
|
+
"l"
|
27
|
+
],
|
28
|
+
"b": {
|
29
|
+
"go": 0,
|
30
|
+
"loc": "c",
|
31
|
+
"FaceColor": [
|
32
|
+
"#474747",
|
33
|
+
"#FF2C00",
|
34
|
+
"#0C5DA5",
|
35
|
+
"#845B97",
|
36
|
+
"#58BBCC"
|
37
|
+
],
|
38
|
+
"FaceAlpha": 1,
|
39
|
+
"EdgeColor": "k",
|
40
|
+
"EdgeAlpha": 1,
|
41
|
+
"LineStyle": "-",
|
42
|
+
"LineWidth": 0.8,
|
43
|
+
"x_width": 0.5,
|
44
|
+
"x_dist": 0.5,
|
45
|
+
"ShowBaseLine": "off",
|
46
|
+
"hatch": null
|
47
|
+
},
|
48
|
+
"e": {
|
49
|
+
"go": 1,
|
50
|
+
"loc": "c",
|
51
|
+
"LineWidth": 2,
|
52
|
+
"CapLineWidth": 1,
|
53
|
+
"CapSize": 2,
|
54
|
+
"Marker": "o",
|
55
|
+
"LineStyle": "-",
|
56
|
+
"LineColor": "k",
|
57
|
+
"LineAlpha": 0.5,
|
58
|
+
"LineJoin": "round",
|
59
|
+
"MarkerSize": "auto",
|
60
|
+
"FaceColor": [
|
61
|
+
"#474747",
|
62
|
+
"#FF2C00",
|
63
|
+
"#0C5DA5",
|
64
|
+
"#845B97",
|
65
|
+
"#58BBCC"
|
66
|
+
],
|
67
|
+
"MarkerEdgeColor": [
|
68
|
+
"k"
|
69
|
+
],
|
70
|
+
"Visible": true,
|
71
|
+
"Orientation": "vertical",
|
72
|
+
"error": "sem",
|
73
|
+
"x_width": 0.1,
|
74
|
+
"x_dist": 0.1,
|
75
|
+
"cap_dir": "b"
|
76
|
+
},
|
77
|
+
"s": {
|
78
|
+
"go": 1,
|
79
|
+
"loc": "rand",
|
80
|
+
"FaceColor": [
|
81
|
+
"#474747",
|
82
|
+
"#FF2C00",
|
83
|
+
"#0C5DA5",
|
84
|
+
"#845B97",
|
85
|
+
"#58BBCC"
|
86
|
+
],
|
87
|
+
"cmap": null,
|
88
|
+
"FaceAlpha": 1,
|
89
|
+
"x_width": 0.03,
|
90
|
+
"x_dist": 0.15,
|
91
|
+
"Marker": "o",
|
92
|
+
"MarkerSize": 15,
|
93
|
+
"LineWidth": 0.2,
|
94
|
+
"MarkerEdgeColor": "w"
|
95
|
+
},
|
96
|
+
"l": {
|
97
|
+
"go": 0,
|
98
|
+
"LineStyle": "-",
|
99
|
+
"LineColor": "k",
|
100
|
+
"LineWidth": 0.5,
|
101
|
+
"LineAlpha": 0.5
|
102
|
+
},
|
103
|
+
"bx": {
|
104
|
+
"go": 0,
|
105
|
+
"loc": "r",
|
106
|
+
"FaceColor": [
|
107
|
+
"#474747",
|
108
|
+
"#FF2C00",
|
109
|
+
"#0C5DA5",
|
110
|
+
"#845B97",
|
111
|
+
"#58BBCC"
|
112
|
+
],
|
113
|
+
"EdgeColor": "k",
|
114
|
+
"FaceAlpha": 0.85,
|
115
|
+
"EdgeAlpha": 1,
|
116
|
+
"LineStyle": "-",
|
117
|
+
"x_width": 0.1,
|
118
|
+
"x_dist": 0.1,
|
119
|
+
"ShowBaseLine": "off",
|
120
|
+
"Notch": false,
|
121
|
+
"Outliers": "on",
|
122
|
+
"OutlierMarker": "+",
|
123
|
+
"OutlierFaceColor": "r",
|
124
|
+
"OutlierEdgeColor": "k",
|
125
|
+
"OutlierSize": 6,
|
126
|
+
"LineWidth": 0.5,
|
127
|
+
"Whisker": 0.5,
|
128
|
+
"Orientation": "vertical",
|
129
|
+
"BoxLineWidth": 0.5,
|
130
|
+
"WhiskerLineStyle": "-",
|
131
|
+
"WhiskerLineColor": "k",
|
132
|
+
"WhiskerLineWidth": 0.5,
|
133
|
+
"Caps": true,
|
134
|
+
"CapLineColor": "k",
|
135
|
+
"CapLineWidth": 0.5,
|
136
|
+
"CapSize": 0.2,
|
137
|
+
"MedianLine": true,
|
138
|
+
"MedianLineStyle": "-",
|
139
|
+
"MedianStyle": "line",
|
140
|
+
"MedianLineColor": "k",
|
141
|
+
"MedianLineWidth": 2.0,
|
142
|
+
"MedianLineTop": false,
|
143
|
+
"MeanLine": false,
|
144
|
+
"showmeans": false,
|
145
|
+
"MeanLineStyle": "-",
|
146
|
+
"MeanLineColor": "w",
|
147
|
+
"MeanLineWidth": 2.0
|
148
|
+
},
|
149
|
+
"v": {
|
150
|
+
"go": 1,
|
151
|
+
"x_width": 0.4,
|
152
|
+
"x_dist": 0.08,
|
153
|
+
"loc": "l",
|
154
|
+
"EdgeColor": "none",
|
155
|
+
"FaceColor": [
|
156
|
+
"#474747",
|
157
|
+
"#FF2C00",
|
158
|
+
"#0C5DA5",
|
159
|
+
"#845B97",
|
160
|
+
"#58BBCC"
|
161
|
+
],
|
162
|
+
"FaceAlpha": 1,
|
163
|
+
"BandWidth": "scott",
|
164
|
+
"Function": "pdf",
|
165
|
+
"Kernel": "gau",
|
166
|
+
"NumPoints": 500,
|
167
|
+
"BoundaryCorrection": "reflection",
|
168
|
+
"alpha": 1
|
169
|
+
},
|
170
|
+
"r": {
|
171
|
+
"go": 0,
|
172
|
+
"bw_adjust": 1,
|
173
|
+
"clip": false,
|
174
|
+
"FaceColor": [
|
175
|
+
"#474747",
|
176
|
+
"#FF2C00",
|
177
|
+
"#0C5DA5",
|
178
|
+
"#845B97",
|
179
|
+
"#58BBCC",
|
180
|
+
"#FF9500",
|
181
|
+
"#D57DBE",
|
182
|
+
"#474747",
|
183
|
+
"#FF2C00",
|
184
|
+
"#0C5DA5",
|
185
|
+
"#845B97",
|
186
|
+
"#58BBCC",
|
187
|
+
"#FF9500",
|
188
|
+
"#D57DBE",
|
189
|
+
"#474747",
|
190
|
+
"#FF2C00",
|
191
|
+
"#0C5DA5",
|
192
|
+
"#845B97",
|
193
|
+
"#58BBCC",
|
194
|
+
"#FF9500"
|
195
|
+
],
|
196
|
+
"FaceAlpha": 1,
|
197
|
+
"EdgeLineWidth": 1.5,
|
198
|
+
"fill": true,
|
199
|
+
"EdgeColor": "none",
|
200
|
+
"xLineWidth": 2.0,
|
201
|
+
"xLineColor": "none",
|
202
|
+
"aspect": 8,
|
203
|
+
"subplot_hspace": -0.3,
|
204
|
+
"subplot_height": 0.75,
|
205
|
+
"subplot_ylabel": "",
|
206
|
+
"column4color": null,
|
207
|
+
"row_labels": null,
|
208
|
+
"row_label_loc_xscale": 0.01,
|
209
|
+
"row_label_loc_yscale": 0.05,
|
210
|
+
"fontweight": "normal",
|
211
|
+
"fontsize": 11.0,
|
212
|
+
"color_row_label": "k",
|
213
|
+
"ylabel": null
|
214
|
+
}
|
215
|
+
}
|
py2ls/netfinder.py
CHANGED
@@ -126,10 +126,8 @@ def extract_text_from_content(
|
|
126
126
|
search_kwargs["class"] = what
|
127
127
|
if "attrs" in kwargs:
|
128
128
|
result_set = content.find_all(where, **search_kwargs)
|
129
|
-
print(f"attrs =>{search_kwargs}")
|
130
129
|
else:
|
131
130
|
result_set = content.find_all(where, attrs=dict(**search_kwargs))
|
132
|
-
print(f"{search_kwargs}")
|
133
131
|
|
134
132
|
if not result_set:
|
135
133
|
print("Failed: check the 'attrs' setting: attrs={'id':'xample'}")
|
@@ -594,7 +592,6 @@ def downloader(
|
|
594
592
|
kind[i] = "." + kind[i]
|
595
593
|
file_links_all = []
|
596
594
|
for kind_ in kind:
|
597
|
-
print(kind_)
|
598
595
|
if isinstance(contains, str):
|
599
596
|
contains = [contains]
|
600
597
|
if isinstance(url, str):
|
@@ -709,7 +706,6 @@ def find_img(url, driver="request", dir_save="images", rm_folder=False, verbose=
|
|
709
706
|
if rm_folder:
|
710
707
|
ips.rm_folder(dir_save)
|
711
708
|
content_type, content = fetch_all(url, driver=driver)
|
712
|
-
print(content_type)
|
713
709
|
if "html" in content_type.lower():
|
714
710
|
# Create the directory if it doesn't exist
|
715
711
|
os.makedirs(dir_save, exist_ok=True)
|
@@ -913,7 +909,6 @@ def fetch(
|
|
913
909
|
output="text",
|
914
910
|
**kws,
|
915
911
|
):
|
916
|
-
print(f"output is {output}")
|
917
912
|
if "xt" in output.lower():
|
918
913
|
for attempt in range(retry):
|
919
914
|
if verbose and attempt == 0:
|
@@ -973,7 +968,6 @@ def fetch(
|
|
973
968
|
try:
|
974
969
|
content_type, content = fetch_all(url, parser="html.parser", driver=driver)
|
975
970
|
search_kwargs = {**kws}
|
976
|
-
print(search_kwargs)
|
977
971
|
if "class_" in search_kwargs:
|
978
972
|
search_kwargs["class"] = search_kwargs["class_"]
|
979
973
|
del search_kwargs["class_"]
|
@@ -981,10 +975,8 @@ def fetch(
|
|
981
975
|
search_kwargs["class"] = what
|
982
976
|
if "attrs" in kws:
|
983
977
|
result_set = content.find_all(where, **search_kwargs)
|
984
|
-
print(f"attrs =>{search_kwargs}")
|
985
978
|
else:
|
986
979
|
result_set = content.find_all(where, attrs=dict(**search_kwargs))
|
987
|
-
print(f"{search_kwargs}")
|
988
980
|
return result_set
|
989
981
|
except:
|
990
982
|
print("got nothing")
|