semvec/pypi-packages huggingface dataset:
perm-security 0.2.0
A package to bridge the gap between Discord's API and Perm-Banana
License: MIT
Requires Python: >=3.9,<4.0
Keywords: discord,perm-banana,token


# Perm-Security

#### A package to enable the integration between Discord's API and Perm-Banana

#### Features
- Permission classes for converting Discord's Permissions to Perm-Banana
- Member Adapters to enable Perm-Banana's extended functionality
- The ability to create Tokens
- A TokenStrategy for handling Permissions with Discord's API

#### How to use it?

```python
from discord import Member
from discord.ext.commands import Cog, Greedy, Context, command

from perm_security.converters import PermissionChannelConverter
from perm_security.MemberAdapter import MemberChannelAdapter
from perm_security.TokenStrategy import BasicTokenStrategy
from perm_security.TokenStrategy.TokenHandlerStrategy import BasicTokenHandlerStrategy

class Security(Cog):
    def __init__(self, bot):
        self.bot = bot
        self.token_strategy = BasicTokenStrategy(BasicTokenHandlerStrategy(bot.scheduler))

    @command(name="generate_toke")
    async def generate_token(
        self,
        ctx: Context,
        permissions: PermissionChannelConverter,
        members: Greedy[Member],
        uses: int = 1
        duration: float = 60.0
    ):
        author = MemberChannelAdapter(ctx.author, ctx.channel)
        await self.token_strategy.generate_token(author, permissions, members, uses, duration)
```
brythoncli 0.3.1
Another command line interface for the Brython.
License: MIT

[![Build](https://github.com/pylover/brythoncli/actions/workflows/build.yml/badge.svg)](https://github.com/pylover/brythoncli/actions/workflows/build.yml)
[![Coverage Status](https://coveralls.io/repos/github/pylover/brythoncli/badge.svg?branch=master)](https://coveralls.io/github/pylover/brythoncli?branch=master)
[![Linux](https://img.shields.io/badge/Linux-%3E%3D%203.19-blue?logo=linux&logoColor=white)](https://kernel.org)


# brythoncli

## Install

```bash
pip install brythoncli
```

Or, from the source:

```bash
cd path/to/brythoncli
pip install .
```

## Usage

```bash
brython pack --help
brython serve --help
brython deps --help
```

Checkout the `Makefile` at the root of https://github.com/dobisel/dial
for more info.

## Contribution

```bash
cd path/to/brythoncli
pip install -r requirements-dev.txt
pip install -e .
make test
make cover
```