Skip to content

Commit 9e9bcee

Browse files
sync repo and git
1 parent 578a9c3 commit 9e9bcee

Some content is hidden

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

46 files changed

+4223
-321
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,5 @@ target/
6363
#Ipython Notebook
6464
.ipynb_checkpoints
6565

66-
.idea/
66+
.idea/
67+
.pypi

LICENSE.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2018 Aspose Pty Ltd
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
include *.md
2+
include LICENSE.txt

README.md

Lines changed: 12 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -18,35 +18,25 @@ From the command line:
1818
python setup.py install
1919
```
2020

21-
### Sample usage
22-
23-
Before fill all fields in /setting/config.json
24-
25-
Example:
26-
```json
27-
{
28-
"basePath":"https://api.aspose.cloud/v1.1",
29-
"authPath":"https://api.aspose.cloud/oauth2/token",
30-
"apiKey":"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
31-
"appSID":"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
32-
"testResult":"/testresult/",
33-
"testData":"/testdata/",
34-
"remoteFolder":"HtmlTestDoc/",
35-
"defaultUserAgent":"Webkit",
36-
"debugFile":"debug.log",
37-
"debug":false
38-
}
21+
#### From maven
22+
```code
23+
pip install asposehtmlcloud
3924
```
4025

4126

4227
The examples below show how your application have to initiate and convert url to image using Aspose.HTML Cloud library:
4328
```python
4429
import os
45-
from asposehtmlcloud.api.conversion_api import ConversionApi
30+
from asposehtmlcloud.configuration import Configuration
31+
from asposehtmlcloud.api.html_api import HtmlApi
4632
from asposehtmlcloud.rest import ApiException
4733
from shutil import copy2
48-
49-
api = ConversionApi()
34+
configuration = Configuration(apiKey="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
35+
appSid="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
36+
basePath="https://api.aspose.cloud/v1.1",
37+
authPath="https://api.aspose.cloud/oauth2/token",
38+
debug=True)
39+
api = HtmlApi(configuration)
5040

5141
source_url = "https://stallman.org/articles/anonymous-payments-thru-phones.html"
5242
try:
@@ -55,7 +45,7 @@ try:
5545
res = api.conversion_get_convert_document_to_image_by_url(
5646
source_url, out_format="jpeg", width=800, height=1000, left_margin=50, right_margin=100,
5747
top_margin=150, bottom_margin=200, x_resolution=300, y_resolution=300,
58-
folder=TestHelper.folder, storage=""
48+
folder="MY_REMOTE_FOLDER", storage=""
5949
)
6050

6151
src = str(res)

asposehtmlcloud/__init__.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# coding: utf-8
22

3-
# flake8: noqa
4-
53
"""
64
--------------------------------------------------------------------------------------------------------------------
75
<copyright company="Aspose" file="__init__.py">
@@ -32,10 +30,6 @@
3230

3331
from __future__ import absolute_import
3432

35-
# import apis into sdk package
36-
from asposehtmlcloud.api.document_api import DocumentApi
37-
3833
# import ApiClient
3934
from asposehtmlcloud.api_client import ApiClient
4035
from asposehtmlcloud.configuration import Configuration
41-
# import models into sdk package

0 commit comments

Comments
 (0)