Skip to main content

[!IMPORTANT] Work in progress, will roughly follow crates/directories, internal dogfooding for now.

SmartDirs

📂 System Directories and Utilities 📂

📦 Description

A modular platform directories package with conveniences:

  • Resources: Get your package root or resources directories too
  • Re-exports pathlib.Path for 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

If you're not sure about the file name format, learn more about wheel file names.

smartdirs-0.0.2-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

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

Hashes for smartdirs-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 209e8f4d9beb7e6cda4433f09b8a6df53a23d82cd45931a7f4e2b9d99017fba4
MD5 983198131c104a53e3152550178bb83c
BLAKE2b-256 553a9c12dfe10f7ab2b1834f610ae854eb73f4b96dca337fa8e9910c7a0faf04

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page