[!IMPORTANT] Work in progress, will roughly follow
crates/directories, internal dogfooding for now.
📦 Description
A modular platform directories package with conveniences:
- Resources: Get your package root or resources directories too
- Re-exports
pathlib.Pathfor a single import line (wow!) - Workspace: Easily set a root for base, user, site directories
📦 Usage
# file: appname/__init__.py
from smartdirs import Path, SmartDirs
dirs = SmartDirs(
package=Path(__file__).parent,
name=str(__package__),
)
# file: appname/main.py
import appname
# Access paths
appname.dirs.user_data
appname.dirs.resources
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
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 smartdirs-0.0.2-py3-none-any.whl.
File metadata
- Download URL: smartdirs-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
209e8f4d9beb7e6cda4433f09b8a6df53a23d82cd45931a7f4e2b9d99017fba4
|
|
| MD5 |
983198131c104a53e3152550178bb83c
|
|
| BLAKE2b-256 |
553a9c12dfe10f7ab2b1834f610ae854eb73f4b96dca337fa8e9910c7a0faf04
|