Skip to content

Commit 0602ccb

Browse files
committed
1 parent bbc066c commit 0602ccb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+1079
-3
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ before_install:
88
- export PIP_USE_MIRRORS=true
99

1010
install:
11-
- pip install -e .
11+
- pip install -e .[tox]
1212

1313
script:
1414
- echo "Running Lint Tests"

env2/Scripts/Activate.ps1

+405
Large diffs are not rendered by default.

env2/Scripts/activate

+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# This file must be used with "source bin/activate" *from bash*
2+
# you cannot run it directly
3+
4+
deactivate () {
5+
# reset old environment variables
6+
if [ -n "${_OLD_VIRTUAL_PATH:-}" ] ; then
7+
PATH="${_OLD_VIRTUAL_PATH:-}"
8+
export PATH
9+
unset _OLD_VIRTUAL_PATH
10+
fi
11+
if [ -n "${_OLD_VIRTUAL_PYTHONHOME:-}" ] ; then
12+
PYTHONHOME="${_OLD_VIRTUAL_PYTHONHOME:-}"
13+
export PYTHONHOME
14+
unset _OLD_VIRTUAL_PYTHONHOME
15+
fi
16+
17+
# This should detect bash and zsh, which have a hash command that must
18+
# be called to get it to forget past commands. Without forgetting
19+
# past commands the $PATH changes we made may not be respected
20+
if [ -n "${BASH:-}" -o -n "${ZSH_VERSION:-}" ] ; then
21+
hash -r 2> /dev/null
22+
fi
23+
24+
if [ -n "${_OLD_VIRTUAL_PS1:-}" ] ; then
25+
PS1="${_OLD_VIRTUAL_PS1:-}"
26+
export PS1
27+
unset _OLD_VIRTUAL_PS1
28+
fi
29+
30+
unset VIRTUAL_ENV
31+
unset VIRTUAL_ENV_PROMPT
32+
if [ ! "${1:-}" = "nondestructive" ] ; then
33+
# Self destruct!
34+
unset -f deactivate
35+
fi
36+
}
37+
38+
# unset irrelevant variables
39+
deactivate nondestructive
40+
41+
VIRTUAL_ENV="E:\Hacktoberfest\spylunking\env2"
42+
export VIRTUAL_ENV
43+
44+
_OLD_VIRTUAL_PATH="$PATH"
45+
PATH="$VIRTUAL_ENV/Scripts:$PATH"
46+
export PATH
47+
48+
# unset PYTHONHOME if set
49+
# this will fail if PYTHONHOME is set to the empty string (which is bad anyway)
50+
# could use `if (set -u; : $PYTHONHOME) ;` in bash
51+
if [ -n "${PYTHONHOME:-}" ] ; then
52+
_OLD_VIRTUAL_PYTHONHOME="${PYTHONHOME:-}"
53+
unset PYTHONHOME
54+
fi
55+
56+
if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT:-}" ] ; then
57+
_OLD_VIRTUAL_PS1="${PS1:-}"
58+
PS1="(env2) ${PS1:-}"
59+
export PS1
60+
VIRTUAL_ENV_PROMPT="(env2) "
61+
export VIRTUAL_ENV_PROMPT
62+
fi
63+
64+
# This should detect bash and zsh, which have a hash command that must
65+
# be called to get it to forget past commands. Without forgetting
66+
# past commands the $PATH changes we made may not be respected
67+
if [ -n "${BASH:-}" -o -n "${ZSH_VERSION:-}" ] ; then
68+
hash -r 2> /dev/null
69+
fi

env2/Scripts/activate.bat

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
@echo off
2+
3+
rem This file is UTF-8 encoded, so we need to update the current code page while executing it
4+
for /f "tokens=2 delims=:." %%a in ('"%SystemRoot%\System32\chcp.com"') do (
5+
set _OLD_CODEPAGE=%%a
6+
)
7+
if defined _OLD_CODEPAGE (
8+
"%SystemRoot%\System32\chcp.com" 65001 > nul
9+
)
10+
11+
set VIRTUAL_ENV=E:\Hacktoberfest\spylunking\env2
12+
13+
if not defined PROMPT set PROMPT=$P$G
14+
15+
if defined _OLD_VIRTUAL_PROMPT set PROMPT=%_OLD_VIRTUAL_PROMPT%
16+
if defined _OLD_VIRTUAL_PYTHONHOME set PYTHONHOME=%_OLD_VIRTUAL_PYTHONHOME%
17+
18+
set _OLD_VIRTUAL_PROMPT=%PROMPT%
19+
set PROMPT=(env2) %PROMPT%
20+
21+
if defined PYTHONHOME set _OLD_VIRTUAL_PYTHONHOME=%PYTHONHOME%
22+
set PYTHONHOME=
23+
24+
if defined _OLD_VIRTUAL_PATH set PATH=%_OLD_VIRTUAL_PATH%
25+
if not defined _OLD_VIRTUAL_PATH set _OLD_VIRTUAL_PATH=%PATH%
26+
27+
set PATH=%VIRTUAL_ENV%\Scripts;%PATH%
28+
set VIRTUAL_ENV_PROMPT=(env2)
29+
30+
:END
31+
if defined _OLD_CODEPAGE (
32+
"%SystemRoot%\System32\chcp.com" %_OLD_CODEPAGE% > nul
33+
set _OLD_CODEPAGE=
34+
)

