semvec/pypi-packages huggingface dataset:
pyaffine 0.2.0
Thesaurus which uses the Datamuse API.
License: MIT
Requires Python: >=3.9,<4.0

Thesaurus which access the [Datamuse API](https://www.datamuse.com/api).

## Installation
```bash
pip install pyaffine
```

## Example
```bash
affine motivate
```
will return synonyms for "motivate".

![](https://i.imgur.com/kIgqZRC.png)
ariadne-django-ext 1.6
Usable utility extensions for Ariadne & Django
License: MIT
Requires Python: >=3.6.2,<4.0.0
Keywords: django,ariadne,cache,graphql

<h1 align="center">
  ariadne-django-ext
</h1>

<p align="center">
  <a href="https://github.com/dulmandakh/ariadne-django-ext/">
    <img src="https://img.shields.io/github/workflow/status/dulmandakh/ariadne-django-ext/CI?label=Test&logo=github&style=for-the-badge" alt="ci status">
  </a>
  <a href="https://pypi.org/project/ariadne-django-ext/">
    <img src="https://img.shields.io/pypi/v/ariadne-django-ext?style=for-the-badge" alt="pypi link">
  </a>
  <a href="https://codecov.io/github/dulmandakh/ariadne-django-ext">
    <img src="https://img.shields.io/codecov/c/github/dulmandakh/ariadne-django-ext?logo=codecov&style=for-the-badge" alt="codecov">
  </a>
  <br>
  <a>
    <img src="https://img.shields.io/pypi/pyversions/ariadne-django-ext?logo=python&style=for-the-badge" alt="supported python versions">
  </a>
  <a>
    <img src="https://img.shields.io/pypi/djversions/ariadne-django-ext?logo=django&style=for-the-badge" alt="supported django versions">
  </a>
</p>

<p align="center">
  <a href="#installation">Installation</a> •
  <a href="#contributing">Contributing</a> •
  <a href="#license">License</a>
</p>

<p align="center">Custom, simple Django User model with email as username</p>

## Installation

```sh
pip install ariadne-django-ext
```

## Usage

### cache

**cache** decorator will cache a result returned from resolver using Django cache framework. You can it accepts same keyword arguments and passed down to Django cache.

Cache key must be either value or callable. Callable will receive same arguments as resolver then return cache key. Callable may return **None** to bypass the cache.

It uses **typename** and **key** from **info.path** as cache key prefix.

```python
from ariadne_django_ext import cache

@cache(key='cache_key')
def resolver(parent, info):
    ...
    return 'result'

```

### wrap_result

**wrap_result** decorator wraps return value of a resolver into dictionary with the key

```python
from ariadne_django_ext import wrap_result

@wrap_result(key='result')
def resolver(parent, info):
    return 'result'

```

Above example will return following dict

```json
{ "result": "result" }
```

### isAuthenticated & isStaff directive

A resolver will receive an authenticated user as keyword argument.

```graphql
directive @isAuthenticated on FIELD_DEFINITION

type User {
  id: ID
  username: String
  ipAddress: String @isAuthenticated
}
```

```python
from ariadne_django_ext import IsAuthenticatedDirective

schema = make_executable_schema(
  type_defs,
  resolvers,
  directives={"isAuthenticated": IsAuthenticatedDirective}
)
```

## Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

## License

[MIT License](https://choosealicense.com/licenses/mit/)

```

```
minuteinbox-py 0.4
Create temporary E-Mails & receive E-Mails with MinuteInbox through python
License: MIT
Keywords: email,minuteinbox,temporary,disposable,spam,mail,10 minute,python email,

# MinuteInbox Temporary E-Mail
![GitHub Banner](https://repository-images.githubusercontent.com/380415345/e7d19f80-d64e-11eb-9c43-8a4af65c2a7a)
## Description
Create temporary e-mails and receive e-mails with MinuteInbox through python! It also parses the E-Mail adress MinuteInbox created for you; so you can directly access last and first name. And incase you needed it, it creates a company name out of them too 🎉

## Example
You'll be able to use this, just as in the following example:

```python
from minuteinbox import create_email, get_inbox
from time import sleep as s

# create an email
minuteinbox = create_email()
if minuteinbox:
	email = minuteinbox.get('email')
	first_name = minuteinbox.get('fname')
	last_name = minuteinbox.get('lname')
	company_name = minuteinbox.get('company')
	print('Current E-Mail: '+email+'\n'+'First & Last Name: '+first_name+' '+last_name+'\n'+'Company Name: '+company_name)


# get received email body
while True:
	inbox = get_inbox()
	if inbox != None:
		subject = inbox.get('subject')
		sender = inbox.get('sender')
		raw_body = inbox.get('raw_body') # raw text body
		clean_body = inbox.get('clean_body') # bs4 parsed body
		print('\nNew E-Mail titled: "'+subject+'", from: '+sender)
		print('\n'+'E-Mail Body:'+'\n'+clean_body)
		break
	s(3)
  ```
Output:
```
Current E-Mail: jahsiah.ayman@toiletkeys.net
First & Last Name: Jahsiah Ayman
Company Name: Ayja LLC

New E-Mail titled: "Meeting Minutes Defined", from: ahane 

E-Mail Body:
The meeting could be pretty intense and overwhelming for all members of the project. Therefore, it is natural that some of the participants are missing some details or slight information although they have taken personal notes on their device or paper. Kind Regards Copy Paste Emails
```

## Known Bugs
If there is weird special characters in the subject or the senders name, MinuteInbox tends to just send an empty response instead. That in return causes an error in this code. I've not found a bug fix for that yet.

## Disclaimer
I'm not associated in any way with MinuteInbox.com, if requested by them I will take down this repository. In this case please prove your Identity and send me an E-Mail. You can check my profile to find it.