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.3.0.tar.gz (9.8 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.3.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: async_pcloud-0.3.0.tar.gz
  • Upload date:
  • Size: 9.8 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.3.0.tar.gz
Algorithm Hash digest
SHA256 229b1a24c3a933cf471d4c0294aeed6b92fbc4f74beac916545e80ceb87b8fd0
MD5 9f74299a11153451cd9ccbe60d8a0637
BLAKE2b-256 6ed6cb5e1fe783135700636bea09fa6ac5c4944a3e8dfc6bf453908c15fe549c

See more details on using hashes here.

Provenance

The following attestation bundles were made for async_pcloud-0.3.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.3.0-py3-none-any.whl.

File metadata

  • Download URL: async_pcloud-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 8.6 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7659760339bbe7c97c006ff13a9b816f8671d6af27c2f46268ae97178cb564c3
MD5 1b55deb96d8888610ec442439598ded5
BLAKE2b-256 9a26ae0792d7d2a8bf5baea9f3689e0bb427d7204462a4f5cbaf34377363cf09

See more details on using hashes here.

Provenance

The following attestation bundles were made for async_pcloud-0.3.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