env2/Scripts/cm2html.exe

104 KB
Binary file not shown.

env2/Scripts/cm2latex.exe

104 KB
Binary file not shown.

env2/Scripts/cm2man.exe

104 KB
Binary file not shown.

env2/Scripts/cm2pseudoxml.exe

104 KB
Binary file not shown.

env2/Scripts/cm2xetex.exe

104 KB
Binary file not shown.

env2/Scripts/cm2xml.exe

104 KB
Binary file not shown.

env2/Scripts/cmark.exe

104 KB
Binary file not shown.

env2/Scripts/coverage-3.10.exe

104 KB
Binary file not shown.

env2/Scripts/coverage.exe

104 KB
Binary file not shown.

env2/Scripts/coverage3.exe

104 KB
Binary file not shown.

env2/Scripts/deactivate.bat

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
@echo off
2+
3+
if defined _OLD_VIRTUAL_PROMPT (
4+
set "PROMPT=%_OLD_VIRTUAL_PROMPT%"
5+
)
6+
set _OLD_VIRTUAL_PROMPT=
7+
8+
if defined _OLD_VIRTUAL_PYTHONHOME (
9+
set "PYTHONHOME=%_OLD_VIRTUAL_PYTHONHOME%"
10+
set _OLD_VIRTUAL_PYTHONHOME=
11+
)
12+
13+
if defined _OLD_VIRTUAL_PATH (
14+
set "PATH=%_OLD_VIRTUAL_PATH%"
15+
)
16+
17+
set _OLD_VIRTUAL_PATH=
18+
19+
set VIRTUAL_ENV=
20+
set VIRTUAL_ENV_PROMPT=
21+
22+
:END

env2/Scripts/epylint.exe

104 KB
Binary file not shown.

env2/Scripts/flake8.exe

104 KB
Binary file not shown.

env2/Scripts/get_objgraph

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
#!E:\Hacktoberfest\spylunking\env2\Scripts\python.exe
2+
#
3+
# Author: Mike McKerns (mmckerns @caltech and @uqfoundation)
4+
# Copyright (c) 2008-2016 California Institute of Technology.
5+
# Copyright (c) 2016-2022 The Uncertainty Quantification Foundation.
6+
# License: 3-clause BSD. The full license text is available at:
7+
# - https://github.com/uqfoundation/dill/blob/master/LICENSE
8+
"""
9+
display the reference paths for objects in ``dill.types`` or a .pkl file
10+
11+
Notes:
12+
the generated image is useful in showing the pointer references in
13+
objects that are or can be pickled. Any object in ``dill.objects``
14+
listed in ``dill.load_types(picklable=True, unpicklable=True)`` works.
15+
16+
Examples::
17+
18+
$ get_objgraph FrameType
19+
Image generated as FrameType.png
20+
"""
21+
22+
import dill as pickle
23+
#pickle.debug.trace(True)
24+
#import pickle
25+
26+
# get all objects for testing
27+
from dill import load_types
28+
load_types(pickleable=True,unpickleable=True)
29+
from dill import objects
30+
31+
if __name__ == "__main__":
32+
import sys
33+
if len(sys.argv) != 2:
34+
print ("Please provide exactly one file or type name (e.g. 'IntType')")
35+
msg = "\n"
36+
for objtype in list(objects.keys())[:40]:
37+
msg += objtype + ', '
38+
print (msg + "...")
39+
else:
40+
objtype = str(sys.argv[-1])
41+
try:
42+
obj = objects[objtype]
43+
except KeyError:
44+
obj = pickle.load(open(objtype,'rb'))
45+
import os
46+
objtype = os.path.splitext(objtype)[0]
47+
try:
48+
import objgraph
49+
objgraph.show_refs(obj, filename=objtype+'.png')
50+
except ImportError:
51+
print ("Please install 'objgraph' to view object graphs")
52+
53+
54+
# EOF

