Install & Compatibility
Where this runs
tested against v0.3.2 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 33.2MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 2.7s · import 0.000s · 34MB
31MB installed
● package 31MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Artifact
✓ from pymaven import Artifact
✗ from pymaven import mvn
Version
✓ from pymaven import Version
VersionRange
✓ from pymaven import VersionRange
Create a Maven artifact coordinate and resolve its dependencies.
from pymaven import artifact, mvn
# Create an artifact coordinate
coord = artifact.Artifact(group_id='com.example', artifact_id='my-lib', version='1.0.0')
print(f"Coordinate: {coord}")
# Resolve dependencies (requires internet access to Maven Central)
# This will fetch the POM and resolve transitive dependencies
try:
deps = mvn.resolve(coord)
print(f"Number of dependencies: {len(deps)}")
except Exception as e:
print(f"Resolution failed: {e}")
Upgrade
Version history
0.3.2latest on PyPI · released Mar 21, 2024
Audit
Dependencies
requestsrequiredHTTP requests to Maven repositories
lxmlrequiredXML parsing for Maven POM files