diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-05 06:53:28 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-05 06:53:28 +0000 |
| commit | a5e5e79daeac1963a008d066cd9a9d6e2c83107e (patch) | |
| tree | e25ccb91b30e5aa45fbb0d9532b86b019df94504 | |
| parent | 36554f3801cdb733e1f17377f032845a604b0c24 (diff) | |
automatic import of python-complycubeopeneuler20.03
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-complycube.spec | 383 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 385 insertions, 0 deletions
@@ -0,0 +1 @@ +/complycube-1.1.4.tar.gz diff --git a/python-complycube.spec b/python-complycube.spec new file mode 100644 index 0000000..86c3185 --- /dev/null +++ b/python-complycube.spec @@ -0,0 +1,383 @@ +%global _empty_manifest_terminate_build 0 +Name: python-complycube +Version: 1.1.4 +Release: 1 +Summary: Official Python client for the ComplyCube API +License: MIT +URL: https://pypi.org/project/complycube/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/bb/0d/29e3e79ad36b11797f2449142c4942a8689cdf4717398d3eef78bdbe41c2/complycube-1.1.4.tar.gz +BuildArch: noarch + +Requires: python3-requests +Requires: python3-pyhumps + +%description +# ComplyCube Python Library + +The official python library for integrating with the ComplyCube API. + +Check out the [API integration docs](https://docs.complycube.com/api-reference/integration). + +Check out the [API reference](https://docs.complycube.com/api-reference/). + + +## Installation + +```sh +pip install complycube +``` + +### Requirements + +- Python 3.6+ + +## Getting Started + +import the client + +```python +from complycube import ComplyCubeClient +``` + +Initialise the ComplyCubeClient with the api key from your [developer dashboard.](https://portal.doccheck.com/developers) + +```python +cc_api = ComplyCubeClient(api_key='test_....') +``` +Create a new client and complete a standard check + +```python +input_client_dict = { + 'type':'person', + 'email':'a@b.com', + 'personDetails': { + 'firstName':'John', + 'lastName':'Smith' + } +} +cc_client = cc_api.clients.create(**input_client_dict) +check = cc_api.checks.create(cc_client.id,'standard_screening_check') +print(check) +``` + +Search for clients with the first name "John" +```python +for client in ccapi.clients.list(personDetails={'firstName','John'}): + print(client.email) +``` + +The auto_list function will handle api paging automatically via a generator and return a native object. +```python +for client in ccapi.clients.list(personDetails={'firstName','John'}): + print(client.email) +``` + +### Per-request Configuration + +As we use the requests library you can set per request configuration by using key/value pairs of any available requests parameter. + +Setting the timeout for client creation to 5 seconds + +```python +ccapi.clients.create(**input_client_dict, timeout=5) +``` + +Avoiding certification verification + +```python +ccapi.clients.create(**input_client_dict, verify=False) +``` + +We also support the following per request settings; + +Passing a specific api key for a single request + +```python +ccapi.clients.create(**input_client_dict, api_key='test_...') +``` + +Setting number of retries to attempt + +```python +ccapi.clients.create(**input_client_dict, retries=5) +``` + +### Configuring a Proxy + +A proxy can be configured by passing in proxy object to the request: + +```python +proxies = { + 'https': 'http://10.10.1.10:1080', +} +ccapi.clients.create(**input_client_dict proxies=proxies) +``` + +For additional information, news and our latest blogs visit us at https://www.complycube.com/ + + + +%package -n python3-complycube +Summary: Official Python client for the ComplyCube API +Provides: python-complycube +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-complycube +# ComplyCube Python Library + +The official python library for integrating with the ComplyCube API. + +Check out the [API integration docs](https://docs.complycube.com/api-reference/integration). + +Check out the [API reference](https://docs.complycube.com/api-reference/). + + +## Installation + +```sh +pip install complycube +``` + +### Requirements + +- Python 3.6+ + +## Getting Started + +import the client + +```python +from complycube import ComplyCubeClient +``` + +Initialise the ComplyCubeClient with the api key from your [developer dashboard.](https://portal.doccheck.com/developers) + +```python +cc_api = ComplyCubeClient(api_key='test_....') +``` +Create a new client and complete a standard check + +```python +input_client_dict = { + 'type':'person', + 'email':'a@b.com', + 'personDetails': { + 'firstName':'John', + 'lastName':'Smith' + } +} +cc_client = cc_api.clients.create(**input_client_dict) +check = cc_api.checks.create(cc_client.id,'standard_screening_check') +print(check) +``` + +Search for clients with the first name "John" +```python +for client in ccapi.clients.list(personDetails={'firstName','John'}): + print(client.email) +``` + +The auto_list function will handle api paging automatically via a generator and return a native object. +```python +for client in ccapi.clients.list(personDetails={'firstName','John'}): + print(client.email) +``` + +### Per-request Configuration + +As we use the requests library you can set per request configuration by using key/value pairs of any available requests parameter. + +Setting the timeout for client creation to 5 seconds + +```python +ccapi.clients.create(**input_client_dict, timeout=5) +``` + +Avoiding certification verification + +```python +ccapi.clients.create(**input_client_dict, verify=False) +``` + +We also support the following per request settings; + +Passing a specific api key for a single request + +```python +ccapi.clients.create(**input_client_dict, api_key='test_...') +``` + +Setting number of retries to attempt + +```python +ccapi.clients.create(**input_client_dict, retries=5) +``` + +### Configuring a Proxy + +A proxy can be configured by passing in proxy object to the request: + +```python +proxies = { + 'https': 'http://10.10.1.10:1080', +} +ccapi.clients.create(**input_client_dict proxies=proxies) +``` + +For additional information, news and our latest blogs visit us at https://www.complycube.com/ + + + +%package help +Summary: Development documents and examples for complycube +Provides: python3-complycube-doc +%description help +# ComplyCube Python Library + +The official python library for integrating with the ComplyCube API. + +Check out the [API integration docs](https://docs.complycube.com/api-reference/integration). + +Check out the [API reference](https://docs.complycube.com/api-reference/). + + +## Installation + +```sh +pip install complycube +``` + +### Requirements + +- Python 3.6+ + +## Getting Started + +import the client + +```python +from complycube import ComplyCubeClient +``` + +Initialise the ComplyCubeClient with the api key from your [developer dashboard.](https://portal.doccheck.com/developers) + +```python +cc_api = ComplyCubeClient(api_key='test_....') +``` +Create a new client and complete a standard check + +```python +input_client_dict = { + 'type':'person', + 'email':'a@b.com', + 'personDetails': { + 'firstName':'John', + 'lastName':'Smith' + } +} +cc_client = cc_api.clients.create(**input_client_dict) +check = cc_api.checks.create(cc_client.id,'standard_screening_check') +print(check) +``` + +Search for clients with the first name "John" +```python +for client in ccapi.clients.list(personDetails={'firstName','John'}): + print(client.email) +``` + +The auto_list function will handle api paging automatically via a generator and return a native object. +```python +for client in ccapi.clients.list(personDetails={'firstName','John'}): + print(client.email) +``` + +### Per-request Configuration + +As we use the requests library you can set per request configuration by using key/value pairs of any available requests parameter. + +Setting the timeout for client creation to 5 seconds + +```python +ccapi.clients.create(**input_client_dict, timeout=5) +``` + +Avoiding certification verification + +```python +ccapi.clients.create(**input_client_dict, verify=False) +``` + +We also support the following per request settings; + +Passing a specific api key for a single request + +```python +ccapi.clients.create(**input_client_dict, api_key='test_...') +``` + +Setting number of retries to attempt + +```python +ccapi.clients.create(**input_client_dict, retries=5) +``` + +### Configuring a Proxy + +A proxy can be configured by passing in proxy object to the request: + +```python +proxies = { + 'https': 'http://10.10.1.10:1080', +} +ccapi.clients.create(**input_client_dict proxies=proxies) +``` + +For additional information, news and our latest blogs visit us at https://www.complycube.com/ + + + +%prep +%autosetup -n complycube-1.1.4 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-complycube -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 1.1.4-1 +- Package Spec generated @@ -0,0 +1 @@ +71249b91df42883f5c92322745631b7a complycube-1.1.4.tar.gz |
