Skip to content

Commit c28159b

Browse files
committed
first commit
1 parent eed738b commit c28159b

Some content is hidden

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

108 files changed

+9288
-0
lines changed

.dockerignore

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# my ignore file
2+
.git/
3+
.pyre/
4+
.idea/
5+
.eggs/
6+
docs/
7+
8+
*egg*/
9+
README.md
10+
MAINTAINERS
11+
test*.yml
12+
toy*
13+
release.sh
14+
shell/
15+
.tmp/
16+
.github/
17+
Dockerfiles/
18+
.dockerignore

.github/workflows/ci-workflow.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Python package
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
python-version: [3.5, 3.6, 3.7, 3.8]
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Set up Python ${{ matrix.python-version }}
16+
uses: actions/setup-python@v1
17+
with:
18+
python-version: ${{ matrix.python-version }}
19+
- name: Install dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install -r requirements.txt
23+
- name: Lint with flake8
24+
run: |
25+
pip install flake8
26+
# stop the build if there are Python syntax errors or undefined names
27+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
28+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
29+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
30+
- name: Test with pytest
31+
run: |
32+
pip install pytest
33+
pytest

.gitignore

+128
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
# Initially taken from Github's Python gitignore file
2+
3+
# Byte-compiled / optimized / DLL files
4+
__pycache__/
5+
*.py[cod]
6+
*$py.class
7+
8+
# C extensions
9+
*.so
10+
11+
# Distribution / packaging
12+
.Python
13+
build/
14+
develop-eggs/
15+
dist/
16+
downloads/
17+
eggs/
18+
.eggs/
19+
lib/
20+
lib64/
21+
parts/
22+
sdist/
23+
var/
24+
wheels/
25+
*.egg-info/
26+
.installed.cfg
27+
*.egg
28+
MANIFEST
29+
30+
# PyInstaller
31+
# Usually these files are written by a python script from a template
32+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
33+
*.manifest
34+
*.spec
35+
36+
# Installer logs
37+
pip-log.txt
38+
pip-delete-this-directory.txt
39+
40+
# Unit test / coverage reports
41+
htmlcov/
42+
.tox/
43+
.nox/
44+
.coverage
45+
.coverage.*
46+
.cache
47+
nosetests.xml
48+
coverage.xml
49+
*.cover
50+
.hypothesis/
51+
.pytest_cache/
52+
53+
# Translations
54+
*.mo
55+
*.pot
56+
57+
# Django stuff:
58+
*.log
59+
local_settings.py
60+
db.sqlite3
61+
62+
# Flask stuff:
63+
instance/
64+
.webassets-cache
65+
66+
# Scrapy stuff:
67+
.scrapy
68+
69+
# Sphinx documentation
70+
docs/_build/
71+
docs/api/
72+
73+
# PyBuilder
74+
target/
75+
76+
# Jupyter Notebook
77+
.ipynb_checkpoints
78+
79+
# IPython
80+
profile_default/
81+
ipython_config.py
82+
83+
# pyenv
84+
docs/.python-version
85+
86+
# celery beat schedule file
87+
celerybeat-schedule
88+
89+
# SageMath parsed files
90+
*.sage.py
91+
92+
# Environments
93+
.venv
94+
env/
95+
venv/
96+
ENV/
97+
env.bak/
98+
venv.bak/
99+
100+
# Spyder project settings
101+
.spyderproject
102+
.spyproject
103+
104+
# Rope project settings
105+
.ropeproject
106+
107+
# mkdocs documentation
108+
/site
109+
110+
# mypy
111+
.mypy_cache/
112+
.dmypy.json
113+
dmypy.json
114+
115+
# Pyre type checker
116+
.pyre/
117+
.idea/
118+
toy*.py
119+
.DS_Store
120+
post/
121+
toy*.ipynb
122+
data/
123+
*.c
124+
.nes_cache
125+
toy*.yml
126+
*.tmp
127+
128+
shell/jina-wizard.sh

.python-version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.7.5

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Release Notes

CONTRIBUTING.md

Whitespace-only changes.

MAINTAINERS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Jina Dev Team <[email protected]>

MANIFEST.in

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
recursive-include jina/resources *

docs/Makefile

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Minimal makefile for Sphinx documentation
2+
#
3+
4+
# You can set these variables from the command line.
5+
SPHINXOPTS =
6+
SPHINXBUILD = sphinx-build
7+
SOURCEDIR = .
8+
BUILDDIR = _build
9+
10+
# Put it first so that "make" without argument is like "make help".
11+
help:
12+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
13+
14+
.PHONY: help Makefile
15+
16+
# Catch-all target: route all unknown targets to Sphinx using the new
17+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
18+
%: Makefile
19+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

docs/_static/main.css

