用于与mojangapi交互的python库
mojapi的Python项目详细描述
#墨汁 用于与mojangapi交互的python库。
#安装 ` pip install mojapi `
#用法
按照http://wiki.vg/Mojang_API中的说明向mojang发出基本的api请求。在适当的情况下,时间戳将转换为原生pythondatetime
对象,base64编码的json对象将自动展开。
`python >>> from mojapi import * >>> get_uuid('gozug') {'id': 'bdc46881e95447b694e82d10bac42ccb', 'name': 'gozug'} >>> get_detailed_profile('bdc46881e95447b694e82d10bac42ccb') {'properties': [{'value': {'textures': {'SKIN': {'url': 'http://textures.minecraft.net/texture/1d9e8dafe7d87bb7cba7eb3d8d2d5bf58eab72ecdfdf9ecce3d1c03871c0'}}, 'profileId': 'bdc46881e95447b694e82d10bac42ccb', 'timestamp': datetime.datetime (2016, 9, 8, 23, 44, 15, 472000), 'profileName': 'gozug'}, 'name': 'textures'}], 'id': 'bdc46881e95447b694e82d10bac42ccb', 'name': 'gozug'} `
#贡献 欢迎捐款。