devel/py-platformdirs 4.3.6 DragonFly
Python module for determining appropriate platform-specific dirs
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- MIT
- Categories
- devel, python
- Package size
- 29.7 KiB, 255.6 KiB installed
Description
When writing desktop application, finding the right location to store user data and configuration varies per platform. Even for single-platform apps, there may by plenty of nuances in figuring out the right location.
This kind of thing is what the platformdirs module is for. platformdirs will help you choose an appropriate:
- user data dir (user_data_dir)
- user config dir (user_config_dir)
- user cache dir (user_cache_dir)
- site data dir (site_data_dir)
- site config dir (site_config_dir)
- user log dir (user_log_dir)
- user runtime dir (user_runtime_dir)
And also:
- Is a single module so other Python packages can vendor their own private copy.
- Is slightly opinionated on the directory names used. Look for "OPINION" in documentation and code for when an opinion is being applied.
In the other systems
| System | Port | Version |
|---|---|---|
| DragonFly | devel/py-platformdirs | 4.3.6 |
| FreeBSD | devel/py-platformdirs | 4.11.12 |
| NetBSD | misc/py-platformdirs | 4.11.8 |
| MidnightBSD | devel/py-platformdirs | 4.3.6_1 |
| HardenedBSD | devel/py-platformdirs | 4.11.12 |
| GhostBSD | devel/py-platformdirs | 4.11.11 |
Install
Binary package:
pkg install py311-platformdirs
From DPorts:
cd /usr/dports/devel/py-platformdirs && make install clean
Dependencies
Run dependencies 1
Required by 36
- databases/py-snowflake-connector-python
- deskutils/dosage
- devel/py-b2
- devel/py-black
- devel/py-copier
- devel/py-hatch
- devel/py-jupyter-core
- devel/py-openstacksdk
- devel/py-pdm
- devel/py-pip-audit
- devel/py-pip-run
- devel/py-pipx
- devel/py-poetry
- devel/py-pooch
- devel/py-pyscaffold
- devel/py-pytoolconfig
- devel/py-pytools
- devel/py-requirementslib
- devel/py-tox
- devel/py-virtualenv
- devel/pylint
- finance/py-yfinance
- misc/py-wandb
- multimedia/py-subliminal
- net/py-urlextract
- net/py-zeep
- ports-mgmt/py-nvchecker
- science/py-libpysal
- textproc/py-mkdocs
- textproc/py-mkdocs-get-deps
- textproc/py-textual
- textproc/xml2rfc
- www/py-quilt3
- www/py-requests-cache
- www/py-urlwatch
- x11/py-waypaper