Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 22 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,32 @@ py-aps is a Python SDK that provides a simple and intuitive interface for intera
## Quick Start

```python
from pyaps import auth

# Coming soon - SDK implementation in progress
from pyaps.auth import AuthClient, Scopes

# 2-legged OAuth
client = AuthClient(client_id="...", client_secret="...")
token = client.two_legged.get_token([Scopes.DATA_READ])

# 3-legged OAuth with PKCE
verifier, challenge = client.three_legged.generate_pkce_pair()
auth_url = client.three_legged.build_authorize_url(
scopes=[Scopes.DATA_READ, Scopes.USER_PROFILE_READ],
code_challenge=challenge
)
# After user authorizes: token = client.three_legged.exchange_code(code, code_verifier=verifier)
```

For more examples, see `src/pyaps/auth/example.py`.

## Project Status

This package is currently in early development (v0.0.1). The package name has been reserved on PyPI, and active development is underway by **voidbox**.
**Current version: v0.0.2** - Authentication API support added

This package is currently in early development. Active development is underway by **voidbox**.

### Version History
- **v0.0.2** - Added OAuth 2.0 authentication client with 2-legged/3-legged flows, PKCE support, and token management
- **v0.0.1** - Initial package release (placeholder)

## Contributing

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "py-aps"
version = "0.0.1"
version = "0.0.2"
description = "Autodesk Platform Service APIs Python SDK"
readme = "README.md"
requires-python = ">=3.9"
Expand Down
5 changes: 3 additions & 2 deletions src/pyaps/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# src/pyaps/__init__.py
from . import auth, automation, datamanagement
from . import auth, automation, datamanagement, http

__all__ = [
"auth",
"automation",
"datamanagement"
"datamanagement",
"http",
]
11 changes: 11 additions & 0 deletions src/pyaps/auth/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# src/pyaps/auth/__init__.py
from .client import AuthClient, Scopes
from .token_store import OAuth2Token, TokenStore, InMemoryTokenStore

__all__ = [
"AuthClient",
"Scopes",
"OAuth2Token",
"TokenStore",
"InMemoryTokenStore",
]
7 changes: 7 additions & 0 deletions src/pyaps/http/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# src/pyaps/http/__init__.py
from .client import HTTPClient, HTTPError

__all__ = [
"HTTPClient",
"HTTPError",
]