Accessing iCloud paths
Project description
iCloud Paths
A Python module for accessing common iCloud paths on macOS and Windows.
Installation
uv add icloud-paths
Usage
iCloud class
from icloud_paths import iCloud
if iCloud.available:
drive = iCloud.drive
desktop = iCloud.desktop
documents = iCloud.documents
downloads = iCloud.downloads
photos = iCloud.photos
Standalone functions
from icloud_paths import (
get_icloud_drive_path,
get_icloud_desktop_path,
get_icloud_documents_path,
get_icloud_downloads_path,
get_icloud_photos_path,
is_icloud_available,
)
if is_icloud_available():
drive = get_icloud_drive_path()
desktop = get_icloud_desktop_path()
documents = get_icloud_documents_path()
API
iCloud class properties
iCloud.drive- iCloud Drive pathiCloud.desktop- iCloud Desktop pathiCloud.documents- iCloud Documents pathiCloud.downloads- iCloud Downloads pathiCloud.photos- Photos Library path (macOS) or iCloud Photos folder (Windows)iCloud.available-Trueif iCloud is accessible
Standalone functions
get_icloud_drive_path()- Returns iCloud Drive pathget_icloud_desktop_path()- Returns iCloud Desktop pathget_icloud_documents_path()- Returns iCloud Documents pathget_icloud_downloads_path()- Returns iCloud Downloads pathget_icloud_photos_path()- Returns Photos Library path (macOS) or iCloud Photos folder (Windows)is_icloud_available()- Checks if iCloud is accessible
All paths return None if the path is not available, or raise OSError if not on macOS/Windows.
Requirements
- Python 3.8+
- macOS or Windows with iCloud for Windows installed
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
icloud_paths-0.1.1.tar.gz
(2.5 kB
view details)
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 icloud_paths-0.1.1.tar.gz.
File metadata
- Download URL: icloud_paths-0.1.1.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d905af1c6ecd8ff8087f82eb7a079d9d5cd7c20c97260a7d0406cb5e7433edce
|
|
| MD5 |
14bda8b7bd1a196d29c5ebb4fb3e0d71
|
|
| BLAKE2b-256 |
79f3baa995d3ae4a0e4daf35081c347c4461ca2f694d38daf92a9809e954ee24
|
File details
Details for the file icloud_paths-0.1.1-py3-none-any.whl.
File metadata
- Download URL: icloud_paths-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1ea592c9700c844f3a147953ea70c43ae7e079db51dbb282e57f5562779494c
|
|
| MD5 |
a6e62597802e9a5cabe9f0e68becd02d
|
|
| BLAKE2b-256 |
43c92f3584402f1eefd5631e2e4157befec5d388041f3c83deb71050b0b4bfdc
|