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.1.tar.gz (29.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

viur_toolkit-0.2.1-py3-none-any.whl (32.6 kB view details)

Uploaded Python 3

File details

Details for the file viur_toolkit-0.2.1.tar.gz.

File metadata

  • Download URL: viur_toolkit-0.2.1.tar.gz
  • Upload date:
  • Size: 29.0 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.1.tar.gz
Algorithm Hash digest
SHA256 88dfd6856a5066cbd2cb570640ec404ac2ae1bbbdcb72da8ae8540df12d23d74
MD5 b5e81d53e6c7fef2bbb8b59cc87e5b30
BLAKE2b-256 7d0f5aebeaf2cb466573de42f2d4d87056017e33a52a96cf4d4ce82e66cb0785

See more details on using hashes here.

File details

Details for the file viur_toolkit-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: viur_toolkit-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 32.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for viur_toolkit-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 660b6469c3552fb0083fb9c20b37fc7a41873a709f90335e344746ac3a5ec720
MD5 ffdd63466185ee4d98abfbae3cac9edd
BLAKE2b-256 3ab333b7652b169b89d8de882a57a45cf34a49225cb8383f77813dfddca626de

See more details on using hashes here.

Supported by

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