Unofficial Autodesk Forge SDK for Python.
Project description
autodesk-forge-sdk
Unofficial Autodesk Forge SDK for Python (3.*).
Usage
Install the package from PyPI:
pip3 install autodesk-forge-sdk
Authentication
import os
from autodesk_forge_sdk import AuthenticationClient, Scope
client = AuthenticationClient()
auth = client.authenticate(os.environ["FORGE_CLIENT_ID"], os.environ["FORGE_CLIENT_SECRET"], [Scope.VIEWABLES_READ])
print(auth["access_token"])
Data Management
import os
from autodesk_forge_sdk import OSSClient, OAuthTokenProvider
client = OSSClient(OAuthTokenProvider(os.environ["FORGE_CLIENT_ID"], os.environ["FORGE_CLIENT_SECRET"]))
buckets = client.get_all_buckets()
print(buckets)
Or, if you already have an access token:
import os
from autodesk_forge_sdk import OSSClient, SimpleTokenProvider
client = OSSClient(SimpleTokenProvider(os.environ["FORGE_ACCESS_TOKEN"]))
buckets = client.get_all_buckets()
print(buckets)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
autodesk-forge-sdk-0.1.0.tar.gz
(10.7 kB
view hashes)
Built Distribution
Close
Hashes for autodesk_forge_sdk-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f052913e3959c1b0e2e7421f3428dbfe8419cf6c3ea26b13d6f1c6ffef7ff6c2 |
|
MD5 | 55417ec6b8298b549cbaf617e8e1f098 |
|
BLAKE2b-256 | 3b45763296c1384261645f7add55490ddc48ae3a97e74abd23313b29bd2d5483 |