Skip to main content

A client library for accessing MarzbanAPI

Project description

marz-lib

Python client library for the current Marzban API. Package name: marz-lib.

Requirements

  • Python 3.8+
  • pip
  • recommended: isolated virtualenv

Install dependencies

python -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install build

If you want to work with the package locally:

python -m pip install -e .

Build the library

This project uses pyproject.toml with poetry-core as the build backend.

Build both sdist and wheel:

python -m build

Build artifacts will appear in:

dist/

Typical output:

  • dist/marz_lib-<version>.tar.gz
  • dist/marz_lib-<version>-py3-none-any.whl

Install the built wheel

python -m pip install dist/*.whl

Rebuild from scratch

rm -rf build dist *.egg-info
python -m build

Quick validation

You can validate the package modules with:

python -m py_compile marz_lib/__init__.py

Or install the wheel into a fresh virtualenv and import it:

python - <<'PY'
import marz_lib
print('ok')
PY

Notes

  • The package metadata is defined in pyproject.toml.
  • setup.py is not required for this project.
  • If you need to publish to PyPI, build first and then upload dist/* with twine.

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

marz_lib-1.3.0.tar.gz (36.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

marz_lib-1.3.0-py3-none-any.whl (132.9 kB view details)

Uploaded Python 3

File details

Details for the file marz_lib-1.3.0.tar.gz.

File metadata

  • Download URL: marz_lib-1.3.0.tar.gz
  • Upload date:
  • Size: 36.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for marz_lib-1.3.0.tar.gz
Algorithm Hash digest
SHA256 03f55f89203f6df19d5de178f3f53a6fbe7667c53cc2ce5ebebf4a8e100ca4c9
MD5 97003ec078cc08f5bd59ca18e2d25bbb
BLAKE2b-256 ad3218b9a73eeef4385d48277c1edcb74bb39475fe5ae65f3c9c60d2008461c8

See more details on using hashes here.

File details

Details for the file marz_lib-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: marz_lib-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 132.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for marz_lib-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b3240e0c0f251b979853283726cbc1efbcbe15882873af9641bf52e6679c3a51
MD5 ecac9df664aa77b13c0d6b5c037a189c
BLAKE2b-256 8486b4fd85998a06fdc0ec2acf47d4a2eab5f1ad33484343415b615b198ba5e3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page