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.2.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.2.0-py3-none-any.whl (132.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: marz_lib-1.2.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.2.0.tar.gz
Algorithm Hash digest
SHA256 1cfc96e6d1d8093b0e81c3a365f2d6610bca2e75edccf906987bab251a096bb1
MD5 6cfa47f5cebca263ce1c8acde338f311
BLAKE2b-256 db58a952face62684d19a9a46afab97d2d582ddf1b96a0f6ce73437e891061d8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: marz_lib-1.2.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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 daab3df7386d694c25b1248a55ba90431bd5e639ce17dbfbf510ca04cc08012e
MD5 4dd1f11e0e6f24b47474409157cb7972
BLAKE2b-256 cd139c9ea0123f0c5fa4e38647ffd5977a16ae5858cdae0ec8ddf084abb737ac

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