Skip to main content

MoyskladAPI

Асинхронная библиотека для работы с API МойСклад

PyPI version Downloads Status API Version Python

Установка

pip install moyskladapi

Примеры использования

Создание, обновление и удаление товара

import asyncio

from moyskladapi import MoyskladAPI
from moyskladapi.types import Product


async def main():
    async with MoyskladAPI(token="your_token_here") as api:
        product = await api.create_product(Product(name="Тестовый товар"))
        print(f"Создан: {product.name} [{product.id}]")

        product = await api.update_product(product.id, Product(description="Описание товара"))
        print(f"Описание: {product.description}")

        await api.delete_product(product.id)
        print("Удалён")


asyncio.run(main())

Фильтрация товаров

import asyncio

from moyskladapi import MoyskladAPI, F


async def main():
    async with MoyskladAPI(token="your_token_here") as api:
        results = await api.get_products(
            filters=[F.archived == False, F.weight > 1.0],
            expand="supplier",
            limit=10,
        )
        for p in results.rows:
            print(f"{p.name}  |  поставщик: {p.supplier.name if p.supplier else '—'}")


asyncio.run(main())

Остатки

import asyncio

from moyskladapi import MoyskladAPI


async def main():
    async with MoyskladAPI(token="your_token_here") as api:
        stock = await api.get_stock_current()
        low = [s for s in stock.rows if s.quantity and s.quantity < 5]
        print(f"Заканчиваются: {len(low)} позиций")


asyncio.run(main())

Metadata

Release files for moyskladapi 0.14.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for moyskladapi 0.14.0
File Size Uploaded Provenance
moyskladapi-0.14.0.tar.gz 238.0 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for moyskladapi 0.14.0
File Interpreter ABI Platform
moyskladapi-0.14.0-py3-none-any.whl Python 3 none any Details

Total release size: 1.0 MB

Release files / moyskladapi-0.14.0.tar.gz

Download URL moyskladapi-0.14.0.tar.gz
Size 238.0 kB
Tags Source
SHA-256 checksum
How to use checksums
eb1b98cc2dcf56ed1d27f265a5fa172b3cda2d11da84b8a12c1a7d1f40845e99
BLAKE2b-256 checksum
How to use checksums
42f4acc0b5a777c8f851bda701ea17fb3e04b212d90d23aa3c04b7f5f60f6559
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 9, 2026.

Transparency log

Release files / moyskladapi-0.14.0-py3-none-any.whl

Download URL moyskladapi-0.14.0-py3-none-any.whl
Size 779.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a5d6cef0bf1d93cc9e01599bf3f57fe87159253ac73ad0c85497a726159717ab
BLAKE2b-256 checksum
How to use checksums
53aa0bb19e434b245b6f3ce2a6bb16ef80dc600efe6a36bbf1ead024291bf29f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 9, 2026.

Transparency log

Security for moyskladapi 0.14.0

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.

Select from 2 files

Attestation for moyskladapi-0.14.0.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 Jun 9, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page