Synapse reporting.
Project description
Synapse Reporting
Utilities for reporting on Synapse.
Dependencies
- Python3.10+
- A Synapse account with an auth token. API to authenticate.
Install
pip install syn-reports
Configuration
Your Synapse credential can be provided on the command line or with environment variables.
Environment Variables:
# For auth token, set:
SYNAPSE_AUTH_TOKEN=
# For Synapse Config file, have a valid config file in:
~/.synapseConfig
# Or, have the environment variable set:
SYNAPSE_CONFIG_FILE=
Command Line:
-u USERNAME, --username USERNAME
Synapse username.
-p PASSWORD, --password PASSWORD
Synapse password.
--auth-token AUTH_TOKEN
Synapse auth token.
--synapse-config SYNAPSE_CONFIG
Path to Synapse configuration file.
Usage
usage: syn-reports [-h]
{benefactor-permissions,entity-permissions,user-project-access,user-teams,team-members}
...
Synapse Reports
optional arguments:
-h, --help show this help message and exit
Commands:
{benefactor-permissions,entity-permissions,user-project-access,user-teams,team-members}
benefactor-permissions
Report the unique permissions on a Synapse entity and
all its child entities.
entity-permissions Report the permissions of each user and team on a
Synapse entity.
user-project-access
Report the projects a user has access to. NOTE: Only
public projects or projects the user executing this
script has access to will be reported.
user-teams Report the teams a user is a member of.
team-members Report the members on a team.
Development Setup
pipenv --python 3.11
pipenv shell
make pip_install
make build
make install_local
See Makefile for all commands.
Testing
- Create and activate a virtual environment:
- Rename .env-template to .env and set each of the variables.
- Run the tests:
make test
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 Distribution
syn-reports-0.0.17.tar.gz
(20.2 kB
view hashes)
Built Distribution
Close
Hashes for syn_reports-0.0.17-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6dcd920498ce6fdbca57bfa9fc293b7e73f223d18ad9bf0aa5b2dbb536082296 |
|
MD5 | 418ac76aa7d557ce252817a81d516363 |
|
BLAKE2b-256 | b5a47214b301f25b69e460d4750e49333dc3f9f01119e9370803ee0f517fb184 |