Skip to content

Commit 75a97a8

Browse files
committed
reverting back to working client
Signed-off-by: vsoch <vsochat@stanford.edu>
1 parent f43628f commit 75a97a8

4 files changed

Lines changed: 61 additions & 63 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ and **Merged pull requests**. Critical items to know are:
1212
Referenced versions in headers are tagged on Github, in parentheses are for pypi.
1313

1414
## [vxx](https://github.com/urlstechie/urlschecker-python/tree/master) (master)
15+
- reverting back to working client (0.0.15)
1516
- removing unused file variable (0.0.13)
1617
- adding support for csv export (0.0.12)
1718
- fixing bug with parameter type for retry count and timeout (0.0.11)

README.md

Lines changed: 54 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,12 @@ for files. In this case, you can use urlchecker check:
5050
$ urlchecker check --help
5151

5252
$ urlchecker check --help
53-
usage: urlchecker check [-h] [-b BRANCH] [--subfolder SUBFOLDER]
54-
[--cleanup CLEANUP] [--force-pass FORCE_PASS]
55-
[--no-print NO_PRINT] [--file-types FILE_TYPES]
53+
usage: urlchecker check [-h] [-b BRANCH] [--subfolder SUBFOLDER] [--cleanup]
54+
[--force-pass] [--no-print] [--file-types FILE_TYPES]
5655
[--white-listed-urls WHITE_LISTED_URLS]
5756
[--white-listed-patterns WHITE_LISTED_PATTERNS]
5857
[--white-listed-files WHITE_LISTED_FILES]
59-
[--save SAVE] [--retry-count RETRY_COUNT]
60-
[--timeout TIMEOUT]
58+
[--retry-count RETRY_COUNT] [--timeout TIMEOUT]
6159
path
6260

