summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-18 03:37:42 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-18 03:37:42 +0000
commitd260cbe5d2be659291ec9f02d7bb803d9e05751e (patch)
tree4d26b82392a34808111b12780bf8293e2a0ce30e
parent220fd4e5272cc17040a20afe65e4d9340a838372 (diff)
automatic import of python-lendsmart-api
-rw-r--r--.gitignore1
-rw-r--r--python-lendsmart-api.spec493
-rw-r--r--sources1
3 files changed, 495 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..fab4cd8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/lendsmart_api-2.4.tar.gz
diff --git a/python-lendsmart-api.spec b/python-lendsmart-api.spec
new file mode 100644
index 0000000..6047f3a
--- /dev/null
+++ b/python-lendsmart-api.spec
@@ -0,0 +1,493 @@
+%global _empty_manifest_terminate_build 0
+Name: python-lendsmart-api
+Version: 2.4
+Release: 1
+Summary: The official python SDK for LendSmart API v1
+License: MIT
+URL: https://bitbucket.org/lendsmartlabs/lendsmart_py/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/d0/fb/877418ac4fc3654b959c736cc78c25941c4fa5f2d1189f3d6c5d356ea6e6/lendsmart_api-2.4.tar.gz
+BuildArch: noarch
+
+Requires: python3-future
+Requires: python3-requests
+Requires: python3-enum34
+Requires: python3-retry
+
+%description
+# lendsmart_api
+
+*python*
+
+The official python library for the [Lendsmart API v1](https://lendsmartlabs.postman.co)` in python.
+
+**This library is currently in beta.**
+
+[![PyPI](https://img.shields.io/pypi/v/lendsmart-api.svg)](https://pypi.python.org/pypi/lendsmart-api)
+[![PyPI](https://img.shields.io/pypi/pyversions/lendsmart-api.svg)](https://pypi.python.org/pypi/lendsmart-api)
+
+[https://badge.fury.io/py/lendsmart-api.svg](https://badge.fury.io/py/lendsmart-api)
+
+
+
+## Pre reqs
+
+- python 3
+
+- install virtualenv using below command
+
+```
+ pip install virtualenv
+```
+
+## Activate virtual environment
+
+```
+ . ./venv/bin/activate
+```
+
+## Installation
+
+```
+ pip install lendsmart_api
+```
+
+# Usage
+
+You will need the service account private key files to access Lendsmart.
+
+Only a limited set of API is supported.
+
+## Client
+
+### Create client
+
+```
+
+```
+
+### Update Document
+
+
+```
+
+
+```
+
+
+
+# Building from Source
+
+
+To build and install this package:
+
+- Clone this repository
+
+```
+
+ cd core_api
+
+ virtualenv venv
+
+ ./setup.py install
+```
+
+# Testing individually
+
+Make sure the `prereqs`, and `building from source` are complete
+
+```
+
+ cd lendsmart_python
+
+ . venv/bin/activate
+
+ python3 get_documents_test.py
+```
+# Local testing with lendsmart_api package
+# Set environment path to your local file path in your python file
+
+```
+import sys
+sys.path.append('/home/lendsmart/code/lendsmart/workspace/py_lscommon/core_api/')
+```
+# remove old package which is in virtual environment
+```
+rm -r /venv/lib/python3.8/site-packages/lendsmart_api
+```
+# Auto tests
+
+Tests live in the ``tests`` directory. When invoking tests, make sure you are
+in the root directory of this project. To run the full suite across all
+supported python versions, use tox_:
+
+```
+
+ tox
+
+```
+
+Running tox also runs pylint and coverage reports.
+
+The test suite uses fixtures stored as JSON in `test/fixtures`. These files
+contain sanitized JSON responses from the API - the file name is the URL called
+to produce the response, replacing any slashes with underscores.
+
+Test classes should extend `test.base.ClientBaseCase`. This provides them
+with `self.client`, a `LendsmartClient` object that is set up to work with
+tests. Importantly, any GET request made by this object will be mocked to
+retrieve data from the test fixtures. This includes lazy-loaded objects using
+this client (and by extension related models).
+
+When testing against requests other than GET requests, `self.mock_post` (and
+equivalent methods for other HTTP verbs) can be used in a ``with`` block to
+mock out the intended request type.
+
+[tox](http://tox.readthedocs.io)
+
+# License
+
+MIT
+
+# Author
+
+Lendsmart Inc, USA
+
+
+
+
+%package -n python3-lendsmart-api
+Summary: The official python SDK for LendSmart API v1
+Provides: python-lendsmart-api
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-lendsmart-api
+# lendsmart_api
+
+*python*
+
+The official python library for the [Lendsmart API v1](https://lendsmartlabs.postman.co)` in python.
+
+**This library is currently in beta.**
+
+[![PyPI](https://img.shields.io/pypi/v/lendsmart-api.svg)](https://pypi.python.org/pypi/lendsmart-api)
+[![PyPI](https://img.shields.io/pypi/pyversions/lendsmart-api.svg)](https://pypi.python.org/pypi/lendsmart-api)
+
+[https://badge.fury.io/py/lendsmart-api.svg](https://badge.fury.io/py/lendsmart-api)
+
+
+
+## Pre reqs
+
+- python 3
+
+- install virtualenv using below command
+
+```
+ pip install virtualenv
+```
+
+## Activate virtual environment
+
+```
+ . ./venv/bin/activate
+```
+
+## Installation
+
+```
+ pip install lendsmart_api
+```
+
+# Usage
+
+You will need the service account private key files to access Lendsmart.
+
+Only a limited set of API is supported.
+
+## Client
+
+### Create client
+
+```
+
+```
+
+### Update Document
+
+
+```
+
+
+```
+
+
+
+# Building from Source
+
+
+To build and install this package:
+
+- Clone this repository
+
+```
+
+ cd core_api
+
+ virtualenv venv
+
+ ./setup.py install
+```
+
+# Testing individually
+
+Make sure the `prereqs`, and `building from source` are complete
+
+```
+
+ cd lendsmart_python
+
+ . venv/bin/activate
+
+ python3 get_documents_test.py
+```
+# Local testing with lendsmart_api package
+# Set environment path to your local file path in your python file
+
+```
+import sys
+sys.path.append('/home/lendsmart/code/lendsmart/workspace/py_lscommon/core_api/')
+```
+# remove old package which is in virtual environment
+```
+rm -r /venv/lib/python3.8/site-packages/lendsmart_api
+```
+# Auto tests
+
+Tests live in the ``tests`` directory. When invoking tests, make sure you are
+in the root directory of this project. To run the full suite across all
+supported python versions, use tox_:
+
+```
+
+ tox
+
+```
+
+Running tox also runs pylint and coverage reports.
+
+The test suite uses fixtures stored as JSON in `test/fixtures`. These files
+contain sanitized JSON responses from the API - the file name is the URL called
+to produce the response, replacing any slashes with underscores.
+
+Test classes should extend `test.base.ClientBaseCase`. This provides them
+with `self.client`, a `LendsmartClient` object that is set up to work with
+tests. Importantly, any GET request made by this object will be mocked to
+retrieve data from the test fixtures. This includes lazy-loaded objects using
+this client (and by extension related models).
+
+When testing against requests other than GET requests, `self.mock_post` (and
+equivalent methods for other HTTP verbs) can be used in a ``with`` block to
+mock out the intended request type.
+
+[tox](http://tox.readthedocs.io)
+
+# License
+
+MIT
+
+# Author
+
+Lendsmart Inc, USA
+
+
+
+
+%package help
+Summary: Development documents and examples for lendsmart-api
+Provides: python3-lendsmart-api-doc
+%description help
+# lendsmart_api
+
+*python*
+
+The official python library for the [Lendsmart API v1](https://lendsmartlabs.postman.co)` in python.
+
+**This library is currently in beta.**
+
+[![PyPI](https://img.shields.io/pypi/v/lendsmart-api.svg)](https://pypi.python.org/pypi/lendsmart-api)
+[![PyPI](https://img.shields.io/pypi/pyversions/lendsmart-api.svg)](https://pypi.python.org/pypi/lendsmart-api)
+
+[https://badge.fury.io/py/lendsmart-api.svg](https://badge.fury.io/py/lendsmart-api)
+
+
+
+## Pre reqs
+
+- python 3
+
+- install virtualenv using below command
+
+```
+ pip install virtualenv
+```
+
+## Activate virtual environment
+
+```
+ . ./venv/bin/activate
+```
+
+## Installation
+
+```
+ pip install lendsmart_api
+```
+
+# Usage
+
+You will need the service account private key files to access Lendsmart.
+
+Only a limited set of API is supported.
+
+## Client
+
+### Create client
+
+```
+
+```
+
+### Update Document
+
+
+```
+
+
+```
+
+
+
+# Building from Source
+
+
+To build and install this package:
+
+- Clone this repository
+
+```
+
+ cd core_api
+
+ virtualenv venv
+
+ ./setup.py install
+```
+
+# Testing individually
+
+Make sure the `prereqs`, and `building from source` are complete
+
+```
+
+ cd lendsmart_python
+
+ . venv/bin/activate
+
+ python3 get_documents_test.py
+```
+# Local testing with lendsmart_api package
+# Set environment path to your local file path in your python file
+
+```
+import sys
+sys.path.append('/home/lendsmart/code/lendsmart/workspace/py_lscommon/core_api/')
+```
+# remove old package which is in virtual environment
+```
+rm -r /venv/lib/python3.8/site-packages/lendsmart_api
+```
+# Auto tests
+
+Tests live in the ``tests`` directory. When invoking tests, make sure you are
+in the root directory of this project. To run the full suite across all
+supported python versions, use tox_:
+
+```
+
+ tox
+
+```
+
+Running tox also runs pylint and coverage reports.
+
+The test suite uses fixtures stored as JSON in `test/fixtures`. These files
+contain sanitized JSON responses from the API - the file name is the URL called
+to produce the response, replacing any slashes with underscores.
+
+Test classes should extend `test.base.ClientBaseCase`. This provides them
+with `self.client`, a `LendsmartClient` object that is set up to work with
+tests. Importantly, any GET request made by this object will be mocked to
+retrieve data from the test fixtures. This includes lazy-loaded objects using
+this client (and by extension related models).
+
+When testing against requests other than GET requests, `self.mock_post` (and
+equivalent methods for other HTTP verbs) can be used in a ``with`` block to
+mock out the intended request type.
+
+[tox](http://tox.readthedocs.io)
+
+# License
+
+MIT
+
+# Author
+
+Lendsmart Inc, USA
+
+
+
+
+%prep
+%autosetup -n lendsmart-api-2.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-lendsmart-api -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Thu May 18 2023 Python_Bot <Python_Bot@openeuler.org> - 2.4-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..8e22657
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+1fdc64b4b7f7a8e58469948b704984a9 lendsmart_api-2.4.tar.gz