Skip to content

Commit

Permalink
Python SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
YaroslawEkimov committed Jul 30, 2018
1 parent 92d25ba commit 736d0b2
Show file tree
Hide file tree
Showing 569 changed files with 87,197 additions and 46 deletions.
51 changes: 6 additions & 45 deletions .gitignore
Expand Up @@ -8,6 +8,7 @@ __pycache__/

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
Expand All @@ -19,11 +20,10 @@ lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST
.idea/*

# PyInstaller
# Usually these files are written by a python script from a template
Expand All @@ -43,62 +43,23 @@ htmlcov/
.cache
nosetests.xml
coverage.xml
*.cover
*,cover
.hypothesis/
.pytest_cache/
venv/
.python-version

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
#Ipython Notebook
.ipynb_checkpoints

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
23 changes: 23 additions & 0 deletions .swagger-codegen-ignore
@@ -0,0 +1,23 @@
# Swagger Codegen Ignore
# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen

# Use this file to prevent files from being overwritten by the generator.
# The patterns follow closely to .gitignore or .dockerignore.

# As an example, the C# client generator defines ApiClient.cs.
# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line:
#ApiClient.cs

# You can match any string of characters against a directory, file or extension with a single asterisk (*):
#foo/*/qux
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux

# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
#foo/**/qux
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux

# You can also negate patterns with an exclamation (!).
# For example, you can ignore all files in a docs folder with the file extension .md:
#docs/*.md
# Then explicitly reverse the ignore rule for a single file:
#!docs/README.md
1 change: 1 addition & 0 deletions .swagger-codegen/VERSION
@@ -0,0 +1 @@
2.3.0-SNAPSHOT
14 changes: 14 additions & 0 deletions .travis.yml
@@ -0,0 +1,14 @@
# ref: https://docs.travis-ci.com/user/languages/python
language: python
python:
- "2.7"
- "3.2"
- "3.3"
- "3.4"
- "3.5"
#- "3.5-dev" # 3.5 development branch
#- "nightly" # points to the latest development branch e.g. 3.6-dev
# command to install dependencies
install: "pip install -r requirements.txt"
# command to run tests
script: nosetests
403 changes: 402 additions & 1 deletion README.md

Large diffs are not rendered by default.

