Skip to content

Commit 2e9d553

Browse files
committed
first commit
0 parents  commit 2e9d553

Some content is hidden

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

44 files changed

+4850
-0
lines changed

.gitignore

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
env/
12+
build/
13+
develop-eggs/
14+
dist/
15+
downloads/
16+
eggs/
17+
.eggs/
18+
lib/
19+
lib64/
20+
parts/
21+
sdist/
22+
var/
23+
*.egg-info/
24+
.installed.cfg
25+
*.egg
26+
27+
# PyInstaller
28+
# Usually these files are written by a python script from a template
29+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
30+
*.manifest
31+
*.spec
32+
33+
# Installer logs
34+
pip-log.txt
35+
pip-delete-this-directory.txt
36+
37+
# Unit test / coverage reports
38+
htmlcov/
39+
.tox/
40+
.coverage
41+
.coverage.*
42+
.cache
43+
nosetests.xml
44+
coverage.xml
45+
*,cover
46+
.hypothesis/
47+
venv/
48+
.python-version
49+
50+
# Translations
51+
*.mo
52+
*.pot
53+
54+
# Django stuff:
55+
*.log
56+
57+
# Sphinx documentation
58+
docs/_build/
59+
60+
# PyBuilder
61+
target/
62+
63+
#Ipython Notebook
64+
.ipynb_checkpoints
65+
/.vscode

.swagger-codegen-ignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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

.travis.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# ref: https://docs.travis-ci.com/user/languages/python
2+
language: python
3+
python:
4+
- "2.7"
5+
- "3.2"
6+
- "3.3"
7+
- "3.4"
8+
- "3.5"
9+
#- "3.5-dev" # 3.5 development branch
10+
#- "nightly" # points to the latest development branch e.g. 3.6-dev
11+
# command to install dependencies
12+
install: "pip install -r requirements.txt"
13+
# command to run tests
14+
script: nosetests

README.md

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
# aspose-digaram-cloud-python
2+
3+
Aspose.Digaram Cloud SDK for Python allows you to use Aspose.Digaram APIs in your Python applications
4+
5+
- Package version: 18.10
6+
- Build package: io.swagger.codegen.languages.PythonClientCodegen
7+
8+
## Requirements.
9+
10+
Python 2.7 and 3.5
11+
12+
## Installation & Usage
13+
### pip install
14+
15+
```sh
16+
pip install asposeDiagramcloud
17+
```
18+
(you may need to run `pip` with root permission: `sudo pip install asposeDiagramcloud`)
19+
20+
Then import the package:
21+
```python
22+
import asposeDiagramcloud
23+
```
24+
25+
### Setuptools
26+
27+
Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
28+
29+
```sh
30+
python setup.py install --user
31+
```
32+
(or `sudo python setup.py install` to install the package for all users)
33+
34+
Then import the package:
35+
```python
36+
import asposeDiagramcloud
37+
```
38+
39+
## Getting Started
40+
41+
Please follow the [installation procedure](#installation--usage) and then run the following:
42+
43+
```python
44+
from __future__ import print_function
45+
import time
46+
import asposeDiagramcloud
47+
from asposeDiagramcloud.rest import ApiException
48+
from pprint import pprint
49+
# create an instance of the API class
50+
api_instance = asposeDiagramcloud.DiagramFileApi()
51+
name = 'name_example' # str | The document name.
52+
format = 'format_example' # str | The exported file format. (optional)
53+
folder = 'folder_example' # str | The document folder. (optional)
54+
storage = 'storage_example' # str | storage name. (optional)
55+
56+
try:
57+
# Read document info or export.
58+
api_response = api_instance.diagram_file_get_diagram(name, format=format, folder=folder, storage=storage)
59+
pprint(api_response)
60+
except ApiException as e:
61+
print("Exception when calling DiagramFileApi->diagram_file_get_diagram: %s\n" % e)
62+
63+
```
64+
65+
## Documentation for API Endpoints
66+
67+
All URIs are relative to *https://api.aspose.cloud/v1.1/*
68+
69+
Class | Method | HTTP request | Description
70+
------------ | ------------- | ------------- | -------------
71+
*DiagramFileApi* | [**diagram_file_get_diagram**](docs/DiagramFileApi.md#diagram_file_get_diagram) | **GET** /diagram/{name} | Read document info or export.
72+
*DiagramFileApi* | [**diagram_file_post_save_as**](docs/DiagramFileApi.md#diagram_file_post_save_as) | **POST** /diagram/{name}/SaveAs | Convert document and save result to storage.
73+
*DiagramFileApi* | [**diagram_file_put_create**](docs/DiagramFileApi.md#diagram_file_put_create) | **PUT** /diagram/{name} | Create new diagram and save result to storage.
74+
*DiagramFileApi* | [**diagram_file_put_upload**](docs/DiagramFileApi.md#diagram_file_put_upload) | **PUT** /diagram/{name}/upload | Upload file and save result to storage.
75+
*OAuthApi* | [**o_auth_post**](docs/OAuthApi.md#o_auth_post) | **POST** /oauth2/token | Get Access token
76+
77+
78+
## Documentation For Models
79+
80+
- [AccessTokenResponse](docs/AccessTokenResponse.md)
81+
- [DiagramModel](docs/DiagramModel.md)
82+
- [FileFormatRequest](docs/FileFormatRequest.md)
83+
- [Link](docs/Link.md)
84+
- [PageModel](docs/PageModel.md)
85+
- [SaaSposeResponse](docs/SaaSposeResponse.md)
86+
- [SaveResult](docs/SaveResult.md)
87+
- [SharpModel](docs/SharpModel.md)
88+
- [DiagramResponse](docs/DiagramResponse.md)
89+
- [SaveResponse](docs/SaveResponse.md)
90+
91+
92+
## Documentation For Authorization
93+
94+
95+
## appsid
96+
97+
- **Type**: API key
98+
- **API key parameter name**: appsid
99+
- **Location**: URL query string
100+
101+
## oauth
102+
103+
- **Type**: OAuth
104+
- **Flow**: implicit
105+
- **Authorization URL**:
106+
- **Scopes**:
107+
- **write:pets**: modify pets in your account
108+
109+
## signature
110+
111+
- **Type**: API key
112+
- **API key parameter name**: signature
113+
- **Location**: URL query string
114+
115+
116+
117+

asposeDiagramcloud/__init__.py

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# coding: utf-8
2+
3+
"""
4+
Web API Swagger specification
5+
6+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
7+
8+
OpenAPI spec version: 1.0
9+
10+
Generated by: https://github.com/swagger-api/swagger-codegen.git
11+
"""
12+
13+
14+
from __future__ import absolute_import
15+
16+
# import models into sdk package
17+
from .models.access_token_response import AccessTokenResponse
18+
from .models.diagram_model import DiagramModel
19+
from .models.file_format_request import FileFormatRequest
20+
from .models.link import Link
21+
from .models.page_model import PageModel
22+
from .models.saa_spose_response import SaaSposeResponse
23+
from .models.save_result import SaveResult
24+
from .models.sharp_model import SharpModel
25+
from .models.diagram_response import DiagramResponse
26+
from .models.save_response import SaveResponse
27+
28+
# import apis into sdk package
29+
from .apis.diagram_file_api import DiagramFileApi
30+
from .apis.o_auth_api import OAuthApi
31+
32+
# import ApiClient
33+
from .api_client import ApiClient
34+
35+
from .configuration import Configuration
36+
37+
configuration = Configuration()

0 commit comments

Comments
 (0)