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/
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.
- 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())
- 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
776dc0ca1817e92d6bb40f0574db517de652ee9e42e6b87a7985682f8762d251
|
|
| MD5 |
22bbe08cd04e7a38d72a3ceb6fc6778f
|
|
| BLAKE2b-256 |
fa65a6ae0b815083f53b506a2aba21adc6576429246f76d4c1fefeeff2f41e93
|
Provenance
The following attestation bundles were made for async_pcloud-0.2.0.tar.gz:
Publisher:
python-publish.yml on Noob-Lol/async_pcloud
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
async_pcloud-0.2.0.tar.gz -
Subject digest:
776dc0ca1817e92d6bb40f0574db517de652ee9e42e6b87a7985682f8762d251 - Sigstore transparency entry: 790938181
- Sigstore integration time:
-
Permalink:
Noob-Lol/async_pcloud@39df3e701684e3a52e56f99656715a55485996ca -
Branch / Tag:
refs/tags/0.2.0 - Owner: https://github.com/Noob-Lol
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@39df3e701684e3a52e56f99656715a55485996ca -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d551a8daaacd2a0cd9f7e621bac3a9395367ce86dd4e30559ee2839cbc683a01
|
|
| MD5 |
a23c885bae7276950e89fd31f46e936e
|
|
| BLAKE2b-256 |
e00ed285766e0833aed3123996175cbfba710c8c47976f87f65f67aa07f3dfdf
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
async_pcloud-0.2.0-py3-none-any.whl -
Subject digest:
d551a8daaacd2a0cd9f7e621bac3a9395367ce86dd4e30559ee2839cbc683a01 - Sigstore transparency entry: 790938185
- Sigstore integration time:
-
Permalink:
Noob-Lol/async_pcloud@39df3e701684e3a52e56f99656715a55485996ca -
Branch / Tag:
refs/tags/0.2.0 - Owner: https://github.com/Noob-Lol
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@39df3e701684e3a52e56f99656715a55485996ca -
Trigger Event:
release
-
Statement type: