Metadata-Version: 2.1
Name: authz
Version: 0.1.3
Summary: Python SDK for the AuthZ permission system
Home-page: https://e.coding.net/cloudbase-100009281119/authz/authz-python.git
License: Apache 2.0
Author: Ann
Author-email: zhaoanke@163.com
Requires-Python: >=3.9,<4.0
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: httpx[socks] (>=0.27.0,<0.28.0)
Requires-Dist: pydantic (>=2.8.0,<3.0.0)
Project-URL: Documentation, https://cloudbase-100009281119.coding.net/p/authz/d/authz-python/git/tree/main/README.md
Project-URL: Repository, https://e.coding.net/cloudbase-100009281119/authz/authz-python.git
Description-Content-Type: text/markdown

# AuthZ Python SDK

[![Python Version](https://img.shields.io/badge/python-3.11-blue.svg)](https://www.python.org/downloads/release/python-3110/)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0)

AuthZ Python SDK is a Python package that provides an interface to interact with the AuthZ permission system.

## Table of Contents

- [AuthZ Python SDK](#authz-python-sdk)
  - [Table of Contents](#table-of-contents)
  - [Overview](#overview)
  - [Installation](#installation)
    - [Additional Notes](#additional-notes)
    - [Installing with Poetry (Recommended)](#installing-with-poetry-recommended)
    - [Installing with Poetry (Manual)](#installing-with-poetry-manual)
    - [Using pip (Alternative)](#using-pip-alternative)
  - [Usage](#usage)
  - [API Reference](#api-reference)
  - [Contributing](#contributing)
  - [License](#license)

## Overview

Provide a brief introduction to the AuthZ permission system and how this SDK can be used to integrate it into Python applications.

## Installation

To install the AuthZ Python SDK, run:

```bash
pip install authz
```

### Additional Notes

- Ensure you have [Poetry](https://python-poetry.org/) installed in your environment. If you don't have it installed, you can follow the instructions on the Poetry website.
- You may need to authenticate with the Git repository if it's private. Make sure you have the necessary permissions to access the repository.

### Installing with Poetry (Recommended)

You can directly install the `authz-python` package from its Git repository using Poetry. Run the following command in your terminal:

```bash
poetry add git+https://e.coding.net/cloudbase-100009281119/authz/authz-python.git
```

This command will add the `authz-python` package as a dependency to your project and install it along with any other dependencies it requires.

### Installing with Poetry (Manual)

To install the AuthZ Python SDK using Poetry, follow these steps:

1. Clone the repository from the remote URL:

  ```bash
  git clone https://e.coding.net/cloudbase-100009281119/authz/authz-python.git
  ```

2. Change to the cloned directory:

  ```bash
  cd authz-python
  ```

3. Install the package and its dependencies using Poetry:

  ```bash
  poetry install
  ```

### Using pip (Alternative)

If you prefer to use pip, you can install the package directly from the cloned repository:

```bash
pip install git+https://e.coding.net/cloudbase-100009281119/authz/authz-python.git
```

## Usage

Here's a simple example of how to use the AuthZ Python SDK:

```python
from authz.client import Client

# Initialize the client with your credentials
client = Client(client_id="your_client_id", provider="https://authz.example.com", client_secret="your_client_secret")

# Use the client to interact with the AuthZ system
# Example: Authorize a request
# ...
```

## API Reference

Provide a detailed guide to the classes, methods, and functions available in the SDK.

## Contributing

If you'd like to contribute to the AuthZ Python SDK, please follow the guidelines outlined in [CONTRIBUTING.md](CONTRIBUTING.md).

## License

This project is licensed under the terms of the [Apache License 2.0](LICENSE).

