Skip to content

Commit 3c1f3f0

Browse files
committed
Initial commit ✨
0 parents  commit 3c1f3f0

19 files changed

+2107
-0
lines changed

.editorconfig

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# EditorConfig is awesome: http://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
[*]
7+
charset = utf-8
8+
end_of_line = lf
9+
indent_style = space
10+
indent_size = 2
11+
insert_final_newline = true
12+
trim_trailing_whitespace = true
13+
14+
[*.{py,rst,ini}]
15+
indent_style = space
16+
indent_size = 4
17+
18+
[*.py]
19+
line_length=200
20+
21+
[*.csv]
22+
end_of_line = crlf
23+
24+
[*.bat]
25+
indent_style = tab
26+
end_of_line = crlf
27+
28+
[LICENSE]
29+
insert_final_newline = false
30+
31+
[*.{html,css,scss,json,yml}]
32+
indent_style = space
33+
indent_size = 2
34+
35+
[nginx.conf]
36+
indent_style = space
37+
indent_size = 2
38+
39+
[*.md]
40+
max_line_length = off
41+
trim_trailing_whitespace = false
42+
43+
[Makefile]
44+
indent_style = tab
45+
46+
[{.travis.yml,package.json}]
47+
# The indent size used in the `package.json` file cannot be changed
48+
# https://github.com/npm/npm/pull/3180#issuecomment-16336516
49+
indent_size = 2
50+
indent_style = space

.gitattributes

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Automatically normalize line endings for all text-based files
2+
# https://git-scm.com/docs/gitattributes#_end_of_line_conversion
3+
4+
* text=auto
5+
6+
# Line endings
7+
# ============
8+
.* text eol=lf
9+
*.css text eol=lf
10+
*.html text eol=lf
11+
*.js text eol=lf
12+
*.json text eol=lf
13+
*.md text eol=lf
14+
*.sh text eol=lf
15+
*.txt text eol=lf
16+
*.xml text eol=lf
17+
18+
# Source files
19+
# ============
20+
*.pxd text
21+
*.py text
22+
*.py3 text
23+
*.pyw text
24+
*.pyx text
25+
26+
# Binary files
27+
# ============
28+
*.db binary
29+
*.p binary
30+
*.pkl binary
31+
*.pyc binary
32+
*.pyd binary
33+
*.pyo binary
34+
*.bmpr binary

.gitignore

Lines changed: 174 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,174 @@
1+
#####=== VirtualEnv ===#####
2+
# Virtualenv
3+
# http://iamzed.com/2009/05/07/a-primer-on-virtualenv/
4+
.Python
5+
[Bb]in
6+
[Ii]nclude
7+
[Ll]ib
8+
[Ss]cripts
9+
pyvenv.cfg
10+
pip-selfcheck.json
11+
12+
#####=== Python ===#####
13+
14+
# Byte-compiled / optimized / DLL files
15+
__pycache__/
16+
*.py[cod]
17+
*$py.class
18+
19+
# C extensions
20+
*.so
21+
22+
# Distribution / packaging
23+
env/
24+
build/
25+
develop-eggs/
26+
dist/
27+
downloads/
28+
eggs/
29+
.eggs/
30+
lib/
31+
lib64/
32+
parts/
33+
sdist/
34+
var/
35+
*.egg-info/
36+
.installed.cfg
37+
*.egg
38+
39+
# PyInstaller
40+
# Usually these files are written by a python script from a template
41+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
42+
*.manifest
43+
*.spec
44+
45+
# Installer logs
46+
pip-log.txt
47+
pip-delete-this-directory.txt
48+
49+
# Unit test / coverage reports
50+
htmlcov/
51+
.tox/
52+
.coverage
53+
.coverage.*
54+
.cache
55+
nosetests.xml
56+
coverage.xml
57+
*,cover
58+
59+
# Translations
60+
*.mo
61+
*.pot
62+
63+
# Django stuff:
64+
*.log
65+
66+
# Sphinx documentation
67+
docs/_build/
68+
69+
# PyBuilder
70+
target/
71+
72+
#####=== JetBrains ===#####
73+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio
74+
75+
*.iml
76+
77+
## Directory-based project format:
78+
.idea/
79+
# if you remove the above rule, at least ignore the following:
80+
81+
# User-specific stuff:
82+
# .idea/workspace.xml
83+
# .idea/tasks.xml
84+
# .idea/dictionaries
85+
86+
# Sensitive or high-churn files:
87+
# .idea/dataSources.ids
88+
# .idea/dataSources.xml
89+
# .idea/sqlDataSources.xml
90+
# .idea/dynamic.xml
91+
# .idea/uiDesigner.xml
92+
93+
# Gradle:
94+
# .idea/gradle.xml
95+
# .idea/libraries
96+
97+
# Mongo Explorer plugin:
98+
# .idea/mongoSettings.xml
99+
100+
## File-based project format:
101+
*.ipr
102+
*.iws
103+
104+
## Plugin-specific files:
105+
106+
# IntelliJ
107+
/out/
108+
109+
# mpeltonen/sbt-idea plugin
110+
.idea_modules/
111+
112+
# JIRA plugin
113+
atlassian-ide-plugin.xml
114+
115+
# Crashlytics plugin (for Android Studio and IntelliJ)
116+
com_crashlytics_export_strings.xml
117+
crashlytics.properties
118+
crashlytics-build.properties
119+
120+
#####=== Windows ===#####
121+
# Windows image file caches
122+
Thumbs.db
123+
ehthumbs.db
124+
125+
# Folder config file
126+
Desktop.ini
127+
128+
# Recycle Bin used on file shares
129+
$RECYCLE.BIN/
130+
131+
# Windows Installer files
132+
*.cab
133+
*.msi
134+
*.msm
135+
*.msp
136+
137+
# Windows shortcuts
138+
*.lnk
139+
140+
#####=== MacOS ===#####
141+
# General
142+
*.DS_Store
143+
.AppleDouble
144+
.LSOverride
145+
146+
# Icon must end with two \r
147+
Icon
148+
149+
150+
# Thumbnails
151+
._*
152+
153+
# Files that might appear in the root of a volume
154+
.DocumentRevisions-V100
155+
.fseventsd
156+
.Spotlight-V100
157+
.TemporaryItems
158+
.Trashes
159+
.VolumeIcon.icns
160+
.com.apple.timemachine.donotpresent
161+
162+
# Directories potentially created on remote AFP share
163+
.AppleDB
164+
.AppleDesktop
165+
Network Trash Folder
166+
Temporary Items
167+
.apdisk
168+
169+
##############################################
170+
# Custom
171+
##############################################
172+
*.sock
173+
.bash_history
174+
/activate.ps1

