Provides methods to query Minecraft Education's discovery API and to generate tokens.
Project description
mcedu
Provides methods to query Minecraft Education's discovery/joincode API and to generate related tokens.
Installation
From PyPI
pip install mcedu
From Github
pip install git+https://github.com/josef240/mcedu.git
Build Locally
git clone https://github.com/josef240/mcedu.git
cd mcedu
python -m pip install setuptools, build
python -m build
Usage Example
from mcedu.discovery import DiscoveryClient,WorldParams, parseJoinCode
from mcedu.config import get_config, easyStartup
from mcedu.auth import AuthFlow
auth=easyStartup()
config=get_config()
config.saveSettings()
discovery=DiscoveryClient(auth.mstoken)
ServerToken,JoinCode=discovery.host(WorldParams(nethernetID=67212867493148092771))
print(parseJoinCode(JoinCode))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mcedu-0.0.1.tar.gz
(13.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
mcedu-0.0.1-py3-none-any.whl
(16.0 kB
view details)
File details
Details for the file mcedu-0.0.1.tar.gz.
File metadata
- Download URL: mcedu-0.0.1.tar.gz
- Upload date:
- Size: 13.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ce3b54bfc90b332e8883ea4c4e784e58170aea6efb10608d78deaa1aea6c7dd
|
|
| MD5 |
7b22828ee98116617f6611c78f33309f
|
|
| BLAKE2b-256 |
41a3c06865fcb31c69e05ac0eab7ee8b511c64a9926d1ed845e1d7201784a6f8
|
File details
Details for the file mcedu-0.0.1-py3-none-any.whl.
File metadata
- Download URL: mcedu-0.0.1-py3-none-any.whl
- Upload date:
- Size: 16.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3461660eb4b2eb79389630a5fbe97de3ca7b8644e2a9b0371b355dc0222a5277
|
|
| MD5 |
68d179c569fdc1075a274efb1846d461
|
|
| BLAKE2b-256 |
f8988fa280803006036d4cac7fc1cd3c45d737dd29b58fe9360d111215f45589
|