Skip to main content

Synapse Reporting

Utilities for reporting on Synapse.

Dependencies

Install

pip install syn-reports

Configuration

Environment Variables

No configuration is necessary if using environment variables or the default synapse config file. For user/pass, set:

SYNAPSE_USERNAME=
SYNAPSE_PASSWORD=

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 Arguments

options:
  -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

Metadata

Release files for syn-reports 0.0.19

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for syn-reports 0.0.19
File Size Uploaded Provenance Actions
syn-reports-0.0.19.tar.gz 20.5 kB Without provenance Details for syn-reports-0.0.19.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for syn-reports 0.0.19
File Interpreter ABI Platform Actions
syn_reports-0.0.19-py2.py3-none-any.whl Python 2, Python 3 none any Details for syn_reports-0.0.19-py2.py3-none-any.whl

Total release size: 51.5 kB

Release files / syn-reports-0.0.19.tar.gz

Download URL syn-reports-0.0.19.tar.gz
Size 20.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b2b07f126d21ba9685aeb8e112dff92ce2878ed77ce95f4e0b21803ac6bdb9c7
BLAKE2b-256 checksum
How to use checksums
5f615c6cd21e8658c53a0ff7a67ce753fc43bb55be66215ab66d209adc4c4217
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / syn_reports-0.0.19-py2.py3-none-any.whl

Download URL syn_reports-0.0.19-py2.py3-none-any.whl
Size 31.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
2e7f7de55b3e4d42926ea8fc5af36f543b1a2f2a73f82c4bf7401f9c33e75091
BLAKE2b-256 checksum
How to use checksums
2731464c0a5f187f56c03f9de98b2f037bba481c89558341977a5ef7ac87d63e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Security for syn-reports 0.0.19

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page