dpyhr
dpyhr is a hot cog reloader (that uses discord.py cog's implementation) to reload anytime you wanted to save!
Setup
- Install dpyhr with pip (
pip install dpyhr) - Import dpyhr and run it with
import dpyhr
dpyhr.run(
*paths: str,
bot: commands.Bot = None,
selection: Selection = Selection.normal,
reloader: typing.Callable = None,
conditional: typing.Callable = None,
recursive: bool = False,
**kwargs
)
dpyhr.run have a documentation as this
Run dphyr in another thread.
Args:
*paths (str): Paths you want to watch for cogs. Supply those as argument
bot (commands.Bot, Optional): For reloading extensions (if reloader doesn't exists)
selection (Selection, optional): Observer selection. Defaults to Selection.normal.
reloader (typing.Callable, optional): Reload module with your own function. Defaults to None.
conditional (typing.Callable, optional): Conditional when event is triggered. Defaults to None.
recursive (bool, optional): Recursive reloading. Defaults to False.
**kwargs: Other arguments for observer.
Returns:
None: No returns.
Caution
dpyhr wouldn't work if you called your bot outside of the entrypoint starter so nested path wouldn't work in this case. you need to run it inside directory where you want python file to run else reloader might get wrong path and spits errors out.
Why you don't shipped discord.py with this package?
Because dpyhr is trying to be able to compatible with any discord.py versions that have discord.ext.commands (other discord.py forks should works if they have commands.Bot.reload_extension and their package name is discord)
Metadata
Release files for dpyhr 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dpyhr-0.1.1.tar.gz | 4.4 kB | Without provenance | Details for dpyhr-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dpyhr-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for dpyhr-0.1.1-py3-none-any.whl |
Total release size: 11.0 kB
Release files / dpyhr-0.1.1.tar.gz
| Download URL | dpyhr-0.1.1.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c38e99aa9b366b719345e2c90e26f51389e9a3ec3742d501129b5bb6e3627cb4
|
|
BLAKE2b-256 checksum How to use checksums |
e7a4d6f35c45247a10bfa7f429e69118f2afab82d3c6cda0520902bd16be2289
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.10.6 Linux/5.15.0-1035-azure
|
Release files / dpyhr-0.1.1-py3-none-any.whl
| Download URL | dpyhr-0.1.1-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
165bc816b5a6d872cf4f68de19215c9c358587cf3a63906154221a8c29b9ea22
|
|
BLAKE2b-256 checksum How to use checksums |
b6228efdb536d533f9ed88d77525ad5a6524acb72521da5a007437e440c7b0cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.10.6 Linux/5.15.0-1035-azure
|
Security for dpyhr 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.