Skip to content

Commit 43a048d

Browse files
fix: Import errors in auth0_server_python (#9)
* fix: Import errors in auth0_server_python
1 parent 28a85af commit 43a048d

File tree

5 files changed

+9
-10
lines changed

5 files changed

+9
-10
lines changed

packages/auth0_server_python/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The Auth0 Server Python SDK is a library for implementing user authentication in Python applications.
22

3-
![PyPI](https://img.shields.io/pypi/v/auth0-server-python) ![Downloads](https://img.shields.io/pypi/dw/auth0-server-python) [![License](https://img.shields.io/:license-MIT-blue.svg?style=flat)](https://opensource.org/licenses/MIT) [![Codecov](https://img.shields.io/codecov/c/github/auth0/auth0-server-python)](https://codecov.io/gh/auth0/auth0-server-python) [![CI](https://github.com/auth0/auth0-server-python/actions/workflows/ci.yml/badge.svg)](https://github.com/auth0/auth0-server-python/actions)
3+
![PyPI](https://img.shields.io/pypi/v/auth0-server-python) ![Downloads](https://img.shields.io/pypi/dw/auth0-server-python) [![License](https://img.shields.io/:license-MIT-blue.svg?style=flat)](https://opensource.org/licenses/MIT)
44

55
📚 [Documentation](#documentation) - 🚀 [Getting Started](#getting-started) - 💬 [Feedback](#feedback)
66

@@ -29,7 +29,7 @@ Create an instance of the Auth0 client. This instance will be imported and used
2929

3030

3131
```python
32-
from auth0_server_python import ServerClient
32+
from auth0_server_python.auth_server.server_client import ServerClient
3333

3434
auth0 = ServerClient(
3535
domain='<AUTH0_DOMAIN>',
@@ -109,7 +109,7 @@ We appreciate feedback and contribution to this repo! Before you get started, pl
109109

110110
- [Auth0's general contribution guidelines](https://github.com/auth0/open-source-template/blob/master/GENERAL-CONTRIBUTING.md)
111111
- [Auth0's code of conduct guidelines](https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md)
112-
- [This repo's contribution guide](./CONTRIBUTING.md)
112+
- [This repo's contribution guide](./../../CONTRIBUTING.md)
113113

114114
### Raise an issue
115115

packages/auth0_server_python/pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "auth0-server-python"
3-
version = "1.0.0.b2"
3+
version = "1.0.0.b3"
44
description = "Auth0 server-side Python SDK"
55
readme = "README.md"
66
authors = ["Auth0 <[email protected]>"]
@@ -17,7 +17,6 @@ pyjwt = ">=2.8.0"
1717
authlib = "^1.2"
1818
httpx = "^0.28.1"
1919
pydantic = "^2.10.6"
20-
fastapi = "^0.115.11"
2120
jwcrypto = "^1.5.6"
2221

2322
[tool.poetry.group.dev.dependencies]

packages/auth0_server_python/src/auth0_server_python/auth_server/server_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
from pydantic import BaseModel, ValidationError
1818

19-
from error import (
19+
from auth0_server_python.error import (
2020
MissingTransactionError,
2121
ApiError,
2222
MissingRequiredArgumentError,
@@ -28,7 +28,7 @@
2828
AccessTokenForConnectionErrorCode
2929

3030
)
31-
from auth_types import (
31+
from auth0_server_python.auth_types import (
3232
StateData,
3333
TransactionData,
3434
UserClaims,
@@ -37,7 +37,7 @@
3737
StartInteractiveLoginOptions,
3838
LogoutOptions
3939
)
40-
from utils import PKCE, State, URL
40+
from auth0_server_python.utils import PKCE, State, URL
4141

4242

4343
# Generic type for store options

packages/auth0_server_python/src/auth0_server_python/encryption/encrypt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
ALG = 'dir'
1313
DIGEST = hashes.SHA256()
1414
BYTE_LENGTH = 64
15-
ENCRYPTION_INFO = b'Auth0 Generated ryption'
15+
ENCRYPTION_INFO = b'Auth0 Generated Encryption'
1616

1717

1818

packages/auth0_server_python/src/auth0_server_python/store/abstract.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from abc import ABC, abstractmethod
22
from typing import Generic, TypeVar, Optional, Dict, Any
33

4-
from encryption import encrypt, decrypt
4+
from auth0_server_python.encryption import encrypt, decrypt
55

66
T = TypeVar('T') # Generic type for the data stored
77

0 commit comments

Comments
 (0)