{"id":42699439,"url":"https://github.com/summer/mojang","last_synced_at":"2026-01-29T14:15:00.702Z","repository":{"id":46997004,"uuid":"288825773","full_name":"summer/mojang","owner":"summer","description":"A wrapper for the Mojang API and Minecraft website","archived":false,"fork":false,"pushed_at":"2023-03-18T00:01:58.000Z","size":20,"stargazers_count":38,"open_issues_count":1,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-20T12:28:03.734Z","etag":null,"topics":["api","api-client","api-wrapper","mojang","mojang-api","mojangapi","pypi","python","python-library"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/summer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-19T20:02:53.000Z","updated_at":"2025-07-29T07:21:04.000Z","dependencies_parsed_at":"2024-06-20T22:09:05.916Z","dependency_job_id":null,"html_url":"https://github.com/summer/mojang","commit_stats":{"total_commits":7,"total_committers":1,"mean_commits":7.0,"dds":0.0,"last_synced_commit":"89f649534dbf376cda92ceda1decf26cc8ed8d48"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/summer/mojang","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/summer%2Fmojang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/summer%2Fmojang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/summer%2Fmojang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/summer%2Fmojang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/summer","download_url":"https://codeload.github.com/summer/mojang/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/summer%2Fmojang/sbom","scorecard":{"id":858320,"data":{"date":"2025-08-11","repo":{"name":"github.com/summer/mojang","commit":"89f649534dbf376cda92ceda1decf26cc8ed8d48"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 0/7 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-jh85-wwv9-24hv"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T00:30:44.775Z","repository_id":46997004,"created_at":"2025-08-24T00:30:44.775Z","updated_at":"2025-08-24T00:30:44.775Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28879168,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T10:31:27.438Z","status":"ssl_error","status_checked_at":"2026-01-29T10:31:01.017Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","api-client","api-wrapper","mojang","mojang-api","mojangapi","pypi","python","python-library"],"created_at":"2026-01-29T14:15:00.471Z","updated_at":"2026-01-29T14:15:00.692Z","avatar_url":"https://github.com/summer.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"#\n[![PyPI version](https://badge.fury.io/py/mojang.svg)](https://badge.fury.io/py/mojang)\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/mojang?style=flat-square)\n\n[![Read the Docs](https://img.shields.io/readthedocs/mojang?style=flat-square)](https://mojang.readthedocs.io/en/latest/)\n[![MIT License](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/summer/mojang/blob/master/LICENSE/)\n[![PyPI - Monthly Downloads](https://img.shields.io/pypi/dm/mojang?style=flat-square)](https://pypistats.org/packages/mojang)\n\n[**Documentation**](https://mojang.readthedocs.io/en/latest/)\n\n```Mojang``` is a Python package for accessing Mojang's services. This library can be used to convert UUIDs, get a profile's information, change your Minecraft username or skin, and much more. \n\nThere are 2 components to this package, which are imported in different ways:\n\n- **Public API** - Used to parse information about Minecraft profiles and more. Authentication is not required.\n- **Client API** - Used to login to a Mojang account and access it.\n\nAt the moment, the Client API only supports authenticating to a Minecraft account via Microsoft's authentication scheme, so your Minecraft account must already be migrated. Alternatively, you may authenticate to a Mojang account directly with a Bearer token.\n\n\n## Installation\n**Python 3.7 or higher is required.**\n\nThe easiest way to install the library is using `pip`. Just run the following console command:\n\n```\npython -m pip install mojang\n```\n\n\n## **Public API Quickstart**\n\n```py\nfrom mojang import API\n\n# Create a Public API instance\napi = API()\n\nuuid = api.get_uuid(\"Notch\")\n\nif not uuid:\n    print(\"Notch is not a taken username.\")\nelse:\n    print(f\"Notch's UUID is {uuid}\")\n\n    profile = api.get_profile(uuid)\n    print(f\"Notch's skin URL is {profile.skin_url}\")\n    print(f\"Notch's skin variant is {profile.skin_variant}\")\n    print(f\"Notch's cape URL is {profile.cape_url}\")\n```\n\n- [Full Public API documentation](https://mojang.readthedocs.io/en/latest/api/)\n\n\n## **Client API Quickstart**\nTo log into a Mojang account, the account must already be migrated to Microsoft. \nThis means that you will be using your Microsoft credentials to login.\n\n```py\nfrom mojang import Client\n\nclient = Client(\"YOUR_MICROSOFT_EMAIL\", \"YOUR_PASSWORD\")\n\n# Get the account's profile information\nprofile = client.get_profile()\n\nprint(profile.id)\nprint(profile.name)\n\nfor skin in profile.skins:\n    print(skin.id)\n    print(skin.enabled)\n    print(skin.url)\n    print(skin.variant)\n```\n\nAlternatively, supply a Bearer token and skip the Microsoft authentication process.\n```py\nclient = Client(bearer_token=\"MOJANG_BEARER_TOKEN_HERE\")\n```\nIf authentication fails, such as due to an incorrect email or password, a `LoginFailure` exception will occur.\n\n- [Full Client API documentation](https://mojang.readthedocs.io/en/latest/client/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsummer%2Fmojang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsummer%2Fmojang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsummer%2Fmojang/lists"}