Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.4
rev: v0.15.5
hooks:
- id: ruff-check
- id: ruff-format
Expand Down
6 changes: 4 additions & 2 deletions docs/PROJECT_DESCRIPTION.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ uv add mpt-api-client
from mpt_api_client import MPTClient

# client = MPTClient(api_key=<your_api_key>, base_url=<mpt_api_url>)
client = MPTClient() # Reads MPT_API_TOKEN and MPT_API_BASE_URL from the environment
client = MPTClient() # Reads MPT_API_TOKEN and MPT_API_BASE_URL from the environment

for product in client.catalog.products.iterate():
print(product.name)
Expand All @@ -36,12 +36,14 @@ for product in client.catalog.products.iterate():
import asyncio
from mpt_api_client import AsyncMPTClient


async def main():
# client = AsyncMPTClient(api_key=<your_api_key>, base_url=<mpt_api_url>)
client = AsyncMPTClient() # Reads MPT_API_TOKEN and MPT_API_BASE_URL from the environment
client = AsyncMPTClient() # Reads MPT_API_TOKEN and MPT_API_BASE_URL from the environment
async for product in client.catalog.products.iterate():
print(product.name)


asyncio.run(main())
```

Expand Down
60 changes: 30 additions & 30 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.