Skip to content

Commit

Permalink
初始发布
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Jul 18, 2024
1 parent 88477b5 commit d882563
Show file tree
Hide file tree
Showing 16 changed files with 359 additions and 0 deletions.
3 changes: 3 additions & 0 deletions aliyun-python-sdk-aicontent/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
2024-07-18 Version: 1.0.0
初始发布

13 changes: 13 additions & 0 deletions aliyun-python-sdk-aicontent/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Copyright 1999-present Alibaba Group Holding Ltd.

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.
1 change: 1 addition & 0 deletions aliyun-python-sdk-aicontent/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include LICENSE README.rst ChangeLog.txt
15 changes: 15 additions & 0 deletions aliyun-python-sdk-aicontent/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
=============================================================
aliyun-python-sdk-aicontent
=============================================================

.. This is the aicontent module of Aliyun Python SDK.
Aliyun Python SDK is the official software development kit. It makes things easy to integrate your Python application, library, or script with Aliyun services.

This module works on Python versions:

2.6.5 and greater

**Documentation:**

Please visit `http://develop.aliyun.com/sdk/python <http://develop.aliyun.com/sdk/python>`_
1 change: 1 addition & 0 deletions aliyun-python-sdk-aicontent/aliyunsdkaicontent/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = '1.0.0'
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.

from aliyunsdkcore.request import RoaRequest

class AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest(RoaRequest):

def __init__(self):
RoaRequest.__init__(self, 'AiContent', '20240611', 'AliyunConsoleOpenApiQueryAliyunConsoleServcieList')
self.set_protocol_type('https')
self.set_uri_pattern('/api/v1/aliyunconsole/queryAliyunConsoleServcieList')
self.set_method('GET')

Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.

from aliyunsdkcore.request import RoaRequest

class Personalizedtxt2imgAddInferenceJobRequest(RoaRequest):

def __init__(self):
RoaRequest.__init__(self, 'AiContent', '20240611', 'Personalizedtxt2imgAddInferenceJob')
self.set_protocol_type('https')
self.set_uri_pattern('/api/v1/personalizedtxt2img/addInferenceJob')
self.set_method('POST')

def get_body(self): # String
return self.get_body_params().get('body')

def set_body(self, body): # String
self.add_body_params('body', body)
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.

from aliyunsdkcore.request import RoaRequest

class Personalizedtxt2imgAddModelTrainJobRequest(RoaRequest):

def __init__(self):
RoaRequest.__init__(self, 'AiContent', '20240611', 'Personalizedtxt2imgAddModelTrainJob')
self.set_protocol_type('https')
self.set_uri_pattern('/api/v1/personalizedtxt2img/addModelTrainJob')
self.set_method('POST')

def get_body(self): # String
return self.get_body_params().get('body')

def set_body(self, body): # String
self.add_body_params('body', body)
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.

from aliyunsdkcore.request import RoaRequest

class Personalizedtxt2imgQueryImageAssetRequest(RoaRequest):

def __init__(self):
RoaRequest.__init__(self, 'AiContent', '20240611', 'Personalizedtxt2imgQueryImageAsset')
self.set_protocol_type('https')
self.set_uri_pattern('/api/v1/personalizedtxt2img/queryImageAsset')
self.set_method('GET')

def get_imageId(self): # String
return self.get_query_params().get('imageId')

def set_imageId(self, imageId): # String
self.add_query_param('imageId', imageId)
def get_modelId(self): # String
return self.get_query_params().get('modelId')

def set_modelId(self, modelId): # String
self.add_query_param('modelId', modelId)
def get_encodeFormat(self): # String
return self.get_query_params().get('encodeFormat')

def set_encodeFormat(self, encodeFormat): # String
self.add_query_param('encodeFormat', encodeFormat)
def get_promptId(self): # String
return self.get_query_params().get('promptId')

def set_promptId(self, promptId): # String
self.add_query_param('promptId', promptId)
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.

from aliyunsdkcore.request import RoaRequest

class Personalizedtxt2imgQueryInferenceJobInfoRequest(RoaRequest):

def __init__(self):
RoaRequest.__init__(self, 'AiContent', '20240611', 'Personalizedtxt2imgQueryInferenceJobInfo')
self.set_protocol_type('https')
self.set_uri_pattern('/api/v1/personalizedtxt2img/queryInferenceJobInfo')
self.set_method('GET')

def get_inferenceJobId(self): # String
return self.get_query_params().get('inferenceJobId')

def set_inferenceJobId(self, inferenceJobId): # String
self.add_query_param('inferenceJobId', inferenceJobId)
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.

from aliyunsdkcore.request import RoaRequest

class Personalizedtxt2imgQueryModelTrainJobListRequest(RoaRequest):

def __init__(self):
RoaRequest.__init__(self, 'AiContent', '20240611', 'Personalizedtxt2imgQueryModelTrainJobList')
self.set_protocol_type('https')
self.set_uri_pattern('/api/v1/personalizedtxt2img/queryModelTrainJobList')
self.set_method('GET')

Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.

from aliyunsdkcore.request import RoaRequest

class Personalizedtxt2imgQueryModelTrainStatusRequest(RoaRequest):

def __init__(self):
RoaRequest.__init__(self, 'AiContent', '20240611', 'Personalizedtxt2imgQueryModelTrainStatus')
self.set_protocol_type('https')
self.set_uri_pattern('/api/v1/personalizedtxt2img/queryModelTrainStatus')
self.set_method('GET')

def get_modelId(self): # String
return self.get_query_params().get('modelId')

def set_modelId(self, modelId): # String
self.add_query_param('modelId', modelId)
Empty file.
5 changes: 5 additions & 0 deletions aliyun-python-sdk-aicontent/setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[metadata]
license_file = LICENSE

[bdist_wheel]
universal = 1
78 changes: 78 additions & 0 deletions aliyun-python-sdk-aicontent/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
#!/usr/bin/python
'''
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you 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.
'''

from setuptools import setup, find_packages
import os
import sys

"""
setup module for aicontent.
Created on 7/3/2015
@author: alex
"""

PACKAGE = "aliyunsdkaicontent"
NAME = "aliyun-python-sdk-aicontent"
DESCRIPTION = "The aicontent module of Aliyun Python sdk."
AUTHOR = "Aliyun"
AUTHOR_EMAIL = "aliyun-developers-efficiency@list.alibaba-inc.com"
URL = "http://develop.aliyun.com/sdk/python"

TOPDIR = os.path.dirname(__file__) or "."
VERSION = __import__(PACKAGE).__version__

desc_file = open("README.rst")
try:
LONG_DESCRIPTION = desc_file.read()
finally:
desc_file.close()

setup(
name=NAME,
version=VERSION,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
license="Apache",
url=URL,
keywords=["aliyun","sdk","aicontent"],
packages=find_packages(exclude=["tests*"]),
include_package_data=True,
platforms="any",
install_requires=["aliyun-python-sdk-core>=2.11.5",],
classifiers=(
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Topic :: Software Development",
)

)

0 comments on commit d882563

Please sign in to comment.