Skip to main content
`Ctrl`+`K`

# yndx_disk package

## Subpackages

- yndx_disk.api package
  - Submodules
  - yndx_disk.api.disk module
    - `get_disk_info()`
  - yndx_disk.api.exceptions module
    - `YandexDiskAPIException`
  - yndx_disk.api.operations module
    - `get_operation_status()`
  - yndx_disk.api.public_resources module
    - `get_info()`
    - `get_url()`
    - `save_to_disk()`
  - yndx_disk.api.resources module
    - `copy()`
    - `delete()`
    - `get_all_files()`
    - `get_all_public()`
    - `get_info()`
    - `get_last_uploads()`
    - `get_upload_url()`
    - `get_url()`
    - `mkdir()`
    - `move()`
    - `publish()`
    - `unpublish()`
    - `update_info()`
    - `upload()`
  - yndx_disk.api.trash_resources module
    - `delete()`
    - `get_info()`
    - `restore()`
  - yndx_disk.api.utils module
    - `generate_headers()`
    - `parse_path()`
  - Module contents
- yndx_disk.clients package
  - Submodules
  - yndx_disk.clients.async_client module
    - `AsyncDiskClient`
      - `AsyncDiskClient.copy()`
      - `AsyncDiskClient.delete()`
      - `AsyncDiskClient.delete_trash()`
      - `AsyncDiskClient.get_object()`
      - `AsyncDiskClient.is_paid`
      - `AsyncDiskClient.listdir()`
      - `AsyncDiskClient.listdir_trash()`
      - `AsyncDiskClient.max_file_size`
      - `AsyncDiskClient.move()`
      - `AsyncDiskClient.paid_max_file_size`
      - `AsyncDiskClient.payment_flow`
      - `AsyncDiskClient.photounlim_size`
      - `AsyncDiskClient.publish()`
      - `AsyncDiskClient.reg_time`
      - `AsyncDiskClient.restore_trash()`
      - `AsyncDiskClient.revision`
      - `AsyncDiskClient.system_folders`
      - `AsyncDiskClient.total_space`
      - `AsyncDiskClient.trash_size`
      - `AsyncDiskClient.unlimited_autoupload_enabled`
      - `AsyncDiskClient.unpublish()`
      - `AsyncDiskClient.update_disk_info()`
      - `AsyncDiskClient.upload_file()`
      - `AsyncDiskClient.used_space`
      - `AsyncDiskClient.user`
  - yndx_disk.clients.sync_client module
    - `DiskClient`
      - `DiskClient.copy()`
      - `DiskClient.delete()`
      - `DiskClient.delete_trash()`
      - `DiskClient.get_object()`
      - `DiskClient.listdir()`
      - `DiskClient.listdir_trash()`
      - `DiskClient.move()`
      - `DiskClient.publish()`
      - `DiskClient.restore_trash()`
      - `DiskClient.unpublish()`
      - `DiskClient.update_disk_info()`
      - `DiskClient.upload_file()`
  - Module contents

## Submodules

## yndx_disk.classes module

class yndx_disk.classes.BaseObject(token: str, created_at: str, modified_at: str, name: str, path: str, resource_id: str, revision: int, public_key: str = '', public_url: str = '', in_trash: bool = False)

  Bases: `object`

  created_at: str
  in_trash: bool = False
  modified_at: str
  name: str
  path: str
  public_key: str = ''
  public_url: str = ''
  resource_id: str
  revision: int
  token: str

class yndx_disk.classes.Directory(token: str, created_at: str, modified_at: str, name: str, path: str, resource_id: str, revision: int, public_key: str = '', public_url: str = '', in_trash: bool = False)

  Bases: `BaseObject`

  property contents: list
  property size: int

class yndx_disk.classes.File(token: str, created_at: str, modified_at: str, name: str, path: str, resource_id: str, revision: int, public_key: str = '', public_url: str = '', in_trash: bool = False, antivirus_status: str = '', file_url: str = '', preview_url: str = '', md5: str = '', sha256: str = '', media_type: str = '', mime_type: str = '', size: int = 0)

  Bases: `BaseObject`

  antivirus_status: str = ''
  file_url: str = ''
  md5: str = ''
  media_type: str = ''
  mime_type: str = ''
  preview_url: str = ''
  sha256: str = ''
  size: int = 0

## Module contents