semvec/pypi-packages huggingface dataset:
detache 0.2.3
A simple, intuitive Discord bot framework for Python
License: MIT

DÃ©tachÃ©
=======


DÃ©tachÃ© is a framework for creating productive and efficient Discord bots, built off of
`discord.py <http://github.com/Raptzz/discord.py/>`_.

With DÃ©tachÃ©, you can easily create bots without sacrificing direct access to the API. Commands and similar features
are split into groups called Plugins, allowing for better organization. It's inspired by the simplicity of Click
and Flask.

DÃ©tachÃ©'s features include:

- intuitive argument parsing with support for custom types
- automatic documentation and help messages
- support for per-guild bot prefix via a callback
- support for sharding

Here's a simple bot that does math:

.. code-block:: python

    import detache

    bot = detache.Bot(default_prefix="!")

    @bot.plugin("Math")
    class MathPlugin(detache.Plugin):
        """
        Basic math commands.
        """

        @detache.command("add", "Adds two numbers.")
        @detache.argument("a", detache.Number, help="First addend")
        @detache.argument("b", detache.Number, help="Second addend")
        async def add(self, ctx, a, b):
            return a + b

        @detache.command("subtract")
        @detache.argument("a", detache.Number, help="Minuend")
        @detache.argument("b", detache.Number, help="Subtrahend")
        async def subtract(self, ctx, a, b):
            """Subtracts two numbers."""

            return a - b

Both commands take two arguments, "a" and "b", which are specified as numbers. The commands return the sum or
difference, which DÃ©tachÃ© automatically replies with. If argument parsing fails, the generated documentation will be
shown.

Commands can be documented with the command decorator, or by using docstrings.


TODO: Plugin, command, and argument descriptions are shown in the automatically generated help message.

You can install the library from PyPI: ::

    $ pip install detache
BingWallpaper 1.2.2
A python script which can download bing's beautiful images and set the image to your computer wallpaper.
License: MIT


[![pip](https://img.shields.io/pypi/dm/BingWallpaper.svg)](https://pypi.python.org/pypi/BingWallpaper)
## bing-wallpaper
A python script which can download bing's beautiful images and set the image to your computer wallpaper. This script can also change wallpaper every once in a while. It is tested and works well on ubuntu.   
### Installation
```bash
pip install BingWallpaper
```
### HOW TO USE
#### arguments
There are three arguments you can set:
```
usage: wallpaper [-h] [--interval [INTERVAL]] [--num [NUM]] [--path [PATH]]
                 [stop]

timely replacement wallpaper from bing.

positional arguments:
  stop                  stop wallpaper

optional arguments:
  -h, --help            show this help message and exit
  --interval [INTERVAL]
                        time interval for scripts to change wallpapers. By
                        seconds.
  --num [NUM]           number of images saved in local folder at most
  --path [PATH]         path to save images
```
* stop  
stop wallpaper
* interval  
Time interval for scripts to change wallpapers. The unit of this argument is second and default value is **3 seconds**. 
* num  
Number of images saved in local folder at most. Script will only keep **num** latest bing's images, and the expired will be deleted. Script will choose one image as wallpaper randomly. Default value is **7**.
* path  
Path to save wallpaper. If the current user does not have permission to write to or create the path, you may need administrator privileges. Default value is **'/home/user/wallpapers'**.  

#### example
```bash
wallpaper
``` 
This is the simplest command and three arguments are set to the default value. You can customize your commands like this:
```bash
wallpaper --interval 4 --num 5 --path /home/bing/test/
```
If you want to stop the script, you can run the following code.
```bash
wallpaper stop
```