Netcord

Latest version: v1.2.2

Safety actively analyzes 688634 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 2

1.0.1

- Removing `PyJWT` from `requirements.txt` since the module is not used in the code.

1.0.0

Features
- Integration with [FastAPI](https://github.com/tiangolo/fastapi) has been done, with which the return of exceptions as `HTTPException` with different statuses has been improved.
- In `generate_auth_url` method - now there is an option to not specify `session_id` to resist csrf attacks. `state` - will not be returned in url address after **successful authorization** through application.
- Added several new methods in particular `authenticate` and `is_authenticated` for use in endpoints to **verify authorized requests**. A valid **Bearer Token** must be used for successful requests.

Improvements
- The `fetch` function in the `HTTPClient` class returns `None` in case of exceptions during query execution, which allows you to check the query value for `None` instead of throwing an exception and breaking the code.
- A few **new exception** classes - for a clear understanding of the error occurrence.

0.1.1

Features
Two new methods inside the Netcord class

- `get_user_by_id` - get the user model by unique identifier.
- `get_app` - get information about the bot by the passed token

Improvements
- in `fetch` function inside **HTTPClient** class - updated output of successful/failed requests

0.1.0

**First test version of the netcord package**

Page 2 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.