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
pipenv run precommit_install
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.
Alternative:
Setup the pre-commit hook with pipenv run precommit_install
.
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.2.0.tar.gz
(28.7 kB
view details)
Built Distribution
File details
Details for the file viur_toolkit-0.2.0.tar.gz
.
File metadata
- Download URL: viur_toolkit-0.2.0.tar.gz
- Upload date:
- Size: 28.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17ad5476d3a9ee0779433ec342c38bec80d3611c01be71a70ad6cefc365c8eb5 |
|
MD5 | f556b7359646e849698eebda8f806a80 |
|
BLAKE2b-256 | ef4d667b01fde1e7f4d5caba99a4eec9b1f38472b82bc9c7824f0eb1298e247e |
File details
Details for the file viur_toolkit-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: viur_toolkit-0.2.0-py3-none-any.whl
- Upload date:
- Size: 32.3 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 | 68df848665448272206328f1712c328d0923d1af5ca7244089062ee53872ee55 |
|
MD5 | a12b8dd06066dc0027a53c95312b686c |
|
BLAKE2b-256 | d29beb5a3f04f3aabd189f25a5d48eb3835280b26e1cac00c5ecce9fbe16f0a1 |