A PyBridge extension to manipulate FileSystem locations on any platform
Project description
LightBridge
A PyBridge extension to manipulate FileSystem locations on any platform
Linux
Use LightBridge to path directories on Linux
Linux Directories
- Desktop
- Documents
- Downloads
- Music
Example
The code below shows how to use LightBridge on Linux environments
import LightBridge
from LightBridge import Linux
print(Linux.Desktop)
print(Linux.Documents)
### Output
/home/YOUR_USER/Desktop/
/home/YOUR_USER/Documents/
Mac
Use LightBridge to path directories on Mac
Mac Directories
- Applications
- Desktop
- Documents
- Downloads
- Movies
- Music
- Pictures
- Public
Example
The code below shows how to use LightBridge on Mac environments
import LightBridge
from LightBridge import Mac
print(Mac.Desktop)
print(Mac.Documents)
### Output
/Users/YOUR_USER/Desktop/
/Users/YOUR_USER/Documents/
Windows
Use LightBridge to path directories on Windows
Windows Directories
- ApplicationData
- Desktop
- Documents
- Downloads
- LocalAppData
- Temp
- Pictures
- Favorites
Example
The code below shows how to use LightBridge on Windows environments
import LightBridge
from LightBridge import Windows
print(Windows.Desktop)
print(Windows.Documents)
### Output
C:\Users\YOUR_USER/Desktop/
C:\Users\YOUR_USER/Documents/
Android
Use LightBridge to path directories on Android
Android Directories
Internal Storage Access
- Home
- Documents
- Downloads
- Movies
- Pictures
Example
The code below shows how to use LightBridge on Android environments
import LightBridge
from LightBridge import Android
print(Android.CurrentPath)
print(Android.InternalStorage.Home)
print(Android.InternalStorage.Documents)
print(Android.InternalStorage.Downloads)
print(Android.InternalStorage.Movies)
print(Android.InternalStorage.Pictures)
### Output
/storage/emulated/0/PYTHON_APP_FOR_ANDROID
/storage/emulated/0/
/storage/emulated/0/Documents/
/storage/emulated/0/Download/
/storage/emulated/0/Movies/
/storage/emulated/0/Pictures/
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
Built Distribution
Close
Hashes for LightBridge-hbisneto-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 548e91ec2829923c720a53e3a905dd9065651af507a99429279419c8fc2fbabd |
|
MD5 | 1fe254247e3c7ba8db6d1aefb73e910c |
|
BLAKE2b-256 | 3fd2d63ae67d44e438ae3fed6f06656008617daac6a086e678e0343e55ef9e37 |
Close
Hashes for LightBridge_hbisneto-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22fdfba22f7d6dab1a76ec23e3f9d5dfdcb5b57251274c6a371fb13c9c3d3178 |
|
MD5 | 3af7cd06699c4e62e24a0479930fe8c9 |
|
BLAKE2b-256 | a1ec5178b35f2641a3dcfbd87bae5f54dfd2c1599c889fc9a06e1bda33788ab5 |