env2/Scripts/get_splunk_token.py

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!E:\Hacktoberfest\spylunking\env2\Scripts\python.exe
2+
# EASY-INSTALL-DEV-SCRIPT: 'spylunking==1.2.10','get_splunk_token.py'
3+
__requires__ = 'spylunking==1.2.10'
4+
__import__('pkg_resources').require('spylunking==1.2.10')
5+
__file__ = 'E:\\Hacktoberfest\\spylunking\\spylunking\\scripts\\get_splunk_token.py'
6+
with open(__file__) as f:
7+
exec(compile(f.read(), __file__, 'exec'))
104 KB
Binary file not shown.

env2/Scripts/isort.exe

104 KB
Binary file not shown.

env2/Scripts/livereload-script.py

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!E:\Hacktoberfest\spylunking\env2\Scripts\python.exe
2+
# EASY-INSTALL-ENTRY-SCRIPT: 'livereload==2.6.3','console_scripts','livereload'
3+
import re
4+
import sys
5+
6+
# for compatibility with easy_install; see #2198
7+
__requires__ = 'livereload==2.6.3'
8+
9+
try:
10+
from importlib.metadata import distribution
11+
except ImportError:
12+
try:
13+
from importlib_metadata import distribution
14+
except ImportError:
15+
from pkg_resources import load_entry_point
16+
17+
18+
def importlib_load_entry_point(spec, group, name):
19+
dist_name, _, _ = spec.partition('==')
20+
matches = (
21+
entry_point
22+
for entry_point in distribution(dist_name).entry_points
23+
if entry_point.group == group and entry_point.name == name
24+
)
25+
return next(matches).load()
26+
27+
28+
globals().setdefault('load_entry_point', importlib_load_entry_point)
29+
30+
31+
if __name__ == '__main__':
32+
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
33+
sys.exit(load_entry_point('livereload==2.6.3', 'console_scripts', 'livereload')())

env2/Scripts/livereload.exe

73 KB
Binary file not shown.

env2/Scripts/logs.sh

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/bash
2+
3+
log_type="$1"
4+
5+
action="docker"
6+
if [[ "${log_type}" == "s" ]]; then
7+
action="service"
8+
elif [[ "${log_type}" == "d" ]]; then
9+
action="docker"
10+
else
11+
action="docker"
12+
fi
13+
14+
if [[ "${action}" == "service" ]]; then
15+
echo "pulling service logs"
16+
docker exec -it splunk cat /opt/splunk/service.log
17+
elif [[ "${action}" == "docker" ]]; then
18+
echo "pulling docker logs"
19+
docker logs splunk
20+
else
21+
echo "tailing docker logs"
22+
docker logs -f splunk
23+
fi
24+
25+
exit 0

env2/Scripts/normalizer.exe

104 KB
Binary file not shown.

env2/Scripts/pep8.exe

104 KB
Binary file not shown.

env2/Scripts/pip.exe

104 KB
Binary file not shown.

env2/Scripts/pip3.10.exe

104 KB
Binary file not shown.

env2/Scripts/pip3.exe

104 KB
Binary file not shown.

env2/Scripts/pipenv-resolver.exe

104 KB
Binary file not shown.

env2/Scripts/pipenv.exe

104 KB
Binary file not shown.

env2/Scripts/py.test.exe

104 KB
Binary file not shown.

env2/Scripts/pybabel.exe

104 KB
Binary file not shown.

env2/Scripts/pycodestyle.exe

104 KB
Binary file not shown.

env2/Scripts/pyflakes.exe

104 KB
Binary file not shown.

env2/Scripts/pygmentize.exe

104 KB
Binary file not shown.

env2/Scripts/pylint-config.exe

104 KB
Binary file not shown.

env2/Scripts/pylint.exe

104 KB
Binary file not shown.

env2/Scripts/pyreverse.exe

104 KB
Binary file not shown.

env2/Scripts/pytest.exe

104 KB
Binary file not shown.

env2/Scripts/python.exe

237 KB
Binary file not shown.

env2/Scripts/pythonw.exe

227 KB
Binary file not shown.

env2/Scripts/rst2html.py

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!E:\Hacktoberfest\spylunking\env2\Scripts\python.exe
2+
3+
# $Id: rst2html.py 4564 2006-05-21 20:44:42Z wiemann $
4+
# Author: David Goodger <[email protected]>
5+
# Copyright: This module has been placed in the public domain.
6+
7+
"""
8+
A minimal front end to the Docutils Publisher, producing HTML.
9+
"""
10+
11+
try:
12+
import locale
13+
locale.setlocale(locale.LC_ALL, '')
14+
except:
15+
pass
16+
17+
from docutils.core import publish_cmdline, default_description
18+
19+
20+
description = ('Generates (X)HTML documents from standalone reStructuredText '
21+
'sources. ' + default_description)
22+
23+
publish_cmdline(writer_name='html', description=description)

