juc500 정상동작
This commit is contained in:
+1
@@ -0,0 +1 @@
|
||||
pip
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
Metadata-Version: 2.4
|
||||
Name: platformdirs
|
||||
Version: 4.10.0
|
||||
Summary: A small Python package for determining appropriate platform-specific dirs, e.g. a `user data dir`.
|
||||
Project-URL: Changelog, https://platformdirs.readthedocs.io/en/latest/changelog.html
|
||||
Project-URL: Documentation, https://platformdirs.readthedocs.io
|
||||
Project-URL: Homepage, https://github.com/tox-dev/platformdirs
|
||||
Project-URL: Source, https://github.com/tox-dev/platformdirs
|
||||
Project-URL: Tracker, https://github.com/tox-dev/platformdirs/issues
|
||||
Maintainer-email: Bernát Gábor <gaborjbernat@gmail.com>, Julian Berman <Julian@GrayVines.com>, Ofek Lev <oss@ofek.dev>, Ronny Pfannschmidt <opensource@ronnypfannschmidt.de>
|
||||
License-Expression: MIT
|
||||
License-File: LICENSE
|
||||
Keywords: appdirs,application,cache,directory,log,user
|
||||
Classifier: Development Status :: 5 - Production/Stable
|
||||
Classifier: Intended Audience :: Developers
|
||||
Classifier: License :: OSI Approved :: MIT License
|
||||
Classifier: Operating System :: OS Independent
|
||||
Classifier: Programming Language :: Python
|
||||
Classifier: Programming Language :: Python :: 3 :: Only
|
||||
Classifier: Programming Language :: Python :: 3.10
|
||||
Classifier: Programming Language :: Python :: 3.11
|
||||
Classifier: Programming Language :: Python :: 3.12
|
||||
Classifier: Programming Language :: Python :: 3.13
|
||||
Classifier: Programming Language :: Python :: 3.14
|
||||
Classifier: Programming Language :: Python :: Implementation :: CPython
|
||||
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
||||
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
||||
Requires-Python: >=3.10
|
||||
Description-Content-Type: text/markdown
|
||||
|
||||
# platformdirs
|
||||
|
||||
[](https://badge.fury.io/py/platformdirs)
|
||||
[](https://pypi.python.org/pypi/platformdirs/)
|
||||
[](https://github.com/platformdirs/platformdirs/actions)
|
||||
[](https://pepy.tech/project/platformdirs)
|
||||
|
||||
A Python package for determining platform-specific directories (e.g. user data, config, cache, logs). Handles the
|
||||
differences between macOS, Windows, Linux/Unix, and Android so you don't have to.
|
||||
|
||||
## Quick start
|
||||
|
||||
```python
|
||||
from platformdirs import PlatformDirs
|
||||
|
||||
dirs = PlatformDirs("MyApp", "MyCompany")
|
||||
dirs.user_data_dir # ~/.local/share/MyApp (Linux)
|
||||
dirs.user_config_dir # ~/.config/MyApp (Linux)
|
||||
dirs.user_cache_dir # ~/.cache/MyApp (Linux)
|
||||
dirs.user_state_dir # ~/.local/state/MyApp (Linux)
|
||||
dirs.user_log_dir # ~/.local/state/MyApp/log (Linux)
|
||||
dirs.user_documents_dir # ~/Documents
|
||||
dirs.user_downloads_dir # ~/Downloads
|
||||
dirs.user_runtime_dir # /run/user/<uid>/MyApp (Linux)
|
||||
```
|
||||
|
||||
For Path objects instead of strings:
|
||||
|
||||
```python
|
||||
from platformdirs import PlatformDirs
|
||||
|
||||
dirs = PlatformDirs("MyApp", "MyCompany")
|
||||
dirs.user_data_path # pathlib.Path('~/.local/share/MyApp')
|
||||
dirs.user_config_path # pathlib.Path('~/.config/MyApp')
|
||||
```
|
||||
|
||||
Convenience functions for quick access:
|
||||
|
||||
```python
|
||||
from platformdirs import user_data_dir, user_config_path
|
||||
|
||||
user_data_dir("MyApp", "MyCompany") # returns str
|
||||
user_config_path("MyApp", "MyCompany") # returns pathlib.Path
|
||||
```
|
||||
|
||||
## Directory types
|
||||
|
||||
**Application directories** — scoped to your app name and version:
|
||||
|
||||
- **Data**: Persistent application data (`user_data_dir`, `site_data_dir`)
|
||||
- **Config**: Configuration files and settings (`user_config_dir`, `site_config_dir`)
|
||||
- **Preference**: User preferences, distinct from config on macOS (`user_preference_dir`)
|
||||
- **Cache**: Cached data that can be regenerated (`user_cache_dir`, `site_cache_dir`)
|
||||
- **State**: Non-essential runtime state like window positions (`user_state_dir`, `site_state_dir`)
|
||||
- **Logs**: Log files (`user_log_dir`, `site_log_dir`)
|
||||
- **Runtime**: Runtime files like sockets and PIDs (`user_runtime_dir`, `site_runtime_dir`)
|
||||
|
||||
App dirs have both `user_*` (per-user, writable) and `site_*` (system-wide, read-only) variants where applicable.
|
||||
|
||||
**User media directories** — standard user-facing folders, not scoped to app name:
|
||||
|
||||
- **Documents** (`user_documents_dir`), **Downloads** (`user_downloads_dir`)
|
||||
- **Pictures** (`user_pictures_dir`), **Videos** (`user_videos_dir`), **Music** (`user_music_dir`)
|
||||
- **Desktop** (`user_desktop_dir`), **Projects** (`user_projects_dir`)
|
||||
- **Public share** (`user_publicshare_dir`), **Templates** (`user_templates_dir`)
|
||||
- **Fonts** (`user_fonts_dir`) — user-writable font installation directory
|
||||
- **Executable** (`user_bin_dir`, `site_bin_dir`), **Applications** (`user_applications_dir`, `site_applications_dir`)
|
||||
|
||||
## Documentation
|
||||
|
||||
Full documentation is available at [platformdirs.readthedocs.io](https://platformdirs.readthedocs.io):
|
||||
|
||||
- **[Getting started tutorial](https://platformdirs.readthedocs.io/en/latest/tutorial.html)** -- learn core concepts
|
||||
through real-world examples
|
||||
- **[How-to guides](https://platformdirs.readthedocs.io/en/latest/howto.html)** -- recipes for common tasks and
|
||||
platform-specific tips
|
||||
- **[API reference](https://platformdirs.readthedocs.io/en/latest/api.html)** -- complete list of functions and classes
|
||||
- **[Platform details](https://platformdirs.readthedocs.io/en/latest/platforms.html)** -- default paths for each
|
||||
operating system
|
||||
|
||||
Contributions are welcome! See [CONTRIBUTING.md](https://github.com/tox-dev/platformdirs/blob/main/CONTRIBUTING.md) for
|
||||
details.
|
||||
@@ -0,0 +1,24 @@
|
||||
platformdirs-4.10.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
||||
platformdirs-4.10.0.dist-info/METADATA,sha256=xO4Y9bbSs4USowwokgCxRj8pioJhyPpj8lhOqX6Tz3g,5463
|
||||
platformdirs-4.10.0.dist-info/RECORD,,
|
||||
platformdirs-4.10.0.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
|
||||
platformdirs-4.10.0.dist-info/licenses/LICENSE,sha256=KeD9YukphQ6G6yjD_czwzv30-pSHkBHP-z0NS-1tTbY,1089
|
||||
platformdirs/__init__.py,sha256=j-8oWLg3d5yoqzoiISxjwOuoHijzs2ehIoyjQgWMteI,32329
|
||||
platformdirs/__main__.py,sha256=H36IZqfc9v0ePzWsua50wmq4ShRCONCYv66rzpIVptI,1761
|
||||
platformdirs/__pycache__/__init__.cpython-311.pyc,,
|
||||
platformdirs/__pycache__/__main__.cpython-311.pyc,,
|
||||
platformdirs/__pycache__/_xdg.cpython-311.pyc,,
|
||||
platformdirs/__pycache__/android.cpython-311.pyc,,
|
||||
platformdirs/__pycache__/api.cpython-311.pyc,,
|
||||
platformdirs/__pycache__/macos.cpython-311.pyc,,
|
||||
platformdirs/__pycache__/unix.cpython-311.pyc,,
|
||||
platformdirs/__pycache__/version.cpython-311.pyc,,
|
||||
platformdirs/__pycache__/windows.cpython-311.pyc,,
|
||||
platformdirs/_xdg.py,sha256=5w6S07vVabEROhaUB_X7i0hmLNbdYtC9aEvPbsEIS8M,7894
|
||||
platformdirs/android.py,sha256=BBj3wfw-dfuVxsCsKsvFByKVspRDgfv8gwIzhpE1JRQ,11566
|
||||
platformdirs/api.py,sha256=EaIsFgXGu8cDTb41WM3hse_SrIoOUht8_TCo5XdOOSM,14887
|
||||
platformdirs/macos.py,sha256=PWudeDZAY9UuwLP_5rN3exSRFtYdY542hDhjah4dSWA,9538
|
||||
platformdirs/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||
platformdirs/unix.py,sha256=X7Cip1xOHFOnSVveqKWzU1P7jn4zuDGpRgmVxJnk4vk,13317
|
||||
platformdirs/version.py,sha256=dJvdm7L_7wobEcxrNoJtH7CtmYcG_VR5yNmtBshJ-xs,522
|
||||
platformdirs/windows.py,sha256=YOdSGNhdpxm_ydZq7uG74i9mX2_WWbcMSA4fobXwL0M,15798
|
||||
@@ -0,0 +1,4 @@
|
||||
Wheel-Version: 1.0
|
||||
Generator: hatchling 1.29.0
|
||||
Root-Is-Purelib: true
|
||||
Tag: py3-none-any
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2010-202x The platformdirs developers
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
Reference in New Issue
Block a user