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.0.0.tar.gz (36.2 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.0.0-py3-none-any.whl (132.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for marz_lib-1.0.0.tar.gz
Algorithm Hash digest
SHA256 383bd3352e495ae6685793de6cec4a70af3b796728dc09974611b085e3cf1c86
MD5 c97eb0b2edc02d3a57c8b33b4a3a2023
BLAKE2b-256 f3d9cb23ece8ed75bbba4181ea813b4288e8ffdb52ddd25bc99693a87af5bdea

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for marz_lib-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5d08e80bc0d918ed240ea0db4279b399daf5e1d9b2cf687a4be2ac9908516b46
MD5 ceb8006293692a4ad4a0afde99fb532a
BLAKE2b-256 90a979f515cd51b813cdb3ec8a2443bc129d071c9928ff8fa97b4e02c40aef55

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