env2/Scripts/rst2html4.py

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#!E:\Hacktoberfest\spylunking\env2\Scripts\python.exe
2+
3+
# $Id: rst2html4.py 7994 2016-12-10 17:41:45Z milde $
4+
# Author: David Goodger <[email protected]>
5+
# Copyright: This module has been placed in the public domain.
6+
7+
"""
8+
A minimal front end to the Docutils Publisher, producing (X)HTML.
9+
10+
The output conforms to XHTML 1.0 transitional
11+
and almost to HTML 4.01 transitional (except for closing empty tags).
12+
"""
13+
14+
try:
15+
import locale
16+
locale.setlocale(locale.LC_ALL, '')
17+
except:
18+
pass
19+
20+
from docutils.core import publish_cmdline, default_description
21+
22+
23+
description = ('Generates (X)HTML documents from standalone reStructuredText '
24+
'sources. ' + default_description)
25+
26+
publish_cmdline(writer_name='html4', description=description)

env2/Scripts/rst2html5.py

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#!E:\Hacktoberfest\spylunking\env2\Scripts\python.exe
2+
# -*- coding: utf8 -*-
3+
# :Copyright: © 2015 Günter Milde.
4+
# :License: Released under the terms of the `2-Clause BSD license`_, in short:
5+
#
6+
# Copying and distribution of this file, with or without modification,
7+
# are permitted in any medium without royalty provided the copyright
8+
# notice and this notice are preserved.
9+
# This file is offered as-is, without any warranty.
10+
#
11+
# .. _2-Clause BSD license: https://opensource.org/licenses/BSD-2-Clause
12+
#
13+
# Revision: $Revision: 8567 $
14+
# Date: $Date: 2020-09-30 13:57:21 +0200 (Mi, 30. Sep 2020) $
15+
16+
"""
17+
A minimal front end to the Docutils Publisher, producing HTML 5 documents.
18+
19+
The output is also valid XML.
20+
"""
21+
22+
try:
23+
import locale # module missing in Jython
24+
locale.setlocale(locale.LC_ALL, '')
25+
except locale.Error:
26+
pass
27+
28+
from docutils.core import publish_cmdline, default_description
29+
30+
description = (u'Generates HTML5 documents from standalone '
31+
u'reStructuredText sources.\n'
32+
+ default_description)
33+
34+
publish_cmdline(writer_name='html5', description=description)

env2/Scripts/rst2latex.py

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#!E:\Hacktoberfest\spylunking\env2\Scripts\python.exe
2+
3+
# $Id: rst2latex.py 5905 2009-04-16 12:04:49Z milde $
4+
# Author: David Goodger <[email protected]>
5+
# Copyright: This module has been placed in the public domain.
6+
7+
"""
8+
A minimal front end to the Docutils Publisher, producing LaTeX.
9+
"""
10+
11+
try:
12+
import locale
13+
locale.setlocale(locale.LC_ALL, '')
14+
except:
15+
pass
16+
17+
from docutils.core import publish_cmdline
18+
19+
description = ('Generates LaTeX documents from standalone reStructuredText '
20+
'sources. '
21+
'Reads from <source> (default is stdin) and writes to '
22+
'<destination> (default is stdout). See '
23+
'<http://docutils.sourceforge.net/docs/user/latex.html> for '
24+
'the full reference.')
25+
26+
publish_cmdline(writer_name='latex', description=description)

env2/Scripts/rst2man.py

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#!E:\Hacktoberfest\spylunking\env2\Scripts\python.exe
2+
3+
# Author:
4+
5+
# Copyright: This module has been placed in the public domain.
6+
7+
"""
8+
man.py
9+
======
10+
11+
This module provides a simple command line interface that uses the
12+
man page writer to output from ReStructuredText source.
13+
"""
14+
15+
import locale
16+
try:
17+
locale.setlocale(locale.LC_ALL, '')
18+
except:
19+
pass
20+
21+
from docutils.core import publish_cmdline, default_description
22+
from docutils.writers import manpage
23+
24+
description = ("Generates plain unix manual documents. " + default_description)
25+
26+
publish_cmdline(writer=manpage.Writer(), description=description)

0 commit comments

Comments
 (0)