|
| 1 | +# avito-py |
| 2 | + |
| 3 | +> `avito-py` is a typed Python SDK for Avito API with synchronous and asynchronous facades, a command-line interface, OAuth handling, retries, pagination, and coverage of 204 Swagger operations. |
| 4 | + |
| 5 | +The documentation is primarily in Russian. The installable distribution is `avito-py`; |
| 6 | +the Python import package is `avito`. Application code should normally begin with |
| 7 | +`AvitoClient` or `AsyncAvitoClient`, while terminal automation can use the `avito` CLI. |
| 8 | + |
| 9 | +The SDK returns typed models rather than raw API payloads. It includes lazy sync and |
| 10 | +async pagination, typed exceptions, a `FakeTransport` for consumer tests, `dry_run` |
| 11 | +support for selected write operations, and documented retry and idempotency behavior. |
| 12 | + |
| 13 | +## Start Here |
| 14 | + |
| 15 | +- [Documentation home](https://18studio.github.io/avito_python_api/): Project overview and documentation map. |
| 16 | +- [Getting started](https://18studio.github.io/avito_python_api/tutorials/getting-started/): Installation, credentials, client setup, and a first API request. |
| 17 | +- [Authentication and configuration](https://18studio.github.io/avito_python_api/how-to/auth-and-config/): Environment variables, explicit credentials, and settings-based initialization. |
| 18 | +- [Asynchronous usage](https://18studio.github.io/avito_python_api/how-to/async/): `AsyncAvitoClient`, lifecycle management, ASGI integration, and async pagination. |
| 19 | +- [CLI usage](https://18studio.github.io/avito_python_api/how-to/cli/): Profiles, JSON output, diagnostics, and API calls from the terminal. |
| 20 | + |
| 21 | +## API Reference |
| 22 | + |
| 23 | +- [Reference overview](https://18studio.github.io/avito_python_api/reference/): Entry point for the public SDK contract and domain reference. |
| 24 | +- [AvitoClient and AsyncAvitoClient](https://18studio.github.io/avito_python_api/reference/client/): Public facades, construction, context managers, and domain factories. |
| 25 | +- [Configuration](https://18studio.github.io/avito_python_api/reference/config/): `AvitoSettings`, `AuthSettings`, environment variables, timeouts, and operation overrides. |
| 26 | +- [API operation map](https://18studio.github.io/avito_python_api/reference/operations/): Mapping from Swagger operations to public SDK methods. |
| 27 | +- [API coverage](https://18studio.github.io/avito_python_api/reference/coverage/): Swagger binding coverage for the SDK API surface. |
| 28 | +- [Models](https://18studio.github.io/avito_python_api/reference/models/): Typed public model and serialization contracts. |
| 29 | +- [Exceptions](https://18studio.github.io/avito_python_api/reference/exceptions/): Error hierarchy and diagnostic fields. |
| 30 | +- [Pagination](https://18studio.github.io/avito_python_api/reference/pagination/): Lazy `PaginatedList` and `AsyncPaginatedList` behavior. |
| 31 | +- [Testing](https://18studio.github.io/avito_python_api/reference/testing/): `FakeTransport` and consumer-side test utilities. |
| 32 | + |
| 33 | +## Integration Guides |
| 34 | + |
| 35 | +- [How-to recipes](https://18studio.github.io/avito_python_api/how-to/): Index of practical API integration workflows. |
| 36 | +- [Ads, statistics, and promotion](https://18studio.github.io/avito_python_api/how-to/ad-listing-and-stats/): Retrieve listings and statistics and prepare promotion actions. |
| 37 | +- [Chat messages and image upload](https://18studio.github.io/avito_python_api/how-to/chat-image-upload/): Messenger workflows. |
| 38 | +- [Orders, labels, and stock](https://18studio.github.io/avito_python_api/how-to/order-labels/): Order fulfillment and stock update workflows. |
| 39 | +- [Job applications](https://18studio.github.io/avito_python_api/how-to/job-applications/): Vacancies, applications, resumes, and webhooks. |
| 40 | +- [Realty booking](https://18studio.github.io/avito_python_api/how-to/realty-booking/): Calendar blocks and pricing for realty bookings. |
| 41 | +- [Testing with FakeTransport](https://18studio.github.io/avito_python_api/how-to/testing-with-fake-transport/): Test application code without live HTTP requests. |
| 42 | + |
| 43 | +## Architecture And Behavior |
| 44 | + |
| 45 | +- [SDK architecture](https://18studio.github.io/avito_python_api/explanations/architecture/): Responsibilities of clients, domain objects, operation specifications, transport, authentication, and models. |
| 46 | +- [Domain architecture v2](https://18studio.github.io/avito_python_api/explanations/domain-architecture-v2/): Structure and model conventions for domain implementations. |
| 47 | +- [Transport and retries](https://18studio.github.io/avito_python_api/explanations/transport-and-retries/): HTTP behavior and retry policy. |
| 48 | +- [Error model](https://18studio.github.io/avito_python_api/explanations/error-model/): Mapping API failures to typed exceptions. |
| 49 | +- [Dry-run and idempotency](https://18studio.github.io/avito_python_api/explanations/dry-run-and-idempotency/): Safe preparation and retrying of write operations. |
| 50 | +- [Swagger binding subsystem](https://18studio.github.io/avito_python_api/explanations/swagger-binding-subsystem/): How API specifications are bound to public SDK methods and verified. |
| 51 | +- [Security and redaction](https://18studio.github.io/avito_python_api/explanations/security-and-redaction/): Secret handling and safe diagnostics. |
| 52 | + |
| 53 | +## Optional |
| 54 | + |
| 55 | +- [First promotion tutorial](https://18studio.github.io/avito_python_api/tutorials/first-promotion/): Guided `dry_run=True` to live-promotion workflow. |
| 56 | +- [Diagnostics and logging](https://18studio.github.io/avito_python_api/how-to/diagnostics-and-logging/): Debug information and error logging practices. |
| 57 | +- [Per-operation overrides](https://18studio.github.io/avito_python_api/how-to/per-operation-overrides/): Customized timeouts, retries, and idempotency keys. |
| 58 | +- [Changelog](https://18studio.github.io/avito_python_api/changelog/): Published SDK documentation changes. |
| 59 | +- [Source repository](https://github.com/18studio/avito_python_api): Project source code and issue tracker. |
0 commit comments