semvec/pypi-packages huggingface dataset:
guarani 1.0.1
Asynchronous Authorization, Authentication and Identity Provider for Python using OAuth 2.1 and OpenID Connect.
License: MIT
Requires Python: >=3.8,<4.0
Keywords: JOSE,OAuth 2.1,OpenID Connect

# Project Guarani

This library provides an implementation for asynchronous
authentication and authorization of web applications.
It provides support for OAuth 2.1 and OpenID Connect.

For more details, please visit the documentation.

Any doubts and suggestions can be sent to my [email](mailto:eduardorbr7@gmail.com).
Just prepend the title with `#Guarani#`, and I will try my best to answer.

## Supported Protocols and RFCs

-   OAuth 2.1

    -   [OAuth 2.1 Draft](https://tools.ietf.org/html/draft-parecki-oauth-v2-1)
    -   [RFC 7009: Token Revocation](https://tools.ietf.org/html/rfc7009)

-   OpenID Connect
    -   [OpenID Connect Core 1.0](https://openid.net/specs/openid-connect-core-1_0.html)

# License

This project is licensed under the MIT License.
For more details, please refer to the `LICENSE` file.
htmailer 1.0.1
Htmessage is simple extension of django's official EmailMessage. It is adapted to work with django templating engine or any templating engine adapted to work with django.
License: MIT

#Docs for Htmailer.

Htmessage is simple extension of django's official EmailMessage.
It is adapted to work with django templating engine or any templating engine adapted to work with django. 

**Htmessage subclasses `Django.core.mail.EmailMessage`**
User defines instance of **Htmailer** like so
	`from htmailer import Htmessage ` 

	`message = Htmessage()`

	`message.subject('subject goes here')`
	`message.html_template('mail_html.html', context)`
	`message.txt_template('mail_text.html', context)` 

`'mail_*.html'` is a path to the template where the mail is defined.

This works like standard django Render() function, such that 'mail_*.html' is searched for in the dirs 
defined in the `TEMPLATE` setting Dictconfig.
Since this mailer extends `EmailMessage`, standard behaviour like `send()`, `header()` are available, 
that the content of rendered text template from the mailer is the body of the text message and manually setting `body()`
will replace the rendered text but will have no effect on the html part of the message.

#USAGE
`class Htmessage`
+ constructed like `Django.core.mail.EmailMessage`
	`html_template(template, context)`
+ `template` is a path to the html file containing the template.
+ `context` is a dictionary containing context data to replace the place holders in the html file.
`txt_template(template, context)`  works just like `html_template()` above.

The html file for txt template should not contain html document, its content should just be text with
with placeholders according to the style of the Template Engine used by your project

For example, the html file can contain;

	<html>
	<head>
		<title>Welcome to htmailer</title>
	</head>
	<body>
		Dear {{user_name}},<br>
			welcome to htmailer, I hope you wil find it useful one way or another.
																		signed,
																		{{company_name}}
	</body>
	</html>
 and the text file can contain the same information but as plain text like so;

	 Dear {{user_name}},
			welcome to htmailer, I hope you wil find it useful one way or another.
																		signed,
																		{{company_name}}.

This context for the html message above will be a `dict` like:

	{'user_name': 'dino', 'company_name': 'A cute company'}