+159
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,159 @@
1+
/*.wy-alert.wy-alert-neutral a, .rst-content .wy-alert-neutral.note a, .rst-content .wy-alert-neutral.attention a, .rst-content .wy-alert-neutral.caution a, .rst-content .wy-alert-neutral.danger a, .rst-content .wy-alert-neutral.error a, .rst-content .wy-alert-neutral.hint a, .rst-content .wy-alert-neutral.important a, .rst-content .wy-alert-neutral.tip a, .rst-content .wy-alert-neutral.warning a, .rst-content .wy-alert-neutral.seealso a, .rst-content .wy-alert-neutral.admonition-todo a, .rst-content .wy-alert-neutral.admonition a {*/
2+
/* color: #247ba0ff*/
3+
/*}*/
4+
5+
6+
/*.wy-tray-container li.wy-tray-item-info {*/
7+
/* background: #247ba0ff*/
8+
/*}*/
9+
10+
11+
/*.btn-info {*/
12+
/* background-color: #247ba0ff !important*/
13+
/*}*/
14+
15+
/*.btn-link {*/
16+
/* background-color: transparent !important;*/
17+
/* color: #247ba0ff;*/
18+
/* box-shadow: none;*/
19+
/* border-color: transparent !important*/
20+
/*}*/
21+
22+
23+
/*.wy-nav-content {*/
24+
/* max-width: none;*/
25+
/*}*/
26+
27+
28+
/*.wy-nav-side {*/
29+
/* position: fixed;*/
30+
/* top: 0;*/
31+
/* bottom: 0;*/
32+
/* left: 0;*/
33+
/* padding-bottom: 2em;*/
34+
/* overflow-x: hidden;*/
35+
/* overflow-y: hidden;*/
36+
/* min-height: 100%;*/
37+
/* color: #9b9b9b;*/
38+
/* !*background: #343131;*!*/
39+
/* z-index: 200;*/
40+
/*}*/
41+
42+
/*.wy-dropdown-menu > dd > a:hover {*/
43+
/* background: #247ba0ff;*/
44+
/* color: #fff*/
45+
/*}*/
46+
47+
48+
/*.wy-dropdown.wy-dropdown-bubble .wy-dropdown-menu a:hover {*/
49+
/* background: #247ba0ff;*/
50+
/* color: #fff*/
51+
/*}*/
52+
53+
54+
/*.wy-inline-validate.wy-inline-validate-info .wy-input-context {*/
55+
/* color: #247ba0ff*/
56+
/*}*/
57+
58+
59+
/*a {*/
60+
/* color: #247ba0ff;*/
61+
/* text-decoration: none;*/
62+
/* cursor: pointer*/
63+
/*}*/
64+
65+
66+
/*.wy-text-info {*/
67+
/* color: #247ba0ff !important*/
68+
/*}*/
69+
70+
/*.wy-menu-vertical a:active {*/
71+
/* background-color: #247ba0ff;*/
72+
/* cursor: pointer;*/
73+
/* color: #fff*/
74+
/*}*/
75+
76+
/*.wy-side-nav-search {*/
77+
/* display: block;*/
78+
/* width: 300px;*/
79+
/* padding: .809em;*/
80+
/* margin-bottom: .809em;*/
81+
/* z-index: 200;*/
82+
/* background-color: #247ba0ff;*/
83+
/* text-align: center;*/
84+
/* padding: .809em;*/
85+
/* display: block;*/
86+
/* color: #fcfcfc;*/
87+
/* margin-bottom: .809em*/
88+
/*}*/
89+
90+
/*.wy-side-nav-search input[type=text] {*/
91+
/* width: 100%;*/
92+
/* border-radius: 50px;*/
93+
/* padding: 6px 12px;*/
94+
/* border-color: #2472a4*/
95+
/*}*/
96+
97+
/*.wy-side-nav-search img {*/
98+
/* display: block;*/
99+
/* margin: auto auto .809em auto;*/
100+
/* height: 45px;*/
101+
/* width: 45px;*/
102+
/* background-color: #247ba0ff;*/
103+
/* padding: 5px;*/
104+
/* border-radius: 100%*/
105+
/*}*/
106+
107+
/*.wy-nav .wy-menu-vertical header {*/
108+
/* color: #247ba0ff*/
109+
/*}*/
110+
111+
112+
/*.wy-nav .wy-menu-vertical a:hover {*/
113+
/* background-color: #247ba0ff;*/
114+
/* color: #fff*/
115+
/*}*/
116+
117+
/*.wy-nav-top {*/
118+
/* display: none;*/
119+
/* background: #247ba0ff;*/
120+
/* color: #fff;*/
121+
/* padding: .4045em .809em;*/
122+
/* position: relative;*/
123+
/* line-height: 50px;*/
124+
/* text-align: center;*/
125+
/* font-size: 100%;*/
126+
/* *zoom: 1*/
127+
/*}*/
128+
129+
130+
/*.wy-nav-top img {*/
131+
/* margin-right: 12px;*/
132+
/* height: 45px;*/
133+
/* width: 45px;*/
134+
/* background-color: #247ba0ff;*/
135+
/* padding: 5px;*/
136+
/* border-radius: 100%*/
137+
/*}*/
138+
139+
/*.rst-versions a {*/
140+
/* color: #247ba0ff;*/
141+
/* text-decoration: none*/
142+
/*}*/
143+
144+
/*.rst-content a tt, .rst-content a tt, .rst-content a code {*/
145+
/* color: #247ba0ff*/
146+
/*}*/
147+
148+
149+
/*.rst-content dl:not(.docutils) dt {*/
150+
/* display: table;*/
151+
/* margin: 6px 0;*/
152+
/* font-size: 90%;*/
153+
/* line-height: normal;*/
154+
/* background: #e7f2fa;*/
155+
/* color: #247ba0ff;*/
156+
/* border-top: solid 3px #6ab0de;*/
157+
/* padding: 6px;*/
158+
/* position: relative*/
159+
/*}*/

docs/chapters/CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../CHANGELOG.md

docs/chapters/CONTRIBUTING.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../CONTRIBUTING.md

docs/chapters/cli/exit.rst

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Gracefully Exit Jina
2+
====================
3+
4+
In a Local Console
5+
------------------
6+
If you running Jina locally (e.g. :command:`jina flow`), you can :kbd:`Control-c` or :kbd:`Command-c` to terminate it at any time. All :class:`Pod` will receive this signal and shutdown accordingly.

0 commit comments

Comments
 (0)