Binary file added TestData/Common/Aspose Logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added TestData/Common/aspose-cloud.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added TestData/Common/test_doc.docx
Binary file not shown.
Binary file added TestData/Common/test_multi_pages.docx
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added TestData/DocumentActions/ConvertDocument/45.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
��AB@>:0
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,10 @@
{
"NewDataSet": {
"info": {
"FirstName": "Alexey",
"LastName": "Noskov",
"City": "Kharkov",
"Company": "Aspose"
}
}
}
Binary file not shown.
49 changes: 49 additions & 0 deletions TestData/DocumentActions/MailMerge/SampleExecuteTemplateData.txt
@@ -0,0 +1,49 @@
<?xml version="1.0" encoding="utf-8"?>
<Orders xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="OrdersSchema.xsd">
<Order>
<Address>
<Number>23</Number>
<Street>Nelson Street</Street>
<Suburb>Howick</Suburb>
<City>Auckland</City>
</Address>
<PhoneNumber>543 1234</PhoneNumber>
<Date>03/01/2010</Date>
<Total>14.00</Total>
<Item>
<Name>BBQ Chicken Pizza</Name>
<Price>6.00</Price>
<Quantity>1</Quantity>
<ItemTotal>6.00</ItemTotal>
</Item>
<Item>
<Name>1.5 Litre Coke</Name>
<Price>4.00</Price>
<Quantity>2</Quantity>
<ItemTotal>8.00</ItemTotal>
</Item>
</Order>
<Order>
<Address>
<Number>10</Number>
<Street>Parkville Avenue</Street>
<Suburb>Pakuranga</Suburb>
<City>Auckland</City>
</Address>
<PhoneNumber>548 7342</PhoneNumber>
<Date>05/03/2010</Date>
<Total>6.00</Total>
<Item>
<Name>Hawaiian Pizza</Name>
<Price>4.00</Price>
<Quantity>1</Quantity>
<ItemTotal>4.00</ItemTotal>
</Item>
<Item>
<Name>Fries</Name>
<Price>1.00</Price>
<Quantity>2</Quantity>
<ItemTotal>2.00</ItemTotal>
</Item>
</Order>
</Orders>
Binary file not shown.
@@ -0,0 +1,7 @@
<Fields>
<FullName>Farooq Sheikh</FullName>
<Company>Aspose Pty Ltd</Company>
<Address>Suite 163</Address>
<Address2>79 Longueville Road</Address2>
<City>Lane Cove</City>
</Fields>
11 changes: 11 additions & 0 deletions TestData/DocumentActions/MailMerge/TestCleanupOptionsData.xml
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<Items xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Item>
<Caption>Caption1</Caption>
<Data>Data portion 1</Data>
</Item>
<Item>
<Caption>Caption2</Caption>
<Data>Data portion 2</Data>
</Item>
</Items>
11 changes: 11 additions & 0 deletions TestData/DocumentActions/MailMerge/TestDataWithRemoteImages.xml
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<Items xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Item>
<Caption>This is the first caption !!!</Caption>
<Img>http://upload.wikimedia.org/wikipedia/commons/thumb/e/e0/Nagasakibomb.jpg/300px-Nagasakibomb.jpg</Img>
</Item>
<Item>
<Caption>This is the second caption !!!</Caption>
<Img>http://upload.wikimedia.org/wikipedia/commons/thumb/c/c2/Fat_man.jpg/150px-Fat_man.jpg</Img>
</Item>
</Items>
@@ -0,0 +1 @@
<?xml version="1.0" encoding="utf-8" ?><root><data format="html">&lt;html&gt;&lt;head&gt;&lt;style type=&quot;text/css&quot;&gt;h2{color:green} .color_red{color:red} .color_green{color:green} .color_magenta{color:magenta} .color_olive{color:olive} .color_teal{color:teal}&lt;/style&gt;&lt;/head&gt;&lt;body&gt;&lt;h2&gt;Table&lt;/h2&gt;&lt;table border=&quot;2&quot; cellspacing=&quot;0&quot; cellpadding=&quot;4&quot;&gt;&lt;tr&gt;&lt;th class=&quot;color_red&quot;&gt;Column 1&lt;/th&gt;&lt;th class=&quot;color_green&quot;&gt;Column 2&lt;/th&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;color_magenta&quot;&gt;Value 1.1&lt;/td&gt;&lt;td class=&quot;color_olive&quot;&gt;Value 1.2&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;color_teal&quot;&gt;Value 2.1&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;h2&gt;Div&lt;/h2&gt;&lt;div class=&quot;color_olive&quot;&gt;Outer text&lt;div class=&quot;color_magenta&quot;&gt;Inner text&lt;/div&gt;Outer text&lt;/div&gt;&lt;h2&gt;Image&lt;/h2&gt;&lt;br/&gt;&lt;img src=&quot;data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAADUUlEQVR42lWTWUwTURSGaUtIKY5QweISTUzceDGu0Rj1xURjTNQEE+ODGn0hPhBEQdqZztahBbrAtFih1Fprh9IBiVLLErZSU7BUoS7VqNH44ovx0S0ovdfO4Ez04cw9Ofec7/5zzr15NEnkUxSVFx8ObZ1x7nzHN6z9nOhnzOFwWCnECcKoEFbBRrrp6iF/XRvD0BoplkdTuAiIhtt3P3Fu+jJlKlkM1WoXLFjVeSnpXrC94gV3ciJp1X0L1K7+NtDfvXdpj1TmmUwm8QTfLa867T+ceWTSwO5r5b87XNaDEoBrv3p2Ai+AU1Qh5OiDGS4UXi4roAisQHBiYfJS2obAVPMyELYcGxViOIaKcLaNLXzadej5nBUBPXW6hdYW0z4RQOYUXK2tUfr8QeXL0Kn4JKEBk7QWdtrrLggJJEmoCBxVCf50qIaaa0HABFkEPZaLNnGfwPNFGV0u05Y554bvMQoBPLbxs9t9QydJpHP/KayRbsf+pG1NdgTTgDuGXa8dbS41ZtArxaQYT1WlHVqYaloGOcvJIan4X2MdViTl3vExbS+GPfXlvzzutj1LPch9HrYea59t0YIRtAAO+PQuIWYwNKikYty41Iuk/3TvMzsCB9HcQR7msgzgjZs7Z5rLQPR6PojeJW2d3oDCoG/IlwAYqlexbp/i9eB19ziuBoMoAlrR03YZ0G8+0JFhS8EjuhD6zWfuCTEjppcBOKYX1bwaqA5MM2oYZ4pBy7XjrAyY7sPqU01FcNZW/jtwZeXXVpt5u1RM4JhYzHFBddqz5/28fUU2NwngtVUbZUCE79o6x67/MYiXLiSbS8D9xp1vI7znkLvDK07A5/MiT7mzdxMMAsdMqxaiWDHkgzePigBUXy9KTfdWeVKNSjjPrvv5uKkYxszlIHX7eDLeVfkgbt30bt5eAlOOtT9nLRrI03szrOumOtcb4SrTSj2KKfr4nuUZ7kR8HFPAYXLlYqxRl43TGjjTWAhHCC1MNK/+lWA0cJLRgfsh95G/N1H136z7+BCSuHMuMEGVLo4a1XCKKcuO0WXZBw1FcNighmPWbe8jIeeJpdFiCrkHguWUyM92NBKseBut8T92bfsw66z49IyrHH2T5CvlqeCYUvL/ANIZ7+ohXSdWAAAAAElFTkSuQmCC&quot;&gt;&lt;/body&gt;&lt;/html&gt;</data></root>
Binary file not shown.
49 changes: 49 additions & 0 deletions TestData/DocumentActions/MailMerge/TestExecuteTemplateData.txt
@@ -0,0 +1,49 @@
<?xml version="1.0" encoding="utf-8"?>
<Orders xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="OrdersSchema.xsd">
<Order>
<Address>
<Number>23</Number>
<Street>Nelson Street</Street>
<Suburb>Howick</Suburb>
<City>Auckland</City>
</Address>
<PhoneNumber>543 1234</PhoneNumber>
<Date>03/01/2010</Date>
<Total>14.00</Total>
<Item>
<Name>BBQ Chicken Pizza</Name>
<Price>6.00</Price>
<Quantity>1</Quantity>
<ItemTotal>6.00</ItemTotal>
</Item>
<Item>
<Name>1.5 Litre Coke</Name>
<Price>4.00</Price>
<Quantity>2</Quantity>
<ItemTotal>8.00</ItemTotal>
</Item>
</Order>
<Order>
<Address>
<Number>10</Number>
<Street>Parkville Avenue</Street>
<Suburb>Pakuranga</Suburb>
<City>Auckland</City>
</Address>
<PhoneNumber>548 7342</PhoneNumber>
<Date>05/03/2010</Date>
<Total>6.00</Total>
<Item>
<Name>Hawaiian Pizza</Name>
<Price>4.00</Price>
<Quantity>1</Quantity>
<ItemTotal>4.00</ItemTotal>
</Item>
<Item>
<Name>Fries</Name>
<Price>1.00</Price>
<Quantity>2</Quantity>
<ItemTotal>2.00</ItemTotal>
</Item>
</Order>
</Orders>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
36 changes: 36 additions & 0 deletions TestData/DocumentElements/DrawingObjects/sampleDrawingObject.txt
@@ -0,0 +1,36 @@
<DrawingObject>
<Link>
<Href>http://api-dev.aspose.cloud/v1.1/words/TestGetDocumentDrawingObjectByIndex.docx/sections/0/paragraphs/1/drawingObjects/0?folder=Temp%5cSdkTests%5cTestData%5cDocumentElements%5cDrawingObjects</Href>
<Rel>self</Rel>
</Link>
<NodeId>0.1.0</NodeId>
<RelativeHorizontalPosition>Column</RelativeHorizontalPosition>
<RelativeVerticalPosition>TextFrameDefault</RelativeVerticalPosition>
<WrapType>Inline</WrapType>
<RenderLinks>
<WordsApiLink>
<Href>http://api-dev.aspose.cloud/v1.1/words/TestGetDocumentDrawingObjectByIndex.docx/sections/0/paragraphs/1/drawingObjects/0?folder=Temp%5cSdkTests%5cTestData%5cDocumentElements%5cDrawingObjects&amp;format=jpeg</Href>
<Rel>self</Rel>
</WordsApiLink>
<WordsApiLink>
<Href>http://api-dev.aspose.cloud/v1.1/words/TestGetDocumentDrawingObjectByIndex.docx/sections/0/paragraphs/1/drawingObjects/0?folder=Temp%5cSdkTests%5cTestData%5cDocumentElements%5cDrawingObjects&amp;format=tiff</Href>
<Rel>self</Rel>
</WordsApiLink>
<WordsApiLink>
<Href>http://api-dev.aspose.cloud/v1.1/words/TestGetDocumentDrawingObjectByIndex.docx/sections/0/paragraphs/1/drawingObjects/0?folder=Temp%5cSdkTests%5cTestData%5cDocumentElements%5cDrawingObjects&amp;format=png</Href>
<Rel>self</Rel>
</WordsApiLink>
<WordsApiLink>
<Href>http://api-dev.aspose.cloud/v1.1/words/TestGetDocumentDrawingObjectByIndex.docx/sections/0/paragraphs/1/drawingObjects/0?folder=Temp%5cSdkTests%5cTestData%5cDocumentElements%5cDrawingObjects&amp;format=bmp</Href>
<Rel>self</Rel>
</WordsApiLink>
</RenderLinks>
<Width>300</Width>
<Height>300</Height>
<ImageDataLink>
<Href>http://api-dev.aspose.cloud/v1.1/words/TestGetDocumentDrawingObjectByIndex.docx/sections/0/paragraphs/1/drawingObjects/0/ImageData?folder=Temp%5cSdkTests%5cTestData%5cDocumentElements%5cDrawingObjects</Href>
<Rel>self</Rel>
</ImageDataLink>
<Left>0</Left>
<Top>0</Top>
</DrawingObject>
Binary file not shown.
Binary file added TestData/DocumentElements/Fields/GetField.docx
Binary file not shown.
Binary file added TestData/DocumentElements/Footnotes/Footnote.doc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added TestData/DocumentElements/Runs/Run.doc
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 736d0b2

Please sign in to comment.