Skip to main content

A simple ACL system

Project description

Vtat

A simple ACL system
Pypi - Vtat
Other Vtats

VTAT(ENGLISH)

JSON EXAMPLE

{
"groups": {
  "users": [
    "group:other",
    "user:vtat"
  ],
  "other": [
    "user:other"
  ],
}
}

IMPORT

import vtat

OR

from vtat import *

FUNCTIONS

addGroup(json_array, group)

In json_array add group, group And return json_array.

removeGroup(json_array, group)

It remove group in json_array and return json_array.

addObject(json_array, group, name)

In json_array add object, name in group, group And return json_array and Object name must be group:(group name) or user:(user name).

eraseObject(json_array, group, name)

It delete name in group in json_array and return json_array. and Object name must be group:(group name) or user:(user name).

userExists(json_array, group, user)

It is return True or False If in json_array in group exist user, It return True. If not in json_array in group exist user, It return False. But Don't use it.(Instead of use meet()) and Uesr must be group:(group name) or user:(user name).

groupExists(json_array, group)

It is return True or False If in json_array exist group, It return True. If not in json_array exist group, It return False.

meet(json_array, group, name)

It return True or False If in json_array exist name in group (It works even if there are users in subgroups within the group.) It return True If not in json_array exist name in group (It works even if there are users in subgroups within the group.) It return False And name must be group:(group name) or user:(user name).

removeObject(json_array, name)

It delete name in all. And name must be group:(group name) or user:(user name).

replaceObject(json_array, old_name, new_name)

It replace from old_name to new_name in all groups. And old_name and new_name must be group:(group name) or user:(user name).

renameGroup(json_array, old_name, new_name)

It rename group from old_name to new_name

renameObject(json_array, group, old_name, new_name)

It replace from old_name to new_name in group in json_array. And old_name and new_name must be group:(group name) or user:(user name).

(BETA) listGroups(json_array)

It return all groups in json_array

(BETA) listObjects(json_array)

It return all objects in json_array

(BETA) listObjectsOfGroup(json_array, group)

It return objects in group in json_array

(BETA) getGroupsOfObject(json_array, name)

It return included name all groups.

(BETA) objectIsInAnyGroup(json_array, name)

It return included name any groups.

(BETA) getSubgroups(json_array, group)

It return subgroups in group.

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

vtat-0.0.9.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

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

vtat-0.0.9-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file vtat-0.0.9.tar.gz.

File metadata

  • Download URL: vtat-0.0.9.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.10.0 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/1.0.0 urllib3/1.26.15 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.8

File hashes

Hashes for vtat-0.0.9.tar.gz
Algorithm Hash digest
SHA256 8e21ffa30c0c578ae0a4c8e757e64b99b2f40967a92b31d2c1abf317c250f795
MD5 89e307e14971c547ef07bb4ebd78f7bd
BLAKE2b-256 2dc6bf0e392a4b9adca191965d899f51d3e111ea2a5bf0f56286d9d294fd1016

See more details on using hashes here.

File details

Details for the file vtat-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: vtat-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.10.0 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/1.0.0 urllib3/1.26.15 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.8

File hashes

Hashes for vtat-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 c0e2f8ad79b7bb3a66c75e9437d2528b9906b6d5c8e498d74c338ff95bbe31b8
MD5 a99ab01c0aecdb4b460e85729f5dcb52
BLAKE2b-256 a4dafcc1d477ac5d8d8f79edae621c4a3c6265fedbaf16e6f5d078f92fb34ec5

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