A kit of helpers and tools to simplify more intensive use of ViUR
Project description
Usage
Install with pip
pip install viur-toolkit
Install with pipenv
pipenv install viur-toolkit
Example
from viur import toolkit
if toolkit.user_has_access("root"):
print("Hello root user!")
Development / Contributing
Create a fork and clone it
Setup the local environment with pipenv:
cd viur-toolkit
pipenv install --dev
Install as editable in your project
cd myproject
pipenv install -e path/to/viur-toolkit
Code linting & type checking
Use the lint
command
$ pipenv run lint
tu run pep8check
and type_check
at once.
Branches
Depending on what kind of change your Pull Request contains, please submit your PR against the following branches:
- main: fixes/patches that fix a problem with existing code go into this branch. This results in a new patch version (X.X.n+1 where n is the current patch-level).
- develop: new features, refactorings, or adjustments for new versions of dependencies are added to this branch. This becomes a new minor version (X.n+1.0) where n is the current minor-level). Depending on the complexity of the changes, a new major release (n+1.0.0, where n is the current major level) may be chosen instead.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
viur_toolkit-0.1.5.tar.gz
(28.0 kB
view details)
Built Distribution
File details
Details for the file viur_toolkit-0.1.5.tar.gz
.
File metadata
- Download URL: viur_toolkit-0.1.5.tar.gz
- Upload date:
- Size: 28.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59dcbe890b941a22dd5d8782e035e83e310e7fd311b1a193dbff35bea7370242 |
|
MD5 | ec9821c12cd1d9a88d5128e6ce5eae9d |
|
BLAKE2b-256 | 93d58a9bcbd35d338d16ea9acced7a9b9051c71e80dcfda654172b5d02201e8b |
File details
Details for the file viur_toolkit-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: viur_toolkit-0.1.5-py3-none-any.whl
- Upload date:
- Size: 31.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5700138323ce9f24fcd10988f3b2427ab82fb3c3e2d1f46ea06da74933dd1622 |
|
MD5 | 5d1d90be01a65baa75e09dc11a519486 |
|
BLAKE2b-256 | e5334d9a586cae8d5bcd9eadb1318c56b52605cd45a68502a00e0815d93e6135 |