semvec/pypi-packages huggingface dataset:
Python-discord-rankcard 0.0.6
A simple discord rank card written in python.
Keywords: python,pillow,discord,discord-py

# Python-discord-rankcard

![img](https://github.com/yangman946/Python-discord-rankcard/blob/main/Rankcard/pics/out.jpg)

## Installation

`pip install Python-discord-rankcard`

## Usage
```
  import discord
  from discord.ext import commands
  from Rankcard import Main
  
  class Rank(commands.Cog):
	def __init__(self, bot):
		self.bot = bot
		self.rankcard = Main.RANKCARD()
      
	@commands.command()
	async def rank(self, ctx):
		card = self.rankcard.rank_card(
				    username=ctx.author.name, # user name
				    avatar= ctx.author.avatar_url, 
				    level=1, # user level
				    rank=1, # user rank
				    current_xp=0, # user xp
				    custom_background= "#000000", # background colour
				    xp_color="#FF7A7A", # Foreground colour
				    next_level_xp=100) # Next level xp
		file = discord.File(card)
		await ctx.send(file=file)
        
  def setup(bot):
    	bot.add_cog(Rank(bot))
          


```
dlvh 1.0.2
Context-aware video downloader
Requires Python: >=3.6
Keywords: scripts,commandline

# dlvh

dlvh (**d**own**l**oad **v**ideo **h**ere) is a wrapper for [yt-dlp](https://github.com/yt-dlp/yt-dlp) that allows you to quickly download videos in a folder according to predefined nested local rules.

## Install

```sh
	pip install dlvh
```

## How to use

Use `dlvh *URL*` to download to current folder, `dlvh -p *preset* *URL*` to download to a preset, and `dlvh -n *preset*` (in the target directory) to define new preset.

You can have dlvh configuration files on each level of the directory tree. These files use a simple yaml structure:

```yaml
options:
  download-archive: .ytdlarchive # Relative to the folder where the download happens
  cookies: ^/yt_cookies.txt # Relative to THIS configuration file, even in subfolders
  output: '"%(id)s.%(title)s.%(ext)s"' # Careful with quoting strings!
  merge-output-format: mkv
flags:
- restrict-filenames
- prefer-free-formats
```

Let's say you have the following folder structure:

```
├── audio  
│   ├── dlvh.yml # `extract-audio`  
│   ├── unsettling_screaming  
│   └── calm_nature_sounds  
└── video  
    ├── dlvh.yml # `embed-thumbnail`, `download-archive: .ytdlarchive`  
    ├── asmr  
    └── dance_covers  
        ├── dlvh.yml # `download-archive: ^/ytdlarchive`  
        ├── twice  
        └── redvelvet  
```


When you download something to `audio/calm_nature_sounds`, the flag `extract-audio` from its parent folder will be respected.  
When you download something to `video/asmr`, the flag `embed-thumbnail` and the option `download-archive: .ytdlarchive` will be respected, meaning a local file `video/asmr/.ytdlarchive` will be used as archive.  
When you download something to `videos/dance_covers/twice` however, its parent folder's option `download-archive: ^/ytdlarchive` overwrites this, meaning a common archive file `dance_covers/.ytdlarchive` will be used for all subfolders.