Super simple modrinth api wrapper for python
Project description
mvsma
mvsma (aka mhamster's very simple modrinth api (wrapper)) is a super simple modrinth api wrapper for python.
It provides plain and simple access to modrinth's api endpoints.
Examples
Search:
from mvsma import Modrinth
m = Modrinth()
# Search for mod called 'cesium' and print first result
m.ua = 'Package example from https://github.com/mhamsterr/mvsma' # Edit User-Agent of request so everyone will know who we are and what we are doing
response = m.search(query="cesium")
print(response["hits"][0])
Versions:
from mvsma import Modrinth
m = Modrinth()
# Get versions of mod with slug "supercoolmod"
m.ua = 'Package example from https://github.com/mhamsterr/mvsma' # Edit User-Agent of request so everyone will know who we are and what we are doing
response = m.project_versions(slug="supercoolmod")
print(response)
Documentation:
TODO
Installation
pip install mvsma
License:
MIT License, find more in 'LICENSE' file
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
mvsma-0.0.1.tar.gz
(3.5 kB
view details)
Built Distribution
mvsma-0.0.1-py3-none-any.whl
(4.4 kB
view details)
File details
Details for the file mvsma-0.0.1.tar.gz
.
File metadata
- Download URL: mvsma-0.0.1.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e710b82d580d1671ad896642589ed591c3c76b6f6788b155fd0c5cf855b81d2 |
|
MD5 | 537ccaa78d0f0d70f5a5263c63b0c69a |
|
BLAKE2b-256 | 0d1dbcb4f878cf7d088ed162433d8c57b504dd13b360f339fd2a7bf8375b1b9d |
File details
Details for the file mvsma-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: mvsma-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6038b91049434b6a36d66f3a8c42084c54dcef2dfed7fe5ca9ca43da2d5ff45 |
|
MD5 | b341586102889ff3aa9f1b598b57af17 |
|
BLAKE2b-256 | f6f03799094a6b2817a362102b2144e4f5a513380159a856b48ae6b43f48811f |