Yeti-web Admin API SDK
The documentation for the Yeti-web Admin API can be found here.
Installation
Install from PyPi using pip, a package manager for Python.
pip3 install yeti-switch-api
Or download source code and run:
python3 setup.py install
Usage
import yeti_switch_api
yeti_switch_api.orm.OrmClient({
'API_ROOT': 'https://myhost.com/api/rest/admin',
'AUTH_CREDS': {
'login': 'mylogin',
'password': 'mypassword',
},
'VALIDATE_SSL': True,
'TIMEOUT': 10,
})
# refresh auth token in any time
yeti_switch_api.orm.OrmClient.auth.refresh_token()
# use the api
found_contractors = yeti_switch_api.orm.Contractor.get_list()
See examples/ for detailed usage examples.
Development
Requirements
pipenv can be installed via apt install pipenv
Python 3.7+
Install dependencies
pipenv install --dev
Lint with flake8
pipenv run python -m flake8 . --count --show-source --statistics
Fix code format with Black
pipenv run python -m black .
Release
Change __version_info__ in yeti_switch_api/__init__.py
Build package
pipenv run python setup.py sdist
pipenv run python setup.py bdist_wheel
As result you will have files:
dist/yeti_switch_api-<VERSION>.tar.gz
dist/yeti_switch_api-<VERSION>-py3-none-any.whl
Check package
pipenv run python -m twine check dist/*
Upload package to pypi
pipenv run python -m twine upload dist/*
Notes: see this guide how to set up pypi account
Upload package to test pypi
pipenv run python -m twine upload -r testpypi dist/*
Metadata
Release files for yeti-switch-api 1.2.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 |
|---|---|---|---|---|
| yeti_switch_api-1.2.2.tar.gz | 11.5 kB | With provenance | Details for yeti_switch_api-1.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| yeti_switch_api-1.2.2-py3-none-any.whl | Python 3 | none | any | Details for yeti_switch_api-1.2.2-py3-none-any.whl |
Total release size: 30.9 kB
Release files / yeti_switch_api-1.2.2.tar.gz
| Download URL | yeti_switch_api-1.2.2.tar.gz |
|---|---|
| Size | 11.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
934fed4e0652cc558d9b1e0b99795e52b842d0278db4e5f0523524e48c78ea19
|
|
BLAKE2b-256 checksum How to use checksums |
2a4b84e12f75fe34d039451e11cafe54d880212358197ea604b52d2afb35bd9a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 12, 2026.
Transparency logRelease files / yeti_switch_api-1.2.2-py3-none-any.whl
| Download URL | yeti_switch_api-1.2.2-py3-none-any.whl |
|---|---|
| Size | 19.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7f7d20a7d28c1d8bb2b44fe743b86e2dcc41820b53c3e948dfee0beaf577e9ac
|
|
BLAKE2b-256 checksum How to use checksums |
018de3d23c3f25df3108cd9a86a0a449c50e2796b3f2255873680a3ee2feda0d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 12, 2026.
Transparency logSecurity for yeti-switch-api 1.2.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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for yeti_switch_api-1.2.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 12, 2026.
Transparency logA 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.