6361
positional arguments:
@@ -71,12 +69,11 @@ optional arguments:
7169
--subfolder SUBFOLDER
7270
relative subfolder path within path (if not specified,
7371
we use root)
74-
--cleanup CLEANUP remove root folder after checking (defaults to False,
72+
--cleanup remove root folder after checking (defaults to False,
7573
no cleaup)
76-
--force-pass FORCE_PASS
77-
force successful pass (return code 0) regardless of
74+
--force-pass force successful pass (return code 0) regardless of
7875
result
79-
--no-print NO_PRINT Skip printing results to the screen (defaults to
76+
--no-print Skip printing results to the screen (defaults to
8077
printing to console).
8178
--file-types FILE_TYPES
8279
comma separated list of file extensions to check
@@ -89,7 +86,6 @@ optional arguments:
8986
--white-listed-files WHITE_LISTED_FILES
9087
comma separated list of white listed files and
9188
patterns for files (no spaces)
92-
--save SAVE Path toa csv file to save results to.
9389
--retry-count RETRY_COUNT
9490
retry count upon failure (defaults to 2, one retry).
9591
--timeout TIMEOUT timeout (seconds) to provide to the requests library
@@ -101,15 +97,14 @@ along with the number of retries or timeout (seconds). The most basic usage will
10197
check an entire directory. Let's clone and check the directory of one of the
10298
maintainers:
10399
104-
```diff
100+
```bash
105101
git clone https://github.com/SuperKogito/SuperKogito.github.io.git
106102
cd SuperKogito.github.io
107103
urlchecker check .
108104
109105
$ urlchecker check .
110-
111106
original path: .
112-
final path: /home/kogito/Desktop/urlstechie/SuperKogito.github.io
107+
final path: /tmp/SuperKogito.github.io
113108
subfolder: None
114109
branch: master
115110
cleanup: False
@@ -120,43 +115,42 @@ $ urlchecker check .
120115
file patterns: []
121116
force pass: False
122117
retry count: 2
123-
save: None
124118
timeout: 5
125119
126120
/tmp/SuperKogito.github.io/README.md
127121
------------------------------------
128-
+ https://travis-ci.com/SuperKogito/SuperKogito.github.io
129-
+ https://www.python.org/download/releases/3.0/
130-
+ https://superkogito.github.io/blog/diabetesML2.html
131-
+ https://superkogito.github.io/blog/Cryptography.html
132-
+ http://www.sphinx-doc.org/en/master/
133-
+ https://github.com/
134-
+ https://superkogito.github.io/blog/SignalFraming.html
135-
+ https://travis-ci.com/SuperKogito/SuperKogito.github.io.svg?branch=master
136-
+ https://superkogito.github.io/blog/VoiceBasedGenderRecognition.html
137-
+ https://superkogito.github.io/blog/SpectralLeakageWindowing.html
138-
+ https://superkogito.github.io/blog/Intro.html
139-
+ https://github.com/SuperKogito/SuperKogito.github.io/workflows/Check%20URLs/badge.svg
140-
+ https://superkogito.github.io/blog/diabetesML1.html
141-
+ https://superkogito.github.io/blog/AuthenticatedEncryption.html
142-
+ https://superKogito.github.io/blog/ffmpegpipe.html
143-
+ https://superkogito.github.io/blog/Encryption.html
144-
+ https://superkogito.github.io/blog/NaiveVad.html
122+
https://travis-ci.com/SuperKogito/SuperKogito.github.io
123+
https://www.python.org/download/releases/3.0/
124+
https://superkogito.github.io/blog/diabetesML2.html
125+
https://superkogito.github.io/blog/Cryptography.html
126+
http://www.sphinx-doc.org/en/master/
127+
https://github.com/
128+
https://superkogito.github.io/blog/SignalFraming.html
129+
https://superkogito.github.io/blog/VoiceBasedGenderRecognition.html
130+
https://travis-ci.com/SuperKogito/SuperKogito.github.io.svg?branch=master
131+
https://superkogito.github.io/blog/SpectralLeakageWindowing.html
132+
https://superkogito.github.io/blog/Intro.html
133+
https://github.com/SuperKogito/SuperKogito.github.io/workflows/Check%20URLs/badge.svg
134+
https://superkogito.github.io/blog/diabetesML1.html
135+
https://superkogito.github.io/blog/AuthenticatedEncryption.html
136+
https://superKogito.github.io/blog/ffmpegpipe.html
137+
https://superkogito.github.io/blog/Encryption.html
138+
https://superkogito.github.io/blog/NaiveVad.html
145139
146140
/tmp/SuperKogito.github.io/_project/src/postprocessing.py
147141
---------------------------------------------------------
148142
No urls found.
149143
...
150144
151-
+ https://github.com/marsbroshok/VAD-python/blob/d74033aa08fbbbcdbd491f6e52a1dfdbbb388eea/vad.py#L64
152-
+ https://github.com/fgnt/pb_chime5
153-
+ https://ai.facebook.com/blog/wav2vec-state-of-the-art-speech-recognition-through-self-supervision/
154-
+ https://corplinguistics.wordpress.com/tag/mandarin/
155-
+ http://www.cs.tut.fi/~tuomasv/papers/ijcnn_paper_valenti_extended.pdf
156-
- http://shachi.org/resources
157-
+ https://conference.scipy.org/proceedings/scipy2015/pdfs/brian_mcfee.pdf
158-
+ https://www.dlology.com/blog/simple-speech-keyword-detecting-with-depthwise-separable-convolutions/
159-
+ https://stackoverflow.com/questions/49197916/how-to-profile-cpu-usage-of-a-python-script
145+
https://github.com/marsbroshok/VAD-python/blob/d74033aa08fbbbcdbd491f6e52a1dfdbbb388eea/vad.py#L64
146+
https://github.com/fgnt/pb_chime5
147+
https://ai.facebook.com/blog/wav2vec-state-of-the-art-speech-recognition-through-self-supervision/
148+
https://corplinguistics.wordpress.com/tag/mandarin/
149+
http://www.cs.tut.fi/~tuomasv/papers/ijcnn_paper_valenti_extended.pdf
150+
http://shachi.org/resources
151+
https://conference.scipy.org/proceedings/scipy2015/pdfs/brian_mcfee.pdf
152+
https://www.dlology.com/blog/simple-speech-keyword-detecting-with-depthwise-separable-convolutions/
153+
https://stackoverflow.com/questions/49197916/how-to-profile-cpu-usage-of-a-python-script
160154
161155
162156
Done. All URLS passed.
@@ -184,7 +178,7 @@ urlchecker check --white-listed-files=README.md,_config.yml
184178
If you want to save your results to file, perhaps for some kind of record or
185179
other data analysis, you can provide the `--save` argument:
186180
187-
```diff
181+
```bash
188182
$ urlchecker check --save results.csv .
189183
original path: .
190184
final path: /home/vanessa/Desktop/Code/urlstechie/urlchecker-test-repo
@@ -201,30 +195,30 @@ $ urlchecker check --save results.csv .
201195
save: results.csv
202196
timeout: 5
203197
204-
/home/vanessa/Desktop/Code/urlstechie/urlchecker-test-repo/README.md
198+
/home/vanessa/Desktop/Code/urlstechie/urlchecker-test-repo/README.md
205199
--------------------------------------------------------------------
206200
No urls found.
207201
208-
/home/vanessa/Desktop/Code/urlstechie/urlchecker-test-repo/test_files/sample_test_file.py
202+
/home/vanessa/Desktop/Code/urlstechie/urlchecker-test-repo/test_files/sample_test_file.py
209203
-----------------------------------------------------------------------------------------
210-
- https://github.com/SuperKogito/URLs-checker/README.md
211-
- https://github.com/SuperKogito/URLs-checker/README.md
212-
+ https://www.google.com/
213-
+ https://github.com/SuperKogito
204+
https://github.com/SuperKogito/URLs-checker/README.md
205+
https://github.com/SuperKogito/URLs-checker/README.md
206+
https://www.google.com/
207+
https://github.com/SuperKogito
214208
215-
/home/vanessa/Desktop/Code/urlstechie/urlchecker-test-repo/test_files/sample_test_file.md
209+
/home/vanessa/Desktop/Code/urlstechie/urlchecker-test-repo/test_files/sample_test_file.md
216210
-----------------------------------------------------------------------------------------
217-
- https://github.com/SuperKogito/URLs-checker/blob/master/README.md
218-
+ https://github.com/SuperKogito/Voice-based-gender-recognition/issues
219-
+ https://github.com/SuperKogito/spafe/issues/7
220-
- https://github.com/SuperKogito/URLs-checker
221-
- https://github.com/SuperKogito/URLs-checker/issues
222-
+ https://github.com/SuperKogito/spafe/issues/4
223-
- https://github.com/SuperKogito/URLs-checker/issues/2
224-
- https://github.com/SuperKogito/URLs-checker/issues/2
225-
+ https://github.com/SuperKogito/Voice-based-gender-recognition/issues/1
226-
+ https://github.com/SuperKogito/spafe/issues/6
227-
+ https://github.com/SuperKogito/spafe/issues
211+
https://github.com/SuperKogito/URLs-checker/blob/master/README.md
212+
https://github.com/SuperKogito/Voice-based-gender-recognition/issues
213+
https://github.com/SuperKogito/spafe/issues/7
214+
https://github.com/SuperKogito/URLs-checker
215+
https://github.com/SuperKogito/URLs-checker/issues
216+
https://github.com/SuperKogito/spafe/issues/4
217+
https://github.com/SuperKogito/URLs-checker/issues/2
218+
https://github.com/SuperKogito/URLs-checker/issues/2
219+
https://github.com/SuperKogito/Voice-based-gender-recognition/issues/1
220+
https://github.com/SuperKogito/spafe/issues/6
221+
https://github.com/SuperKogito/spafe/issues
228222
...
229223
230224
Saving results to /home/vanessa/Desktop/Code/urlstechie/urlchecker-test-repo/results.csv
@@ -330,3 +324,4 @@ be fairly straight forward to always find what you are looking for.
330324
331325
If you need help, or want to suggest a project for the organization,
332326
please [open an issue](https://github.com/urlstechie/urlchecker-python)
327+

urlchecker/client/__init__.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,18 +75,21 @@ def get_parser():
7575
"--cleanup",
7676
help="remove root folder after checking (defaults to False, no cleaup)",
7777
default=False,
78+
action="store_true",
7879
)
7980

8081
check.add_argument(
8182
"--force-pass",
8283
help="force successful pass (return code 0) regardless of result",
8384
default=False,
85+
action="store_true",
8486
)
8587

8688
check.add_argument(
8789
"--no-print",
8890
help="Skip printing results to the screen (defaults to printing to console).",
8991
default=False,
92+
action="store_true",
9093
)
9194

9295
check.add_argument(
@@ -150,7 +153,7 @@ def main():
150153
parser = get_parser()
151154

152155
def help(return_code=0):
153-
"""print help, including the software version and active client
156+
"""print help, including the software version and active client
154157
and exit with return code.
155158
"""
156159

@@ -177,10 +180,9 @@ def help(return_code=0):
177180
else:
178181
print("Unsupported command %s" % args.command)
179182
sys.exit(0)
180-
183+
181184
# Pass on to the correct parser
182185
return_code = 0
183-
184186
try:
185187
main(args=args, extra=extra)
186188
sys.exit(return_code)

urlchecker/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
88
"""
99

10-
__version__ = "0.0.14"
10+
__version__ = "0.0.15"
1111
AUTHOR = "Ayoub Malek, Vanessa Sochat"
1212
AUTHOR_EMAIL = "superkogito@gmail.com, vsochat@stanford.edu"
1313
NAME = "urlchecker"

0 commit comments

Comments
 (0)