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.3.tar.gz
(13.8 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.3-py3-none-any.whl
(16.6 kB
view details)
File details
Details for the file mcedu-0.0.3.tar.gz.
File metadata
- Download URL: mcedu-0.0.3.tar.gz
- Upload date:
- Size: 13.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
90ebe13ff0e284b146a8a712ec92ba9e1cae6bfaefb521f45ac3f96301cc0bec
|
|
| MD5 |
f5ba89aaaf5570f0801154450fa422e5
|
|
| BLAKE2b-256 |
8af3cb673790d4c9a08da40c487c502530bbb4cb1473dc0f62731784630b0336
|
File details
Details for the file mcedu-0.0.3-py3-none-any.whl.
File metadata
- Download URL: mcedu-0.0.3-py3-none-any.whl
- Upload date:
- Size: 16.6 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 |
c4f8cf83265073978f45b42f83e21db586dacb7b243da536b7d6bd211d5ae48e
|
|
| MD5 |
c3ea139cf764055108e9bff54dadf2c5
|
|
| BLAKE2b-256 |
72262a44e426ecb644c47051a72c829830e19e218f9c1c5136e07bab39b1e99e
|