Utilities for using Synapse.
Project description
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
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
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 syntools-0.0.7.tar.gz.
File metadata
- Download URL: syntools-0.0.7.tar.gz
- Upload date:
- Size: 32.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16590dd78b065a2f3f74446f12049444ff72498b4aa3e5a3b9a8793a312cfd77
|
|
| MD5 |
6ae759a76918bef5e377655736182f32
|
|
| BLAKE2b-256 |
ec0baa1da207f23b4ff9e63d8fd25ddce4d4644048ea51776bb167d28032ffb0
|
File details
Details for the file syntools-0.0.7-py2.py3-none-any.whl.
File metadata
- Download URL: syntools-0.0.7-py2.py3-none-any.whl
- Upload date:
- Size: 43.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b757c703debcea86658b5b8f10837239e5d96cefbd5b46fd4afbb0afb4e416b2
|
|
| MD5 |
c7fabbd61064e71c7af22bd2a81f23f2
|
|
| BLAKE2b-256 |
7f6d7bba7e6622f31bb2fbb5cf2160644791e7a99ec2d10debb6d124e84ad5b3
|