MChat 
A console chat client for most Minecraft server versions. This project is a combination of @ammaraskar's PyCraft client library, and @willmcgugan's rich text library for Python.
Installation
From PIP
# Install PyCraft
python3 -m pip install https://github.com/ammaraskar/pyCraft.git
# Install MChat
python3 -m pip install mchat
From Source
To install from source using the Poetry build tool and pyenv, clone this repository, then run:
pyenv install 3.9.0
pyenv local 3.9.0
poetry install
Usage
MChat can be run as mchat if installed from PIP or as poetry run python3 -m mchat if running from the GIT repo.
Usage is as follows:
usage: mchat [-h] [-p PORT] [-u USERNAME] [-v VERSION] server_address
A console chat client for most Minecraft server versions
positional arguments:
server_address IP address of a Minecraft server
optional arguments:
-h, --help show this help message and exit
-p PORT, --port PORT Minecraft server port (default: 25565)
-u USERNAME, --username USERNAME
Minecraft username or email
-v VERSION, --version VERSION
Client -> Server protocol version to use (default: 1.16.4)
You will be prompted for a username (if not passed as an argument), and password when running the program.
FAQ
Are colors configurable?
No. Terminal colors are not directly configurable from this program, as server-sent formatting data is fed directly into the rich text formatter. Your terminal emulator may allow you to customize your pallette though.
What Minecraft versions are supported?
Anything supported by PyCraft. Entering an invalid version when running mchat will tell you what is supported by the version of PyCraft you have installed. For example, this is the result at the time of writing:
$ mchat -v 0.0.0 example.com
0.0.0 is not a valid Minecraft version. Versions from 1.7.2 to 20w48a are allowed.
You can update PyCraft from PIP to pull in new version support as needed.
Screenshots
Demo on mcctf.com
Metadata
Release files for mchat 0.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 | Provenance | Actions |
|---|---|---|---|---|
| mchat-0.1.0.tar.gz | 15.0 kB | Without provenance | Details for mchat-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mchat-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for mchat-0.1.0-py3-none-any.whl |
Total release size: 30.2 kB
Release files / mchat-0.1.0.tar.gz
| Download URL | mchat-0.1.0.tar.gz |
|---|---|
| Size | 15.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c905a7454a12fba533b90ebbd7870f7eadab6c1a3622f81bf0273d889d431a11
|
|
BLAKE2b-256 checksum How to use checksums |
f621ce2cd963c8d4e73759165aec13440ad437fc476fc1bd64177bdea0219122
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.9.0 Linux/5.3.0-050300-generic
|
Release files / mchat-0.1.0-py3-none-any.whl
| Download URL | mchat-0.1.0-py3-none-any.whl |
|---|---|
| Size | 15.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f58eb06c5dc17c7bcfbedcf035476230b9dd4f4a371b942193525617c9b041da
|
|
BLAKE2b-256 checksum How to use checksums |
fa9aa4f2624c67e88ce1b2c68f52adedd3133dcaa71fccb26442748b95ab269c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.9.0 Linux/5.3.0-050300-generic
|
Security for mchat 0.1.0
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.