A Python package to manage permissions of Python environments
Project description
Permissions Manager
Overview
Permissions Manager is a Python package that allows you to manage the permissions of your Python environments. It provides a simple and efficient way to check, change, and report the permissions of multiple Python packages.
Installation
You can install the Permissions Manager package using pip:
pip install permissions-manager
Features
- Check Permissions: Check the read and write permissions of multiple Python packages.
- Change Permissions: Change the permissions of multiple Python packages.
- Report Non-Standard Permissions: Provide a report of multiple Python packages with non-standard permissions.
Usage
Here’s a basic usage example of Permissions Manager:
from permissions_manager.permissions_manager import PermissionsManager
permissions_manager = PermissionsManager()
package_names = ['requests', 'numpy']
permissions = permissions_manager.check_permissions(package_names)
print(permissions)
new_permissions = 0o755
permissions_manager.change_permissions(package_names, new_permissions)
standard_permissions = True
non_standard_packages = permissions_manager.report_non_standard_permissions(package_names, standard_permissions)
print(non_standard_packages)
Sample output of the above
Current Permissions: {'requests': True, 'numpy': True}
Non-Standard Packages: []
- If the list is empty ([]), it means all specified packages have permissions matching the specified standard (True). No non-standard packages are found.
- If the list contains elements, it means there are packages with permissions not matching the specified standard. Each element in the list will indicate a package and its current permissions.
Tests
This package includes a suite of tests to ensure its functionality. You can run these tests using pytest:
pytest
Benefits
- Permissions Manager provides a simple and efficient way to manage the permissions of your Python environments. This can be particularly useful in shared environments, where multiple users may need different levels of access to certain packages.
License
This project is licensed under the terms of the MIT license.
Contact
If you have any questions or feedback, please feel free to contact the author at karimbaidar@gmail.com.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file env_permissions_manager-0.0.1-py3-none-any.whl.
File metadata
- Download URL: env_permissions_manager-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6202a7cc7b4205dfe8f743ab5b403badd6c313b22c2519d2ac409577878babe7
|
|
| MD5 |
67f876775fb733f5eb1141a0ff02f68a
|
|
| BLAKE2b-256 |
0d8cc033d5da2e612c1646ef45525b39a0c212c0e3b2ef8bdfa52195d907c9d8
|