# Socian Auth Python SDK
[![Version](https://img.shields.io/pypi/v/socian-auth)](https://pypi.org/project/socian-auth/)
[![License](https://img.shields.io/pypi/l/socian-auth)](https://opensource.org/licenses/MIT)
[![Python Versions](https://img.shields.io/pypi/pyversions/socian-auth)](https://pypi.org/project/socian-auth/)
## Overview
The Socian Auth Python SDK provides a convenient way to interact with the Socian Auth API for authentication and user management.
## Installation
You can install the library using pip:
```bash
pip install socian-auth
```
## Usage
### Initialization
```python
from socian_auth import SocianAuthApiClient
client = SocianAuthApiClient(
client_id="your_client_id",
client_secret="your_client_secret",
ssh_public_key="your_ssh_public_key"
)
```
### Getting Intent
```python
intent_obj = client.get_intent("auth.signIn", "http://localhost:3000/auth/callback")
print(intent_obj)
```
### Checking User Existence
```python
email = "example@example.com"
is_user_exist = client.check_user_exists(intent_id=intent_obj.intent_id, email=email)
print(is_user_exist)
```
### User Signup
```python
user_info = client.user_signup(intent_id=intent_obj.intent_id, name="John Doe", email=email, password="password123")
print(user_info)
```
### User Signin
```python
login_data = client.user_signin(email=email, password="password123")
print(login_data)
```
### User Information
```python
user_info = client.user_info(access_token=login_data.access_token)
print(user_info)
```
## Documentation
For more details and API documentation, please refer to [Socian Auth SDK Documentation](https://github.com/Socian-Ltd/socian_auth_sdk_python.git).
## Contributing
If you find any issues or have suggestions for improvement, please open an issue or create a pull request on [GitHub](https://github.com/Socian-Ltd/socian_auth_sdk_python.git).
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
Raw data
{
"_id": null,
"home_page": "https://github.com/Socian-Ltd//socian_auth_sdk_python",
"name": "socian-auth",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": "",
"keywords": "socian auth authentication user-management sdk",
"author": "Socian Ltd.",
"author_email": "admin@socian.ai",
"download_url": "https://files.pythonhosted.org/packages/19/45/8324110f23c6f12398f51232d529e7eb7fc16bb106cc9bcbcdb0749ba1b2/socian_auth-0.0.8.tar.gz",
"platform": null,
"description": "# Socian Auth Python SDK\n\n[![Version](https://img.shields.io/pypi/v/socian-auth)](https://pypi.org/project/socian-auth/)\n[![License](https://img.shields.io/pypi/l/socian-auth)](https://opensource.org/licenses/MIT)\n[![Python Versions](https://img.shields.io/pypi/pyversions/socian-auth)](https://pypi.org/project/socian-auth/)\n\n## Overview\n\nThe Socian Auth Python SDK provides a convenient way to interact with the Socian Auth API for authentication and user management.\n\n## Installation\n\nYou can install the library using pip:\n\n```bash\npip install socian-auth\n```\n## Usage\n\n### Initialization\n```python\nfrom socian_auth import SocianAuthApiClient\n\nclient = SocianAuthApiClient(\n client_id=\"your_client_id\",\n client_secret=\"your_client_secret\",\n ssh_public_key=\"your_ssh_public_key\"\n)\n```\n### Getting Intent\n```python\nintent_obj = client.get_intent(\"auth.signIn\", \"http://localhost:3000/auth/callback\")\nprint(intent_obj)\n```\n\n### Checking User Existence\n```python\nemail = \"example@example.com\"\nis_user_exist = client.check_user_exists(intent_id=intent_obj.intent_id, email=email)\nprint(is_user_exist)\n```\n\n### User Signup\n```python\nuser_info = client.user_signup(intent_id=intent_obj.intent_id, name=\"John Doe\", email=email, password=\"password123\")\nprint(user_info)\n```\n\n\n### User Signin\n```python\nlogin_data = client.user_signin(email=email, password=\"password123\")\nprint(login_data)\n```\n\n\n### User Information\n```python\nuser_info = client.user_info(access_token=login_data.access_token)\nprint(user_info)\n```\n\n\n## Documentation\n\nFor more details and API documentation, please refer to [Socian Auth SDK Documentation](https://github.com/Socian-Ltd/socian_auth_sdk_python.git).\n\n## Contributing\n\nIf you find any issues or have suggestions for improvement, please open an issue or create a pull request on [GitHub](https://github.com/Socian-Ltd/socian_auth_sdk_python.git).\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Socian Auth Python SDK for authentication and user management",
"version": "0.0.8",
"project_urls": {
"Bug Reports": "https://github.com/Socian-Ltd/socian_auth_sdk_python/issues",
"Documentation": "https://github.com/Socian-Ltd/socian_auth_sdk_python.git",
"Homepage": "https://github.com/Socian-Ltd//socian_auth_sdk_python",
"Source": "https://github.com/Socian-Ltd/socian_auth_sdk_python.git"
},
"split_keywords": [
"socian",
"auth",
"authentication",
"user-management",
"sdk"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "a873224df1d09842e1e83f08f58c7ce15fbaa3a0aa05a008bd9f1902a99907d7",
"md5": "f4e8708094bc3c654218b6e327fa2712",
"sha256": "886298cc5a55a2ff081f64713c1c60ef79d7f5a1d85704b38daf48e65c0fba86"
},
"downloads": -1,
"filename": "socian_auth-0.0.8-py3-none-any.whl",
"has_sig": false,
"md5_digest": "f4e8708094bc3c654218b6e327fa2712",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 5396,
"upload_time": "2023-12-28T13:19:26",
"upload_time_iso_8601": "2023-12-28T13:19:26.088538Z",
"url": "https://files.pythonhosted.org/packages/a8/73/224df1d09842e1e83f08f58c7ce15fbaa3a0aa05a008bd9f1902a99907d7/socian_auth-0.0.8-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "19458324110f23c6f12398f51232d529e7eb7fc16bb106cc9bcbcdb0749ba1b2",
"md5": "275d777477ffc8a34585b1a7938649d2",
"sha256": "c98e020fd06eb44192a2fc6cf4639ce2bb8860072cad57dbd5a41d0c38f1ba31"
},
"downloads": -1,
"filename": "socian_auth-0.0.8.tar.gz",
"has_sig": false,
"md5_digest": "275d777477ffc8a34585b1a7938649d2",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 6176,
"upload_time": "2023-12-28T13:19:27",
"upload_time_iso_8601": "2023-12-28T13:19:27.945529Z",
"url": "https://files.pythonhosted.org/packages/19/45/8324110f23c6f12398f51232d529e7eb7fc16bb106cc9bcbcdb0749ba1b2/socian_auth-0.0.8.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-12-28 13:19:27",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Socian-Ltd",
"github_project": "socian_auth_sdk_python",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "socian-auth"
}