Metadata-Version: 2.4
Name: oneid-client
Version: 0.1.3
Summary: A client for OneID authentication
Author-email: Abror Izzatullayev <izzatullev2001abror@gmail.com>
License: MIT
Project-URL: Homepage, https://github.com/justbackend/oneid-client
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Requires-Dist: requests

# OneID Client for Python

A lightweight Python client for authenticating users and retrieving user data using the [OneID SSO](https://sso.egov.uz) platform via OAuth2.

## 🔧 Installation

### From PyPI:

```bash
pip install oneid-client
```

From source:
```bash
git clone https://github.com/justbackend/oneid-client.git
```


🚀 Usage Example


# Initialize the OneID client
```code
from oneid import OneID

one_id = OneID(
    url="https://sso.egov.uz/sso/oauth/Authorization.do",
    client_id='your_client_name',
    client_secret='your_client_secret',
    redirect_uri='your_redirect_url'
)

# Get user info using the authorization code
user = one_id.get_user_info(code='a3eed750-fec6-4544-910a-52e2ce020797')

# Access the user's full name
print(user.full_name)
```

🧩 Features
🔐 OAuth2 Authorization Code flow for OneID

🔄 Automatic access token retrieval

👤 Fetch structured user data with a simple interface

📦 Easy integration in any FastAPI, Django, or standalone Python project
