Skip to content

Commit 11ffb92

Browse files
Added source code for Python SDK
1 parent 2490219 commit 11ffb92

File tree

118 files changed

+27103
-2
lines changed

Some content is hidden

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

118 files changed

+27103
-2
lines changed

.gitignore

Lines changed: 205 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,205 @@
1+
# User-specific files
2+
*.suo
3+
*.user
4+
*.sln.docstates
5+
6+
# Build results
7+
[Dd]ebug/
8+
[Rr]elease/
9+
x64/
10+
[Bb]in/
11+
[Oo]bj/
12+
# build folder is nowadays used for build scripts and should not be ignored
13+
#build/
14+
15+
# NuGet Packages
16+
*.nupkg
17+
# The packages folder can be ignored because of Package Restore
18+
**/packages/*
19+
# except build/, which is used as an MSBuild target.
20+
!**/packages/build/
21+
# Uncomment if necessary however generally it will be regenerated when needed
22+
#!**/packages/repositories.config
23+
24+
# MSTest test Results
25+
[Tt]est[Rr]esult*/
26+
[Bb]uild[Ll]og.*
27+
28+
*_i.c
29+
*_p.c
30+
*.ilk
31+
*.meta
32+
*.obj
33+
*.pch
34+
*.pdb
35+
*.pgc
36+
*.pgd
37+
*.rsp
38+
*.sbr
39+
*.tlb
40+
*.tli
41+
*.tlh
42+
*.tmp
43+
*.tmp_proj
44+
*.log
45+
*.vspscc
46+
*.vssscc
47+
.builds
48+
*.pidb
49+
*.log
50+
*.scc
51+
52+
# OS generated files #
53+
.DS_Store*
54+
Icon?
55+
56+
# Visual C++ cache files
57+
ipch/
58+
*.aps
59+
*.ncb
60+
*.opensdf
61+
*.sdf
62+
*.cachefile
63+
64+
# Visual Studio profiler
65+
*.psess
66+
*.vsp
67+
*.vspx
68+
69+
# Guidance Automation Toolkit
70+
*.gpState
71+
72+
# ReSharper is a .NET coding add-in
73+
_ReSharper*/
74+
*.[Rr]e[Ss]harper
75+
76+
# TeamCity is a build add-in
77+
_TeamCity*
78+
79+
# DotCover is a Code Coverage Tool
80+
*.dotCover
81+
82+
# NCrunch
83+
*.ncrunch*
84+
.*crunch*.local.xml
85+
86+
# Installshield output folder
87+
[Ee]xpress/
88+
89+
# DocProject is a documentation generator add-in
90+
DocProject/buildhelp/
91+
DocProject/Help/*.HxT
92+
DocProject/Help/*.HxC
93+
DocProject/Help/*.hhc
94+
DocProject/Help/*.hhk
95+
DocProject/Help/*.hhp
96+
DocProject/Help/Html2
97+
DocProject/Help/html
98+
99+
# Click-Once directory
100+
publish/
101+
102+
# Publish Web Output
103+
*.Publish.xml
104+
105+
# Windows Azure Build Output
106+
csx
107+
*.build.csdef
108+
109+
# Windows Store app package directory
110+
AppPackages/
111+
112+
# Others
113+
*.Cache
114+
ClientBin/
115+
[Ss]tyle[Cc]op.*
116+
~$*
117+
*~
118+
*.dbmdl
119+
*.[Pp]ublish.xml
120+
*.publishsettings
121+
modulesbin/
122+
tempbin/
123+
124+
# EPiServer Site file (VPP)
125+
AppData/
126+
127+
# RIA/Silverlight projects
128+
Generated_Code/
129+
130+
# Backup & report files from converting an old project file to a newer
131+
# Visual Studio version. Backup files are not needed, because we have git ;-)
132+
_UpgradeReport_Files/
133+
Backup*/
134+
UpgradeLog*.XML
135+
UpgradeLog*.htm
136+
137+
# vim
138+
*.txt~
139+
*.swp
140+
*.swo
141+
142+
# svn
143+
.svn
144+
145+
# Remainings from resolvings conflicts in Source Control
146+
*.orig
147+
148+
#LightSwitch generated files
149+
GeneratedArtifacts/
150+
_Pvt_Extensions/
151+
ModelManifest.xml
152+
153+
# =========================
154+
# Windows detritus
155+
# =========================
156+
157+
# Windows image file caches
158+
Thumbs.db
159+
ehthumbs.db
160+
161+
# Folder config file
162+
Desktop.ini
163+
164+
# Recycle Bin used on file shares
165+
$RECYCLE.BIN/
166+
167+
# Mac desktop service store files
168+
.DS_Store
169+
170+
# SASS Compiler cache
171+
.sass-cache
172+
173+
# Visual Studio 2014 CTP
174+
**/*.sln.ide
175+
176+
# Visual Studio temp something
177+
.vs/
178+
*.sln
179+
*.pyproj
180+
181+
# dotnet stuff
182+
project.lock.json
183+
184+
# VS 2015+
185+
*.vc.vc.opendb
186+
*.vc.db
187+
188+
# Rider
189+
.idea/
190+
191+
# Output folder used by Webpack or other FE stuff
192+
**/node_modules/*
193+
**/wwwroot/*
194+
195+
# SpecFlow specific
196+
*.feature.cs
197+
*.feature.xlsx.*
198+
*.Specs_*.html
199+
200+
src/Settings/servercreds.json
201+
202+
*.pyc
203+
dist/
204+
*.egg-info
205+

.swagger-codegen-ignore

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Swagger Codegen Ignore
2+
# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen
3+
4+
# Use this file to prevent files from being overwritten by the generator.
5+
# The patterns follow closely to .gitignore or .dockerignore.
6+
7+
# As an example, the C# client generator defines ApiClient.cs.
8+
# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line:
9+
#ApiClient.cs
10+
11+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
12+
#foo/*/qux
13+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14+
15+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16+
#foo/**/qux
17+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18+
19+
# You can also negate patterns with an exclamation (!).
20+
# For example, you can ignore all files in a docs folder with the file extension .md:
21+
#docs/*.md
22+
# Then explicitly reverse the ignore rule for a single file:
23+
#!docs/README.md
24+
25+
*.sh
26+
.travis.yml
27+
.gitignore
28+
*.md
29+
docs/**
30+
test/**
31+
32+
# Ignore other files and folders
33+
*requirements.txt
34+
tox.ini
35+
setup.py

LICENSE

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 the license file
2+
include LICENSE

README.md

Lines changed: 52 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,52 @@
1-
# aspose-pdf-cloud-python
2-
Python library for communicating with the Aspose.Pdf for Cloud API
1+
# Aspose.Pdf for Cloud
2+
[Aspose.Pdf for Cloud](https://products.aspose.cloud/pdf/cloud) is a true REST API that enables you to perform a wide range of document processing operations including creation, manipulation, conversion and rendering of Pdf documents in the cloud.
3+
4+
Our Cloud SDKs are wrappers around REST API in various programming languages, allowing you to process documents in language of your choice quickly and easily, gaining all benefits of strong types and IDE highlights. This repository contains new generation SDKs for Aspose.Pdf for Cloud and examples.
5+
6+
These SDKs are now fully supported. If you have any questions, see any bugs or have enhancement request, feel free to reach out to us at [Free Support Forums](https://forum.aspose.cloud/c/pdf).
7+
8+
## Usage
9+
APIs of this SDK can be called as follows:
10+
11+
```python
12+
from __future__ import absolute_import
13+
14+
import os
15+
import sys
16+
17+
import asposepdfcloud
18+
from asposepdfcloud.apis.pdf_api import PdfApi
19+
from asposepdfcloud.rest import ApiException
20+
from asposepdfcloud.models.annotation_response import AnnotationResponse
21+
22+
class SdkUsage(object):
23+
24+
def __init__(self):
25+
# Get App key and App SID from https://cloud.aspose.com
26+
self.pdf_api_client = asposepdfcloud.api_client.ApiClient(
27+
app_key='app_key',
28+
app_sid='app_sid')
29+
30+
self.pdf_api = PdfApi(self.pdf_api_client)
31+
self.output_path = str('output_location_path')
32+
self.temp_folder = 'TempPdf'
33+
34+
def getPageAnnotation(self):
35+
file_name = 'PdfWithAnnotations.pdf'
36+
page_number = 2
37+
response = self.pdf_api.get_page_annotations(file_name, page_number, folder=self.temp_folder)
38+
39+
```
40+
## Unit Tests
41+
Aspose PDF SDK includes a suite of unit tests within the "test" subdirectory. These Unit Tests also serves as examples of how to use the Aspose PDF SDK.
42+
43+
## Licensing
44+
All Aspose.Pdf for Cloud SDKs are licensed under [MIT License](LICENSE).
45+
46+
## Resources
47+
+ [**Website**](https://www.aspose.cloud)
48+
+ [**Product Home**](https://products.aspose.cloud/pdf/cloud)
49+
+ [**Documentation**](https://docs.aspose.cloud/display/pdfcloud/Home)
50+
+ [**Free Support Forum**](https://forum.aspose.cloud/c/pdf)
51+
+ [**Paid Support Helpdesk**](https://helpdesk.aspose.cloud/)
52+
+ [**Blog**](https://blog.aspose.cloud/category/aspose-products/aspose-pdf-product-family/)

0 commit comments

Comments
 (0)