diff --git a/aliyun-python-sdk-captcha/ChangeLog.txt b/aliyun-python-sdk-captcha/ChangeLog.txt new file mode 100644 index 0000000000..f243512bf0 --- /dev/null +++ b/aliyun-python-sdk-captcha/ChangeLog.txt @@ -0,0 +1,3 @@ +2024-01-26 Version: 1.0.0 +- Generated 2023-03-05 for `captcha`. + diff --git a/aliyun-python-sdk-captcha/LICENSE b/aliyun-python-sdk-captcha/LICENSE new file mode 100644 index 0000000000..85815c8027 --- /dev/null +++ b/aliyun-python-sdk-captcha/LICENSE @@ -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. \ No newline at end of file diff --git a/aliyun-python-sdk-captcha/MANIFEST.in b/aliyun-python-sdk-captcha/MANIFEST.in new file mode 100644 index 0000000000..03d3d04ba9 --- /dev/null +++ b/aliyun-python-sdk-captcha/MANIFEST.in @@ -0,0 +1 @@ +include LICENSE README.rst ChangeLog.txt \ No newline at end of file diff --git a/aliyun-python-sdk-captcha/README.rst b/aliyun-python-sdk-captcha/README.rst new file mode 100644 index 0000000000..f336a86768 --- /dev/null +++ b/aliyun-python-sdk-captcha/README.rst @@ -0,0 +1,15 @@ +============================================================= +aliyun-python-sdk-captcha +============================================================= + +.. This is the captcha 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 `_ diff --git a/aliyun-python-sdk-captcha/aliyunsdkcaptcha/__init__.py b/aliyun-python-sdk-captcha/aliyunsdkcaptcha/__init__.py new file mode 100644 index 0000000000..75977e6f41 --- /dev/null +++ b/aliyun-python-sdk-captcha/aliyunsdkcaptcha/__init__.py @@ -0,0 +1 @@ +__version__ = '1.0.0' \ No newline at end of file diff --git a/aliyun-python-sdk-captcha/aliyunsdkcaptcha/request/__init__.py b/aliyun-python-sdk-captcha/aliyunsdkcaptcha/request/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/aliyun-python-sdk-captcha/aliyunsdkcaptcha/request/v20230305/VerifyCaptchaRequest.py b/aliyun-python-sdk-captcha/aliyunsdkcaptcha/request/v20230305/VerifyCaptchaRequest.py new file mode 100644 index 0000000000..93b35564cf --- /dev/null +++ b/aliyun-python-sdk-captcha/aliyunsdkcaptcha/request/v20230305/VerifyCaptchaRequest.py @@ -0,0 +1,32 @@ +# 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 RpcRequest + +class VerifyCaptchaRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'captcha', '2023-03-05', 'VerifyCaptcha') + self.set_method('POST') + + def get_CaptchaVerifyParam(self): # String + return self.get_query_params().get('CaptchaVerifyParam') + + def set_CaptchaVerifyParam(self, CaptchaVerifyParam): # String + self.add_query_param('CaptchaVerifyParam', CaptchaVerifyParam) diff --git a/aliyun-python-sdk-captcha/aliyunsdkcaptcha/request/v20230305/VerifyIntelligentCaptchaRequest.py b/aliyun-python-sdk-captcha/aliyunsdkcaptcha/request/v20230305/VerifyIntelligentCaptchaRequest.py new file mode 100644 index 0000000000..b6010ca6d7 --- /dev/null +++ b/aliyun-python-sdk-captcha/aliyunsdkcaptcha/request/v20230305/VerifyIntelligentCaptchaRequest.py @@ -0,0 +1,37 @@ +# 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 RpcRequest + +class VerifyIntelligentCaptchaRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'captcha', '2023-03-05', 'VerifyIntelligentCaptcha') + self.set_method('POST') + + def get_CaptchaVerifyParam(self): # String + return self.get_body_params().get('CaptchaVerifyParam') + + def set_CaptchaVerifyParam(self, CaptchaVerifyParam): # String + self.add_body_params('CaptchaVerifyParam', CaptchaVerifyParam) + def get_SceneId(self): # String + return self.get_body_params().get('SceneId') + + def set_SceneId(self, SceneId): # String + self.add_body_params('SceneId', SceneId) diff --git a/aliyun-python-sdk-captcha/aliyunsdkcaptcha/request/v20230305/__init__.py b/aliyun-python-sdk-captcha/aliyunsdkcaptcha/request/v20230305/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/aliyun-python-sdk-captcha/setup.cfg b/aliyun-python-sdk-captcha/setup.cfg new file mode 100644 index 0000000000..f091bdf4a4 --- /dev/null +++ b/aliyun-python-sdk-captcha/setup.cfg @@ -0,0 +1,5 @@ +[metadata] +license_file = LICENSE + +[bdist_wheel] +universal = 1 diff --git a/aliyun-python-sdk-captcha/setup.py b/aliyun-python-sdk-captcha/setup.py new file mode 100644 index 0000000000..10547ec7f0 --- /dev/null +++ b/aliyun-python-sdk-captcha/setup.py @@ -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 captcha. + +Created on 7/3/2015 + +@author: alex +""" + +PACKAGE = "aliyunsdkcaptcha" +NAME = "aliyun-python-sdk-captcha" +DESCRIPTION = "The captcha 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","captcha"], + 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", + ) + +) \ No newline at end of file