Skip to main content

Professional Python SDK for MiCloud API

Project description

""" MiCloud SDK - Python библиотека для работы с MiCloud API

Быстрый старт:

from micloud_sdk import MiCloudClient

client = MiCloudClient(api_key="your_api_key")

# Получить информацию о пользователе
user = client.auth.get_current_user()
print(f"Пользователь: {user.username}")

# Загрузить файл
file_info = client.files.upload("path/to/file.txt")
print(f"Файл загружен: {file_info.name}")

# Создать репозиторий
repo = client.repos.create("Мой проект", "Описание")
print(f"Репо создано: {repo.name}")

Асинхронное использование:

import asyncio

async def main():
    client = MiCloudClient(api_key="your_api_key")
    user = await client.auth.get_current_user_async()
    print(f"Пользователь: {user.username}")
    await client.close()

asyncio.run(main())

Или с контекстным менеджером:

async with MiCloudClient("api_key") as client:
    user = await client.auth.get_current_user_async()
    print(f"Пользователь: {user.username}")

"""

version = "1.0.0" author = "MiCloud Team" all = [ "MiCloudClient", "MiCloudError", "AuthenticationError", "RateLimitError", "NotFoundError", "ValidationError", ]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

micloud_sdk-1.0.0.tar.gz (12.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

micloud_sdk-1.0.0-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

Details for the file micloud_sdk-1.0.0.tar.gz.

File metadata

  • Download URL: micloud_sdk-1.0.0.tar.gz
  • Upload date:
  • Size: 12.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for micloud_sdk-1.0.0.tar.gz
Algorithm Hash digest
SHA256 446c8ff8af49997445670d48c8f1e4a869def2c50b135ee825e6cd6b6e81a98e
MD5 255c76edba2ee4dcdf089f13e74bc09a
BLAKE2b-256 a466d409b3c5b7e8e2ce9882d2b9dd14df5369cba3c99897935c3af7dd5030ae

See more details on using hashes here.

File details

Details for the file micloud_sdk-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: micloud_sdk-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 15.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for micloud_sdk-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0f06cdeb1fc743b483b22eaeb1b74a0c64227c19b86bffda5836c28a3de3210f
MD5 cd0030953c8f9c92bf5a2db2747d9c87
BLAKE2b-256 a695eaa331dcfa667e4d64cf500c7cf3a12d9bfc2bfa6d0b612ce689a3dbf944

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page