{"id":18622397,"url":"https://github.com/mrf0rtuna4/modrinthpy","last_synced_at":"2025-04-11T03:31:19.349Z","repository":{"id":257808617,"uuid":"864183667","full_name":"mrf0rtuna4/modrinthpy","owner":"mrf0rtuna4","description":"🏗 The python wrapper for ModrinthAPI","archived":false,"fork":false,"pushed_at":"2025-03-04T18:21:19.000Z","size":52,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T07:46:04.460Z","etag":null,"topics":["modrinth","modrinth-api","wrapper-api"],"latest_commit_sha":null,"homepage":"https://modrinth.com","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/mrf0rtuna4.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":"2024-09-27T16:44:17.000Z","updated_at":"2025-03-04T18:21:22.000Z","dependencies_parsed_at":"2025-03-04T19:23:40.019Z","dependency_job_id":null,"html_url":"https://github.com/mrf0rtuna4/modrinthpy","commit_stats":null,"previous_names":["mrf0rtuna4/modrinthpy"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrf0rtuna4%2Fmodrinthpy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrf0rtuna4%2Fmodrinthpy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrf0rtuna4%2Fmodrinthpy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrf0rtuna4%2Fmodrinthpy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrf0rtuna4","download_url":"https://codeload.github.com/mrf0rtuna4/modrinthpy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248335432,"owners_count":21086589,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["modrinth","modrinth-api","wrapper-api"],"created_at":"2024-11-07T04:16:43.404Z","updated_at":"2025-04-11T03:31:19.340Z","avatar_url":"https://github.com/mrf0rtuna4.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n    \u003cimage src=\"https://github.com/user-attachments/assets/c037660a-c363-4794-b805-dfbf7b55f3e3\"\u003e\n    \u003ch1\u003eModrinthPy\u003c/h1\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n    \u003ca href=\"https://pypi.org/project/modrinthpy/\"\u003e\n        \u003cimg src=\"https://img.shields.io/pypi/v/modrinthpy\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/mrf0rtuna4/modrinthpy/blob/main/LICENSE\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/license/mrf0rtuna4/modrinthpy\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://pypi.org/project/modrinthpy/\"\u003e\n        \u003cimg src=\"https://img.shields.io/pypi/pyversions/modrinthpy\"\u003e\n    \u003c/a\u003e\n\u003c/div\u003e\n\n\u003e [!WARNING]\n\u003e This library is under development and may contain errors!\n\n**ModrinthPy** is an unofficial Python API client for interacting with the [Modrinth](https://modrinth.com/) platform.\n\n## Installation \n\nYou can install the library using pip:\n```bash\npip install modrinthpy\n```\n\n## Usage Examples \n\n### Mod Search \n\nYou can easily search for mods on Modrinth by name, ID or filters:\n\n```python\nfrom modrinthpy import ModrinthClient\n\nclient = ModrinthClient()\n\ndef display_search_results(results):\n    if not results:\n        print(\"No projects found.\")\n    else:\n        print(f\"Found {len(results)} projects:\")\n        for project in results:\n            print(f\"Slug: {project.slug} | Title: {project.title}\")\n\nasync def run_search(search_query):\n    results = await client.search_projects(search_query)\n    display_search_results(results)\n\nsearch = input(\"Write Prompt: \")\n\nclient.run(run_search(search))\n```\n\n### Getting information about project\n\nYou can also get information about a particular project by knowing its ID or Slug:\n\n```python\nfrom modrinthpy import ModrinthClient\n\nclient = ModrinthClient()\n\nasync def get():\n    mod = await client.get_project(slug=\"sodium\")\n    print(mod.title)\n    print(mod.description)\n    print(mod.downloads)\n\nclient.run(get())\n```\n\n\n## Contributing\n\nAll forms of participation in the project are welcome! If you find a bug or want to suggest improvements, create an `Issue` or make a `Pull Request`.\n\n1. Forks Repository\n2. Create a new branch for your changes (`git checkout -b feature/YourFeature`)\n3. Make the changes\n4. Open Pull Request\n\n## License\n\nThis project is licensed under the MIT license. For more details see file [LICENSE](https://github.com/mrf0rtuna4/modrinthpy/blob/main/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrf0rtuna4%2Fmodrinthpy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrf0rtuna4%2Fmodrinthpy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrf0rtuna4%2Fmodrinthpy/lists"}