Skip to main content

GroupMkr is a module that simplifies creation of user groups and permissions in the terminal

Project description

GROUP MKR

Create User groups in the python shell

Procedure

  • Install the module
  • Create a .py file in the apps folder that contains the views and models file
  • Import the add_group function from the module in the file 'from GroupMkr import add_group'
  • Add this line to the file 'add_group (group_name='travellers', permission= 'can book rooms')', edit the strings to your choice
  • Add as many permissions in new lines before running
  • To create the groups from the shell, run the 'python manage.py shell' command and run the 'exec(open('app_name/file').read())'. Edit the app_name and file
  • To create new permissions, remove the already existing permissions and add new ones before running the commands

Check the github repo for the code if interested

https://github.com/mezardini/GroupMkr.git

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

GroupMkr-1.0.0.1.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

GroupMkr-1.0.0.1-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file GroupMkr-1.0.0.1.tar.gz.

File metadata

  • Download URL: GroupMkr-1.0.0.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.5

File hashes

Hashes for GroupMkr-1.0.0.1.tar.gz
Algorithm Hash digest
SHA256 83046525280890b554309ebf4803f3686aaaf9c89ef8fbbf5b7f21cf566dcfc0
MD5 5fcfd31d75ecba69787910764500da87
BLAKE2b-256 a0c32b0388b5d636e92f7375942bf2db7635ca248a75c715d94239bbcb40d9ce

See more details on using hashes here.

File details

Details for the file GroupMkr-1.0.0.1-py3-none-any.whl.

File metadata

  • Download URL: GroupMkr-1.0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.5

File hashes

Hashes for GroupMkr-1.0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 74cff2714e0ccd5db16e5510dd34f5c72ed85d04a568a768a5d8171165d561bd
MD5 7a10d8e13e8d9ca1419299b22839d018
BLAKE2b-256 95e51bad5267dedaecccfe4e22771dce8b5b9a891a7875bcaacb6c4991e67b92

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