ncjishaku
a debugging and utility extension for nextcord bots
Read the documentation online.
ncjishaku is an extension for bot developers that enables rapid prototyping, experimentation, and debugging of features for bots.
This is a fork of jishaku for nextcord v3.
One of ncjishaku's core philosophies is to be dynamic and easy-to-use. Here's the two step install:
- Download ncjishaku on the command line using pip:
pip install -U ncjishaku
- Load the extension in your bot code before it runs:
bot.load_extension('ncjishaku')That's it!
You can also import the module to use the command development utilities.
Index
Command reference
|
|
>
|
_ctx |
The Context that invoked the command. |
_bot |
The running Bot instance. |
_author_channel_guild_me_message_msg |
Shortcuts for attributes on _ctx.
|
_find_get |
Shortcuts for nextcord.utils functions.
|
The underscore prefix on the provided variables is intended to help prevent shadowing when writing large blocks of code within the command.
If you decide that you don't want the prefix, you can disable it by setting the
JISHAKU_NO_UNDERSCORE environment variable to true.
Each Python command is individually scoped. That means variables you create won't be retained in later invocations.
You can use
jishaku retain on to change this behavior and retain variables, and jishaku retain off if you change your mind later.
> jishaku [dis|disassemble] <argument>
This command compiles Python code in an asynchronous context, and then disassembles the resulting function into Python bytecode in the style of dis.dis.
This allows you to quickly and easily determine the bytecode that results from a given expression or piece of code. The code itself is not actually executed.
> jishaku ast <argument>
This command compiles Python code into its Abstract Syntax Tree, and then displays it as a formatted tree of AST blocks.
|
|
>
The shell command executes commands within your system shell.
|
|
|
>
|
|
|
>
This command reads a file from your file system, automatically detecting encoding and (if applicable) highlighting.
|
|
|
>
|
Installing development versions
If you'd like to test the latest versions of ncjishaku, you can do so by downloading from the git hosts instead of from PyPI.
pip install -U "ncjishaku @ git+https://github.com/CrystalAlpha358/ncjishaku@master"
Please note that the new 2020 dependency resolver now no longer discounts git package sources from reinstall prevention, which means that if you are installing the ncjishaku development version multiple times within the same version target you may run into pip just discarding the update.
If you run into such a problem, you can force ncjishaku to be reinstalled like this:
pip install -U --force-reinstall "ncjishaku @ git+https://github.com/CrystalAlpha358/ncjishaku@master"
You must have installed ncjishaku with one of the commands above before doing this else you will probably end up with a broken installation.
Acknowledgements
The original jishaku was written by Devon (scarletcafe) R, which is licensed under the MIT license.
See LICENSE for details.
The documentation and this README uses icons from the Material Design Icon library, which is licensed under the Apache License Version 2.0.
Metadata
Release files for ncjishaku 3.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ncjishaku-3.1.0.tar.gz | 79.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ncjishaku-3.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 162.6 kB
Release files / ncjishaku-3.1.0.tar.gz
| Download URL | ncjishaku-3.1.0.tar.gz |
|---|---|
| Size | 79.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3e597c2def63fe1a86ab2e418554c694ba2f4867c13cab29f9909a60492f09e7
|
|
BLAKE2b-256 checksum How to use checksums |
f159239968e316c0bbed0a719de2ba5290f06262a2960f9f203f5c105df8451f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / ncjishaku-3.1.0-py3-none-any.whl
| Download URL | ncjishaku-3.1.0-py3-none-any.whl |
|---|---|
| Size | 82.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
60e0e2a1cc49dd210198b54479fc522bdf40528f74821ed77a6cd8bfa93eb1cd
|
|
BLAKE2b-256 checksum How to use checksums |
d3d47a7ef75061fdcad7019ae66ad26bfed1d883a89c5f8caf926fdebad194d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|