pycord-ipc
A pycord extension for inter-process communication.
Installation
Python >= 3.10.x is required.
# Windows
pip install --upgrade pycord-inter-process
# Linux
pip3 install --upgrade pycord-inter-process
Examples
Server example
import discord
from pycord.ipc import Server
print("Bot starting...")
intents = discord.Intents.all()
bot = discord.Bot(intents=intents)
ipc_server = Server(bot, secret_key=<"your IPCSecret">, host=<"your IPCHost">, port=63719)
@bot.event
async def on_ready():
await ipc_server.start()
# @bot.event
# async def on_ipc_ready():
# """Called upon the IPC Server being ready"""
# print(f"Starting IPC server")
@bot.event
async def on_ipc_error(endpoint, error):
print(f"{endpoint} raised {error}")
@ipc_server.route()
async def get_bot_stats(data):
return {
"guild_count": len(bot.guilds),
"channel_count": sum(len(guild.channels) for guild in bot.guilds),
"member_count": sum(len(guild.members) for guild in bot.guilds),
}
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
bot.run(<"your Token">)
Client example
from quart import Quart, request, session, redirect, url_for, jsonify
from pycord.ipc import Client
app = Quart(__name__)
ipc_client = Client(secret_key=<"your IPCSecret">, host=<"your IPC Server IP">, port=<"your IPC Server Port">)
@app.route("/api/bot/stats", methods=["GET"])
async def get_bot_stats():
try:
bot_stats = await ipc_client.request("get_bot_stats")
return jsonify({
"success": True,
"data": {
"guild_count": bot_stats["guild_count"],
"channel_count": bot_stats["channel_count"],
"member_count": bot_stats["member_count"]
}
})
except Exception as e:
return jsonify({
"success": False,
"error": str(e)
}), 500
if __name__ == "__main__":
app.run(host="0.0.0.0", port=8080, debug=True)
Metadata
Release files for pycord-inter-process 0.1.5
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 |
|---|---|---|---|---|
| pycord_inter_process-0.1.5.tar.gz | 14.4 kB | With provenance | Details for pycord_inter_process-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pycord_inter_process-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for pycord_inter_process-0.1.5-py3-none-any.whl |
Total release size: 27.8 kB
Release files / pycord_inter_process-0.1.5.tar.gz
| Download URL | pycord_inter_process-0.1.5.tar.gz |
|---|---|
| Size | 14.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
281df03112d671dc2c7c25b4ea89a465a092dfa554da0d5f87198a8868ca7c3a
|
|
BLAKE2b-256 checksum How to use checksums |
228d826eb6e7d073643d5fb837ed6d40f205b569964ced1b828d03ad34fd7c56
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 10, 2025.
Transparency logRelease files / pycord_inter_process-0.1.5-py3-none-any.whl
| Download URL | pycord_inter_process-0.1.5-py3-none-any.whl |
|---|---|
| Size | 13.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ff059ad6c6c55d3122c272d6c75e7d4c03d9657056a991482d6f513689f7fa4b
|
|
BLAKE2b-256 checksum How to use checksums |
e36545f927fd3554f45a80b457b6e59721cead4e26db88a491b02cc8a3964a36
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 10, 2025.
Transparency logSecurity for pycord-inter-process 0.1.5
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for pycord_inter_process-0.1.5.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 10, 2025.
Transparency logA 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.