Local locations for Python
It's mi vida loca.
Loca is a highly opinionated redesign of appdirs. It relies on pathlib,
dataclasses and @property to replace most of the parameters in
the original library to create a more intuitive API.
Usage
from loca import Loca
loca = Loca()
assert loca == loca.user.data == loca.data.user
assert loca.state() == loca.user.state()
assert loca.config == loca.user.config
assert loca.cache() == loca.cache.user()
shared = loca.shared
assert shared == loca.shared.data == loca.data.shared
foobar_shared_config = shared.config() / 'foobar'
Contributing
Patches must pass the checks run by tox and should be sent to
~cnx/misc@lists.sr.ht using git send-email,
with the following configurations:
git config sendemail.to '~cnx/misc@lists.sr.ht'
git config format.subjectPrefix 'PATCH python-loca'
Copying
Loca is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Release files for loca 2.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| loca-2.0.1.tar.gz | 8.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| loca-2.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.6 kB
Release files / loca-2.0.1.tar.gz
| Download URL | loca-2.0.1.tar.gz |
|---|---|
| Size | 8.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
13dec9098d57b546bd9bb8e21ade0d043cb6e6dc184f6b409b2496fdd0f7c064
|
|
BLAKE2b-256 checksum How to use checksums |
41feff75c5c903e2821a464882df822c497092778f6854b4bfcee33c6fa97a29
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.25.1
|
Release files / loca-2.0.1-py3-none-any.whl
| Download URL | loca-2.0.1-py3-none-any.whl |
|---|---|
| Size | 10.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
01ca8e50c68d07396d9cbf27391f860000909218445ca01e9d7ac16198d87747
|
|
BLAKE2b-256 checksum How to use checksums |
82eaae63fdfb45a604c8eccd8e0f9b7b0241a02ec89ba595d6188850ca4dc259
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.25.1
|