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.1.3.tar.gz (9.6 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.1.3-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: async_pcloud-0.1.3.tar.gz
  • Upload date:
  • Size: 9.6 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.1.3.tar.gz
Algorithm Hash digest
SHA256 217f21f87ba67c64abfffb61c97fdafb295254d7260e13cb0fde2fb296a8222e
MD5 f4f114599e13caf103223a8f969a8c16
BLAKE2b-256 9cacb8cd68da447fd66f7934941bbf3825bb5456c1d56e6c7d8985c17d9a3278

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: async_pcloud-0.1.3-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.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2cf8c408c08821050e34bf3b464f27952f6ca641ef51415c33a0f86c7b2305e6
MD5 3292f737a393ac1fb07a11618bf6f755
BLAKE2b-256 3c9237e2056ed33e3098b27110ddb427e34e2d34694f65b7ef67be2ec1206eb2

See more details on using hashes here.

Provenance

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