Skip to main content

A kit of helpers and tools to simplify more intensive use of ViUR

Project description

viur-toolkit

Badge showing current PyPI version Badge displaying the license
A kit of helpers and tools to simplify more intensive use of ViUR

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


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.0rc1.tar.gz (28.6 kB view details)

Uploaded Source

Built Distribution

viur_toolkit-0.2.0rc1-py3-none-any.whl (32.3 kB view details)

Uploaded Python 3

File details

Details for the file viur_toolkit-0.2.0rc1.tar.gz.

File metadata

  • Download URL: viur_toolkit-0.2.0rc1.tar.gz
  • Upload date:
  • Size: 28.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for viur_toolkit-0.2.0rc1.tar.gz
Algorithm Hash digest
SHA256 55c1b372f5abc2c375a0e219132c2b98682a93d0fd105317229717bb30404691
MD5 5daa7a1fcd1077b2d0612b80009ab45f
BLAKE2b-256 5e0af1f42d16289d5d7ad76544ee3b416ce8a0fc67fcf47399160b9b9ea758ec

See more details on using hashes here.

File details

Details for the file viur_toolkit-0.2.0rc1-py3-none-any.whl.

File metadata

File hashes

Hashes for viur_toolkit-0.2.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 50cdebfc1170634cd289ab494f3d47dd187e0cd7bd857764a36f1d3939eee1e0
MD5 d1c3412ff9fcc3d55f87362be9d2eda6
BLAKE2b-256 5ede000ec1d3161d4437b770c25fbbe9f33a4ed280683a6893b76e006f4a2a6f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page