Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcedu-0.0.3-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

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

Hashes for mcedu-0.0.3.tar.gz
Algorithm Hash digest
SHA256 90ebe13ff0e284b146a8a712ec92ba9e1cae6bfaefb521f45ac3f96301cc0bec
MD5 f5ba89aaaf5570f0801154450fa422e5
BLAKE2b-256 8af3cb673790d4c9a08da40c487c502530bbb4cb1473dc0f62731784630b0336

See more details on using hashes here.

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

Hashes for mcedu-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c4f8cf83265073978f45b42f83e21db586dacb7b243da536b7d6bd211d5ae48e
MD5 c3ea139cf764055108e9bff54dadf2c5
BLAKE2b-256 72262a44e426ecb644c47051a72c829830e19e218f9c1c5136e07bab39b1e99e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page