Metadata-Version: 2.4
Name: mcedu
Version: 0.0.3
Summary: Provides methods to query Minecraft Education's discovery API and to generate tokens.
Author: josef240
License: MIT License
        
        Copyright (c) 2026 josef240
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
Keywords: minecraft,mcedu,joincode,discovery,minecraft education,minecraft auth,bedrock
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests-oauthlib>=2.0.0
Requires-Dist: requests
Dynamic: license-file

# mcedu
Provides methods to query Minecraft Education's discovery/joincode API and to generate related tokens.

## Installation

### From PyPI

```shell
pip install mcedu
```

### From Github

```shell
pip install git+https://github.com/josef240/mcedu.git
```

### Build Locally

```shell
git clone https://github.com/josef240/mcedu.git
cd mcedu
python -m pip install setuptools, build
python -m build
```

## Usage Example

```python
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))
```
