Skip to main content

Synapse Power Tools

Utilities for using Synapse.

Dependencies

  • Python3.10+
  • A Synapse account with a username/password. Authentication through a 3rd party (.e.g., Google) will not work, you must have a Synapse user/pass for the API to authenticate.

Install

pip install syntools

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: syntools [-h] [--version] {download,find-id,copy,move,list} ...

Synapse Power Tools

options:
  -h, --help            show this help message and exit
  --version             show program's version number and exit

Commands:
  {download,find-id,copy,move,list}
    download            Download folders and files from Synapse.
    find-id             Find a Synapse ID by a Synapse path (e.g., MyProject/Folder/file.txt).
    copy                Copy Synapse entities from one container to another.
    move                Move Synapse entities from one container to another.
    list                List Synapse entities in one or more containers.

Development Setup

pipenv --python 3.10
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 syntools 0.0.7

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

Source distribution (sdist)

Source distribution for syntools 0.0.7
File Size Uploaded Provenance Actions
syntools-0.0.7.tar.gz 32.8 kB Without provenance Details for syntools-0.0.7.tar.gz

Built distribution (wheel)

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

Total release size: 75.9 kB

Release files / syntools-0.0.7.tar.gz

Download URL syntools-0.0.7.tar.gz
Size 32.8 kB
Tags Source
SHA-256 checksum
How to use checksums
16590dd78b065a2f3f74446f12049444ff72498b4aa3e5a3b9a8793a312cfd77
BLAKE2b-256 checksum
How to use checksums
ec0baa1da207f23b4ff9e63d8fd25ddce4d4644048ea51776bb167d28032ffb0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / syntools-0.0.7-py2.py3-none-any.whl

Download URL syntools-0.0.7-py2.py3-none-any.whl
Size 43.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
b757c703debcea86658b5b8f10837239e5d96cefbd5b46fd4afbb0afb4e416b2
BLAKE2b-256 checksum
How to use checksums
7f6d7bba7e6622f31bb2fbb5cf2160644791e7a99ec2d10debb6d124e84ad5b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Security for syntools 0.0.7

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