Skip to main content

Async python API client for PCloud

Project description

async_pcloud - Async python API client for PCloud

this in an indirect fork of https://github.com/tomgross/pcloud/

Package test status PyPI version

Difference

It's async, uses aiohttp. I plan to reimplement all functions, and add extra - implement some of the NotImplemented, make useful combinations.

update: pcloud has too many methods, i won't implement all of them

why i made this?

because i have not found any async packages for pcloud

Installation

# install from PyPI
pip install async_pcloud

Examples

there are 2 ways to use the AsyncPyCloud.

  1. manual connect, disconnect (needed for session, because this is async):
import asyncio
from async_pcloud import AsyncPyCloud
pcloud = AsyncPyCloud("token", endpoint="api")

async def main():
    await pcloud.connect()
    data = await pcloud.listfolder(folderid=0)
    print(data)
    # when you're done
    await pcloud.disconnect()

asyncio.run(main())
  1. async with - auto connect, disconnect:
pcloud = AsyncPyCloud("token")

async def main():
    async with pcloud:
    # 'async with AsyncPyCloud("token") as pcloud:' will also work
        data = await pcloud.listfolder(folderid=0)
        print(data)

Class arguments

  • AsyncPyCloud
    • token - the api token, you can generate one with get_auth()
    • endpoint - can be 'api' or 'eapi', choose the one used by your account
    • folder - base folder name, will be added before the path param
    • headers - you can make custom user agent or something

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

async_pcloud-0.2.0.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

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

async_pcloud-0.2.0-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file async_pcloud-0.2.0.tar.gz.

File metadata

  • Download URL: async_pcloud-0.2.0.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for async_pcloud-0.2.0.tar.gz
Algorithm Hash digest
SHA256 776dc0ca1817e92d6bb40f0574db517de652ee9e42e6b87a7985682f8762d251
MD5 22bbe08cd04e7a38d72a3ceb6fc6778f
BLAKE2b-256 fa65a6ae0b815083f53b506a2aba21adc6576429246f76d4c1fefeeff2f41e93

See more details on using hashes here.

Provenance

The following attestation bundles were made for async_pcloud-0.2.0.tar.gz:

Publisher: python-publish.yml on Noob-Lol/async_pcloud

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file async_pcloud-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: async_pcloud-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for async_pcloud-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d551a8daaacd2a0cd9f7e621bac3a9395367ce86dd4e30559ee2839cbc683a01
MD5 a23c885bae7276950e89fd31f46e936e
BLAKE2b-256 e00ed285766e0833aed3123996175cbfba710c8c47976f87f65f67aa07f3dfdf

See more details on using hashes here.

Provenance

The following attestation bundles were made for async_pcloud-0.2.0-py3-none-any.whl:

Publisher: python-publish.yml on Noob-Lol/async_pcloud

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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