semvec/pypi-packages huggingface dataset:
autodesk-forge-sdk 0.1.2
Unofficial Autodesk Forge SDK for Python.
Requires Python: >=3.6

# autodesk-forge-sdk

Unofficial [Autodesk Forge](https://forge.autodesk.com) SDK for Python (3.*).

## Usage

Install the package from PyPI:

```bash
pip3 install autodesk-forge-sdk
```

### Authentication

```python
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

```python
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:

```python
import os
from autodesk_forge_sdk import OSSClient, SimpleTokenProvider

client = OSSClient(SimpleTokenProvider(os.environ["FORGE_ACCESS_TOKEN"]))
buckets = client.get_all_buckets()
print(buckets)
```