devlab-auth 0.1.0__tar.gz → 0.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2 @@
1
+ # PyPI API Token for automated publishing (ignored in git)
2
+ UV_PUBLISH_TOKEN=pypi-your-token-here
@@ -20,3 +20,9 @@ venv/
20
20
  .pytest_cache/
21
21
  .coverage
22
22
  htmlcov/
23
+
24
+ # Environment secrets (PyPI tokens, keys)
25
+ .env
26
+ .env.*
27
+ .env*.local
28
+ !.env.example
@@ -0,0 +1,7 @@
1
+ # @yuva-devlab/auth-py
2
+
3
+ ## 0.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 4896b97: Add universal Python authentication SDK (`devlab-auth`) with RS256 JWKS validation, M2M API key caching, and FastAPI route guards.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: devlab-auth
3
- Version: 0.1.0
3
+ Version: 0.2.0
4
4
  Summary: Universal DevLab Authentication SDK for Python (RS256 JWKS & M2M API Keys with FastAPI guards)
5
5
  Author-email: Yuvaraj Pattabi <yuva.devlab@gmail.com>
6
6
  Requires-Python: >=3.11
@@ -23,6 +23,7 @@ Description-Content-Type: text/markdown
23
23
  Enterprise-grade authentication SDK and FastAPI security guards for the Yuva DevLab platform ecosystem.
24
24
 
25
25
  ## Features
26
+
26
27
  - **Strict Typing:** 100% type-annotated with `py.typed` marker (PEP 561) and strict mypy compliance.
27
28
  - **RS256 JWKS Verification:** Validates DevLab Portal SSO tokens without network overhead using local in-memory public key caching.
28
29
  - **M2M API Key Validation:** Authenticates machine-to-machine callers (`dlk_...`) via DevLab Portal API with local TTL caching.
@@ -30,6 +31,7 @@ Enterprise-grade authentication SDK and FastAPI security guards for the Yuva Dev
30
31
  - **ASGI Middleware:** Global route protection via `DevLabAuthMiddleware`.
31
32
 
32
33
  ## Installation
34
+
33
35
  ```bash
34
36
  # Using uv
35
37
  uv add devlab-auth
@@ -39,6 +41,7 @@ pip install devlab-auth
39
41
  ```
40
42
 
41
43
  ## Quickstart (FastAPI)
44
+
42
45
  ```python
43
46
  from fastapi import FastAPI, Depends
44
47
  from devlab_auth import AuthPrincipal, get_current_principal, require_role
@@ -61,6 +64,7 @@ async def admin_purge():
61
64
  ```
62
65
 
63
66
  ## Development & Verification
67
+
64
68
  ```bash
65
69
  # Run test suite
66
70
  uv run pytest
@@ -3,6 +3,7 @@
3
3
  Enterprise-grade authentication SDK and FastAPI security guards for the Yuva DevLab platform ecosystem.
4
4
 
5
5
  ## Features
6
+
6
7
  - **Strict Typing:** 100% type-annotated with `py.typed` marker (PEP 561) and strict mypy compliance.
7
8
  - **RS256 JWKS Verification:** Validates DevLab Portal SSO tokens without network overhead using local in-memory public key caching.
8
9
  - **M2M API Key Validation:** Authenticates machine-to-machine callers (`dlk_...`) via DevLab Portal API with local TTL caching.
@@ -10,6 +11,7 @@ Enterprise-grade authentication SDK and FastAPI security guards for the Yuva Dev
10
11
  - **ASGI Middleware:** Global route protection via `DevLabAuthMiddleware`.
11
12
 
12
13
  ## Installation
14
+
13
15
  ```bash
14
16
  # Using uv
15
17
  uv add devlab-auth
@@ -19,6 +21,7 @@ pip install devlab-auth
19
21
  ```
20
22
 
21
23
  ## Quickstart (FastAPI)
24
+
22
25
  ```python
23
26
  from fastapi import FastAPI, Depends
24
27
  from devlab_auth import AuthPrincipal, get_current_principal, require_role
@@ -41,6 +44,7 @@ async def admin_purge():
41
44
  ```
42
45
 
43
46
  ## Development & Verification
47
+
44
48
  ```bash
45
49
  # Run test suite
46
50
  uv run pytest
@@ -0,0 +1,16 @@
1
+ {
2
+ "name": "@yuva-devlab/auth-py",
3
+ "version": "0.2.0",
4
+ "description": "Universal DevLab Authentication SDK for Python",
5
+ "private": true,
6
+ "scripts": {
7
+ "build": "uv build",
8
+ "lint": "uv run --with ruff ruff check .",
9
+ "lint:fix": "uv run --with ruff ruff check --fix .",
10
+ "format": "uv run --with ruff ruff format .",
11
+ "format:check": "uv run --with ruff ruff format --check .",
12
+ "typecheck": "uv run --with mypy --with pydantic --with httpx --with fastapi mypy src",
13
+ "test": "echo 'No tests yet for @yuva-devlab/auth-py (skipping)'",
14
+ "clean": "rm -rf dist .venv .ruff_cache .mypy_cache .pytest_cache"
15
+ }
16
+ }
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "devlab-auth"
3
- version = "0.1.0"
3
+ version = "0.2.0"
4
4
  description = "Universal DevLab Authentication SDK for Python (RS256 JWKS & M2M API Keys with FastAPI guards)"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.11"
@@ -69,3 +69,4 @@ ignore_missing_imports = true
69
69
  [[tool.mypy.overrides]]
70
70
  module = "jwt.*"
71
71
  ignore_missing_imports = true
72
+
File without changes