.travis.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
language: python
2+
sudo: false
3+
python:
4+
- "3.5"
5+
- "3.5-dev" # 3.5 development branch
6+
- "3.6"
7+
- "3.6-dev" # 3.6 development branch
8+
- "3.7-dev" # 3.7 development branch
9+
- "nightly" # currently points to 3.7-dev
10+
env:
11+
- PYTHONUNBUFFERED="1"
12+
install:
13+
- pip install --isolated --no-input --compile --exists-action=a --disable-pip-version-check --use-wheel --no-cache-dir -r ./requirements/dev.txt
14+
- pip install --isolated --no-input --compile --exists-action=a --disable-pip-version-check --use-wheel --no-cache-dir --upgrade setuptools wheel
15+
script:
16+
- inv test
17+
- inv build
18+
notifications:
19+
email: false

MANIFEST.in

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
include LICENSE
2+
include README.rst
3+
recursive-include tensorflow_serving *.html *py
4+
global-exclude __pycache__
5+
global-exclude *.py[co]

requirements/base.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
grpcio>=1.0
2+
tensorflow>=1.4.0

requirements/dev.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
-r base.txt
2+
3+
# Requirements needed for development & build & testing
4+
wheel>=0.29.0
5+
setuptools>=35.0.2
6+
docutils>=0.13.1
7+
pygments>=2.1.3
8+
invoke==0.12.2
9+
twine

setup.cfg

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[bdist_wheel]
2+
universal = 1
3+
4+
[wheel]
5+
universal = 1
6+
7+
[flake8]
8+
; ignore = E226,E302,E41
9+
max-line-length = 119
10+
exclude = build/*,dist/*
11+
max-complexity = 10
12+

setup.py

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# -*- encoding: utf-8 -*-
2+
# ! python3
3+
4+
import io
5+
6+
from setuptools import setup
7+
8+
setup(
9+
name='tensorflow-serving-api-python3',
10+
version='1.4.0',
11+
description="""*UNOFFICIAL* TensorFlow Serving API libraries for Python3""",
12+
long_description=io.open("README.rst", 'r', encoding="utf-8").read(),
13+
url='https://github.com/illagrenan/tensorflow-serving-api-python3',
14+
license='Apache 2.0',
15+
keywords="TensorFlow Serving API libraries",
16+
author='Vize',
17+
author_email='tensorflow-serving-dev@googlegroups.com',
18+
packages=['tensorflow_serving'],
19+
install_requires=[
20+
'grpcio>=1.7.0',
21+
'tensorflow>=1.4.0'
22+
],
23+
python_requires='~=3.5',
24+
include_package_data=True,
25+
zip_safe=True,
26+
classifiers=[
27+
'Development Status :: 3 - Alpha',
28+
'Intended Audience :: Developers',
29+
'Natural Language :: English',
30+
'Programming Language :: Python :: 3.5',
31+
'Programming Language :: Python :: 3.6',
32+
'Programming Language :: Python :: 3 :: Only',
33+
'Operating System :: OS Independent'
34+
]
35+
)

tensorflow_serving/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# -*- encoding: utf-8 -*-
2+
# ! python3

0 commit comments

Comments
 (0)