Skip to content

Commit 3d048d2

Browse files
authored
Merge pull request #305 from googleapis/dev
chore: merge dev into main for MB SDK Preview
2 parents b6efb1a + be0d7d4 commit 3d048d2

71 files changed

Lines changed: 23907 additions & 4 deletions

File tree

Some content is hidden

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

.coveragerc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
branch = True
33

44
[report]
5-
fail_under = 100
5+
fail_under = 99
66
show_missing = True
77
omit =
8-
google/cloud/aiplatform/v1/schema/trainingjob/definition/__init__.py
8+
.nox/*
99
exclude_lines =
1010
# Re-enable the standard pragma
1111
pragma: NO COVER
@@ -15,4 +15,4 @@ exclude_lines =
1515
# This is added at the module level as a safeguard for if someone
1616
# generates the code and tries to run it without pip installing. This
1717
# makes it virtually impossible to test properly.
18-
except pkg_resources.DistributionNotFound
18+
except pkg_resources.DistributionNotFound

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ pip-log.txt
2626

2727
# Unit test / coverage reports
2828
.coverage
29+
.coverage.*
2930
.nox
3031
.cache
3132
.pytest_cache

.kokoro/samples/python3.8/common.cfg

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ env_vars: {
1919
value: "py-3.8"
2020
}
2121

22+
# Run tests located under tests/system
23+
env_vars: {
24+
key: "RUN_SYSTEM_TESTS"
25+
value: "true"
26+
}
27+
2228
env_vars: {
2329
key: "TRAMPOLINE_BUILD_FILE"
2430
value: "github/python-aiplatform/.kokoro/test-samples.sh"

README.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
Python Client for Cloud AI Platform
22
=================================================
33

4+
**Experimental**
5+
6+
This is an Experimental release. Experiments are focused on validating a prototype. They are not guaranteed to be released and might be subject to backward-incompatible changes. They are not intended for production use or covered by any SLA, support obligation, or deprecation policy. They are covered by the `Pre-GA Offerings Terms`_ of the Google Cloud Platform Terms of Services.
7+
8+
.. _Pre-GA Offerings Terms: https://cloud.google.com/terms/service-terms#1
9+
10+
----
11+
412
|beta| |pypi| |versions|
513

614

docs/aiplatform.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Google Cloud Aiplatform SDK
2+
=============================================
3+
4+
.. automodule:: google.cloud.aiplatform
5+
:members:
6+
:show-inheritance:

docs/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ API Reference
77
.. toctree::
88
:maxdepth: 2
99

10+
aiplatform
1011
aiplatform_v1/services
1112
aiplatform_v1/types
1213

google/cloud/aiplatform/__init__.py

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,52 @@
1616
#
1717

1818
from google.cloud.aiplatform import gapic
19+
from google.cloud.aiplatform import explain
1920

21+
from google.cloud.aiplatform import initializer
22+
from google.cloud.aiplatform.datasets import (
23+
ImageDataset,
24+
TabularDataset,
25+
TextDataset,
26+
VideoDataset,
27+
)
28+
from google.cloud.aiplatform.models import Endpoint
29+
from google.cloud.aiplatform.models import Model
30+
from google.cloud.aiplatform.jobs import BatchPredictionJob
31+
from google.cloud.aiplatform.training_jobs import (
32+
CustomTrainingJob,
33+
CustomContainerTrainingJob,
34+
CustomPythonPackageTrainingJob,
35+
AutoMLTabularTrainingJob,
36+
AutoMLImageTrainingJob,
37+
AutoMLTextTrainingJob,
38+
AutoMLVideoTrainingJob,
39+
)
2040

21-
__all__ = ("gapic",)
41+
"""
42+
Usage:
43+
from google.cloud import aiplatform
44+
45+
aiplatform.init(project='my_project')
46+
"""
47+
init = initializer.global_config.init
48+
49+
__all__ = (
50+
"explain",
51+
"gapic",
52+
"init",
53+
"AutoMLImageTrainingJob",
54+
"AutoMLTabularTrainingJob",
55+
"AutoMLTextTrainingJob",
56+
"AutoMLVideoTrainingJob",
57+
"BatchPredictionJob",
58+
"CustomTrainingJob",
59+
"CustomContainerTrainingJob",
60+
"CustomPythonPackageTrainingJob",
61+
"Endpoint",
62+
"ImageDataset",
63+
"Model",
64+
"TabularDataset",
65+
"TextDataset",
66+
"VideoDataset",
67+
)

0 commit comments

Comments
 (0)