This project has been archived by its maintainers, and is no longer receiving any updates.
mvsma
mvsma, aka mhamster's very simple modrinth api (wrapper), is a super simple modrinth api wrapper for python.
Package provides plain and simple access to modrinth's api endpoints and returns json responses. Very easy to use!
For information about api models see modrinth api documentation.
But why?
Because why would you want to mess with api yourself, when some random guy from internet (like me) can do it for you?
Issues and contributions
Want to improve this project? Feel free to create forks and/or pull requests!
Something does not work as intended? Feel free to open issue and describe what actually went wrong.
Examples
Search for a projects:
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])
Get versions of a project:
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)
Get list of random projects
from mvsma import Modrinth
m = Modrinth()
# Get list of random projects
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.random_projects(count=11)
print(response)
Installation
pip install mvsma
Documentation:
TODO
License:
MIT License, find more in 'LICENSE' file
Metadata
Release files for mvsma 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mvsma-1.0.2.tar.gz | 3.8 kB | Without provenance | Details for mvsma-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mvsma-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for mvsma-1.0.2-py3-none-any.whl |
Total release size: 8.5 kB
Release files / mvsma-1.0.2.tar.gz
| Download URL | mvsma-1.0.2.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ab22872abce618c19dc435e967229e12a2de20c3dfa76dec283270b7444145c4
|
|
BLAKE2b-256 checksum How to use checksums |
937defca543d9b89d96292b4325001b234f32a09d6038c7ecc6eb4695596d344
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / mvsma-1.0.2-py3-none-any.whl
| Download URL | mvsma-1.0.2-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6196bfafc61d37b5739a38a86eb4c00b7ebeb317a8c1eb1f90ab5cd98fe445a1
|
|
BLAKE2b-256 checksum How to use checksums |
7702a5b0e40bbe3f8cd06ea159c94d3edc9f6ee6e1ee8f644d5983b82cf2299e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Security for mvsma 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.