beancount-syspath
Manipulate sys.path from within the beancount file. This is a plugin for
Beancount, a double-entry bookkeeping computer language.
Installation
Install via pip
pip install beancount-syspath
Usage
Prepend list of paths
plugin "beancount_syspath.plugin" "{
'append': ['some/dir', 'other/dir'],
'prepend': ['some/dir', 'other/dir'],
}"
Note: Place the directive before other plugin loading ones, so they can make use of the updated sys.path.
Configuration
The config value is a python dict literal, contains the following keys
| Key | Type | Optional | Default | Meaning |
|---|---|---|---|---|
append |
List[str] |
yes | [] |
Append the list of path to sys.path |
prepend |
List[str] |
yes | [] |
Prepend the list of path to sys.path |
normalize_to_root |
bool |
yes | True |
If the path is relative, it is considered to be relative to the root beancount file, and normalized to absolute path before adding to sys.path. |
Metadata
Release files for beancount-syspath 0.2.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 | |
|---|---|---|---|
| beancount-syspath-0.2.1.tar.gz | 3.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| beancount_syspath-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.5 kB
Release files / beancount-syspath-0.2.1.tar.gz
| Download URL | beancount-syspath-0.2.1.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
045296c4308a1e3870cb3cca8ac7c3ec9ab51d829eab8712240c6a623b9cfcb6
|
|
BLAKE2b-256 checksum How to use checksums |
a10a0987ff4e602ddfa49ad2aaa14c28f3b87f5e152d9e38b3e93fb641cbcdc3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.3 CPython/3.8.1 Linux/5.4.15-arch1-1
|
Release files / beancount_syspath-0.2.1-py3-none-any.whl
| Download URL | beancount_syspath-0.2.1-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4b459796be52b84023bd7bdf2f354d56da1476240f4dc79591a91256f9ce0e8f
|
|
BLAKE2b-256 checksum How to use checksums |
52dc4c277d83a883635f8060a925a21bfa1ba3e0912d0f734e6fc97409600ac3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.3 CPython/3.8.1 Linux/5.4.15-arch1-1
|