Skip to main content

A simple ACL system

Reason this release was yanked:

error

Project description

VTAT(ENGLISH)

JSON EXAMPLE

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

IMPORT

import vtat

OR WARNING: Beta functions doesn't include

from vtat import addGroup, removeGroup, addObject, eraseObject, userExists, groupExists, meet, removeObject, deleteObject, replaceObject, deleteObject, replaceObject, renameObject

FUNCTIONS

vtat.addGroup(json_array, group)

In json_array add group, group And return json_array.

vtat.removeGroup(json_array, group)

It remove group in json_array and return json_array.

vtat.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).

vtat.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).

vtat.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).

vtat.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.

vtat.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).

vtat.removeObject(json_array, name)

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

vtat.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).

vtat.renameGroup(json_array, old_name, new_name)

It rename group from old_name to new_name

vtat.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).

vtat.listGroups(json_array)

WARING: BETA It return all groups in json_array

vtat.listObjects(json_array)

WARING: BETA It return all objects in json_array

vtat.listObjectsOfGroup(json_array, group)

WARING: BETA It return objects in group in json_array

vtat.getGroupsOfObject(json_array, name)

WARING: BETA It return included name all groups.

vtat.objectIsInAnyGroup(json_array, name)

WARING: BETA It return included name any groups.

vtat.getSubgroups(json_array, group)

WARING: BETA 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.4.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.

vtat-0.0.4-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vtat-0.0.4.tar.gz
  • Upload date:
  • Size: 3.4 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.4.tar.gz
Algorithm Hash digest
SHA256 6360da05a45ff4840ad44f74108ab4624ad990423f7e9fbe1d5a0865a3c07598
MD5 1ade3aa342c6941afbd796277459d74a
BLAKE2b-256 c989fc16632dc8f976542cb9f9ffb802e4fa22e7992f456050454c5663439703

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vtat-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.3 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a096e920bd531479f23d6757d697a7d75b70a2eb8de599f75b3f0bc1f3270c05
MD5 c32e177b77c510b9c35d432cf3deb5ad
BLAKE2b-256 72c3f2e1a0b17f0f6f16173a68fb2cdd52228a48ce688ae0bc3a83a5342ef568

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