The ferryman you need to travel the gap from Red v2 to Red v3.
Join my Discord server: https://discord.gg/zw7NmT
Kharon is a python module that will assist you in transitioning your Red-discordBot cogs from v2 to v3.
Notably, Kharon will:
- Format
info.json
files
Kharon also provides both synchronous and asynchronous versions of any method performing HTTP requests.
Now on PyPI!
python -m pip install Kharon
You need at least one of the following:
requests
for synchronous requestsaiohttp
for asynchronous requests
When installing with pip, both requests
and aiohttp
will be downloaded as well as Kharon
.
Kharon can be imported to be used in custom scripts and modules, ran from the command line as a service, or tested at the live site.
from kharon import kharon
data = kharon.format_info(
user='github_user', repo='repo_name', cogs='cog_name')
print(data)
If no cogs are listed, then Kharon will run for all cogs in the repository.
$ Kharon -u <github_user> -r <repo_name> -c <cog_name> (optional)
Visit my personal webpage, built with Django and hosted by the wonderful people at PythonAnywhere, or go directly to the Demo.
Follow these 5 easy steps for a successful contribution (by @Redjumpman):
- Fork it!
- Develop your feature branch
- Commit your changes
- Push to the main branch
- Submit a pull request
The project is licensed under MIT. Feel free to alter this project anyway you see fit, as long as I am credited for the original work.