semvec/pypi-packages huggingface dataset:
discord-analyzer 1.0.1
CLI tool for scanning Discord servers and visualizing statistics
Requires Python: >=3.6
Keywords: python CLI Discord server scan analize statistics metrics table chart shell terminal

# Discord Analyzer

A command-line tool for scanning and analyzing Discord servers, displaying several statistics in the form of tables and charts.

## Features

### Server scanning

A group of channels from a server can be selected to be scanned.

Scans include all the messages in the selected channels including other relevant information (reactions, mentions, etc...).

The scans can later be updated by scanning only the new messages.

### Analysis

After the scan is completed, an analysis is performed, compiling all relevant information for each user, channel, emoji and the server.

Analysis do not contain the messages' text, so they can be safely shared.

### Importing and Exporting

Scans and analysis can be exported and imported to/from JSON files.

### Data visualization

Tables and charts can be generated, displaying metrics and ranks.

Metrics analyzed include:
- Messages
- Characters typed
- Characters per message
- Emoji used
- Reactions
- Mentions
- Replies
- Links
- Attachments
- Messages per hour of the day
- Messages per day of the week

Some filters can be applied to the data displayed (e.g. column selection, user roles)

## Installation and Usage

To install Discord Analyzer run:
```
pip install discord-analyzer
```

To execute run:
```
discord-analyzer
```
repo-cloner 1.0.0
Python utility for cloning repositories
Requires Python: >=3.6

repo-cloner
===========

Open source repository cloner.

- Github: https://github.com/danpeczek/repo-cloner

repo-cloner is a python utility to clone multiple repositories at once without bothering
to do it manual. Tool reads the information about your repositories and clone them into current
directory.

+-------------------------+
|       **main**          |
+=========================+
| |Build Status Develop|  |
+-------------------------+

Setup
=====

Currently the tool is available only on test pypi repository.

.. code-block:: bash

    $ pip install -i https://test.pypi.org/simple/ repo-cloner==0.0.4

Now try to run repo-cloner:

.. code-block:: bash

    $ repo-cloner -h
    Usage: repo-cloner [--help][-h][--repo_file][-rf]
    --help, -h: prints this message
    --repo_file, -rf: .yml file with list of repositories to clone

The list of repositories can be passed either:

.. code-block:: bash

    - git@repo1.git
    - https://repo2.git
    - https://repo3.git

or:

.. code-block:: bash

    dir1:
        - git@repo1.git
    dir2:
        dir3:
        - https://repo2.git
        dir4:
        - https://repo3.git

If you will use the second approach then remember:

    * `dir` will be another directory created from the directory from where you are calling the script.
    * You cannot mix structures - list of repositories and other directories cannot lay on the same level e.g:

.. code-block:: bash

    path1:
      - repo1
      - repo2
      - repo3
      - repo4
    - repo5
    - repo6
    - repo7
    path2:
      - repo8
      - repo9
      - repo10

Is not allowed.

License
-------

`MIT LICENSE <./LICENSE>`__

.. |Build Status Develop| image:: https://ci.conan.io/buildStatus/icon?job=ConanTestSuite/develop
   :target: https://api.travis-ci.com/danpeczek/repo-cloner.svg?branch=main
gh-unwatch-except 0.0.1
A small utility for unwatching GitHub repositories.

# gh_unwatch_except

A small utility for unwatching GitHub repositories.

## Usage

```
> pip install gh_unwatch_except    
> gh_unwatch_except [repo keyword to exclude] [repo keyword to exclude] [repo keyword to exclude]

> gh_unwatch_except react-native terraform
Do you want to unwatch repository "saimonrai/react-native-test" ? [y/N]: n
Do you want to unwatch repository "saimonrai/terraform-abc" ? [y/N]: n
Unwatch repositories
    saimonrai/test-a
    saimonrai/test-b
Watch repositories
    saimonrai/react-native-test
    saimonrai/terraform-abc
Are you sure you want to proceed? [y/N]: y
Unwatching "saimonrai/test-a" ...
Unwatching "saimonrai/test-b" ...
```
fastapi-controller 0.0.8
Package to create API controllers that can inherit routes
Requires Python: >=3.6

# FastAPI Controller

Write Fast API Controllers (Classes) that can inherit route information from it's parent. This also allows to create a path prefix from a template and add api version information in the template.

This utility library is written on top of [fastapi-utils](https://github.com/dmontagu/fastapi-utils/).

## Install

```
$ pip install fastapi-controller
```

## Example

```python
import uvicorn
from pydantic import BaseModel
from fastapi import Header, Depends, FastAPI

from fastapi_controller import create_controller, controller, register_controllers_to_app

# Create a controller with a path prefix template that can use the
# controller name and version as template variables
# For a controller named PeopleController, {controller} is replaced
# by `people`
ControllerBase = create_controller("/v{version}/{controller}", "1.0")


def get_jwt_user(auth: str = Header(...)) -> str:
    """ Pretend this function gets a UserID from a JWT in the auth header """
    return auth


class GetModel(BaseModel):
    hello: str


class DefaultController(ControllerBase):
    user_id: str = Depends(get_jwt_user)

    @controller.get("/", response_model=GetModel)
    def get_all(self) -> dict:
        return {"hello": self.user_id}

    @controller.get("/{model_id}")
    def get_one(self, model_id: int):
        return {"one": model_id}


class PeopleController(DefaultController):
    # The people controller will have the two GET routes from the
    # parent class as well as the post route defined here.
    @controller.post("/")
    def create(self):
        return {"create": self.user_id}


class ScheduledJobsController(DefaultController):
    # The jobs controller will have the two GET routes from the parent
    # class with one of the routes implementation overridden.
    def get_one(self, model_id: int):
        # This'll inherit the route information GET /{model_id} from the
        # parent class and override functionality of the route
        pass


if __name__ == '__main__':
    app = FastAPI()
    # This function registers all the child controllers who have
    # ControllerBase as their parent in their inheritance heirarchy.
    # Intermediate Controllers between the ControllerBase and the
    # Child Controllers are ignored
    # For e.g. For the following inheritance heirarchy
    # ControllerBase -> DefaultController -> DerivedController -> FunctionsController -> PeopleController
    # Only the PeopleController is used for registering
    # the API routes with all the routes defined in the parent controllers
    # available in the child controller.
    register_controllers_to_app(app, ControllerBase)
    uvicorn.run(app, host="0.0.0.0", port=8000)
```

With the above example, the following API routes will be registered:

```
GET  /v1.0/people/
GET  /v1.0/people/{model_id}
POST /v1.0/people/
GET  /v1.0/scheduled_jobs/
GET  /v1.0/scheduled_jobs/{model_id}
```
disbotlist.py 0.0.1
a official api from disbotlist.xyz
Keywords: python,discord,botlist,disbotlist

# disbotlist 

Useful library for [DisBotList.xyz](https://disbotlist.xyz)


## Installation
```
pip install disbotlist
```
## Example 
Server Count Post :
```python
from disbotlist import *
from discord.ext import commands

client = commands.Bot(command_prefix="!") 
dbl = disbotlist(client,"token of disbots")

@client.event
async def on_ready():
  x = await dbl.serverCountPost()
  print(x)

client.run("token")
```