From bb6b58e92711737100c0a652f9d09bb7cb485a79 Mon Sep 17 00:00:00 2001 From: ifielker Date: Wed, 14 Aug 2019 17:25:27 -0400 Subject: [PATCH 1/2] Adding beginning of _MLKitService --- firebase_admin/mlkit.py | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 firebase_admin/mlkit.py diff --git a/firebase_admin/mlkit.py b/firebase_admin/mlkit.py new file mode 100644 index 000000000..8fc74da4b --- /dev/null +++ b/firebase_admin/mlkit.py @@ -0,0 +1,5 @@ +class _MLKitService(object): + """Firebase MLKit service.""" + + BASE_URL = 'https://mlkit.googleapis.com' + PROJECT_URL = 'https://mlkit.googleapis.com/projects/{0}/' From 7d966809685821cca949c816c238195fc31dae95 Mon Sep 17 00:00:00 2001 From: ifielker Date: Wed, 14 Aug 2019 17:34:57 -0400 Subject: [PATCH 2/2] Added License and Docstring --- firebase_admin/mlkit.py | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/firebase_admin/mlkit.py b/firebase_admin/mlkit.py index 8fc74da4b..9271fd668 100644 --- a/firebase_admin/mlkit.py +++ b/firebase_admin/mlkit.py @@ -1,5 +1,25 @@ +# Copyright 2019 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +"""Firebase ML Kit module. + +This module contains functions for creating, updating, getting, listing, +deleting, publishing and unpublishing Firebase ML Kit models. +""" + class _MLKitService(object): - """Firebase MLKit service.""" + """Firebase MLKit service.""" - BASE_URL = 'https://mlkit.googleapis.com' - PROJECT_URL = 'https://mlkit.googleapis.com/projects/{0}/' + BASE_URL = 'https://mlkit.googleapis.com' + PROJECT_URL = 'https://mlkit.googleapis.com/projects/{0}/'