Schematic
Usage
Virtual Environment Setup
Python 3 has built-in support for virtual environments (using venv module). Perform the following steps:
After cloning the git repository, navigate into the schematic directory and run the command as below:
python[3] -m venv .venv
Note: It is assumed that you are running all the below commands from the main/root (schematic) directory.
This creates a Python3 virtual environment (within the root folder/package), with its own site directories (isolated from the system site directories).
To activate the virtual environment, run:
source .venv/bin/activate
Note: You should now see the name of the virtual environment to the left of the prompt.
Install App/Package
To install the package/bundle/application:
pip[3] install -e .
To verify that the package has been installed (as a pip package), check here:
pip[3] list
Now, your environment is ready to test the modules within the application.
Once you have finished testing the application within the virtual environment and want to deactivate it, simply run:
deactivate
To run any of the example file(s), go to your root directory and execute/run python script in the following way:
Let's say you want to run the metadata_usage example - then do this:
python[3] examples/metadata_usage.py
Configure Synapse Credentials
Download a copy of the credentials.json file (or the file needed for authentication using service account, called quickstart-1560359685924-198a7114b6b5.json) stored on Synapse, using the synapse client command line utility. The credentials file is necessary for authentication to use Google services/APIs. To do so:
Note: Make sure you have download access/permissions to the above files before running the below commands.
For credentials.json file:
synapse get syn21088684
For quickstart-1560359685924-198a7114b6b5.json file:
synapse get syn22316486
Find the synapse configuration file (.synapseConfig) downloaded to the current source directory. Access it like this:
vi[m] .synapseConfig
Open the config file, and under the authentication section, replace < username > and < apikey > with your Synapse username and API key.
Note: You can get your Synapse API key by: logging into Synapse > Settings > Synapse API Key > Show API Key.
Contribution
Clone a copy of the repository by executing the command as below:
git clone --single-branch --branch develop https://github.com/Sage-Bionetworks/schematic.git
- Fork the repository.
- Clone the forked repository.
- Create a branch with a descriptive name that includes the name of the feature under development.
- Push your changes to that branch.
- PR into a branch that is developing the same feature on the
schematicmain repository.
For further reference, please consult CONTRIBUTION.md.
Metadata
Release files for schematic-test 0.1.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| schematic-test-0.1.11.tar.gz | 238.3 kB | Without provenance | Details for schematic-test-0.1.11.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| schematic_test-0.1.11-py3-none-any.whl | Python 3 | none | any | Details for schematic_test-0.1.11-py3-none-any.whl |
Total release size: 494.5 kB
Release files / schematic-test-0.1.11.tar.gz
| Download URL | schematic-test-0.1.11.tar.gz |
|---|---|
| Size | 238.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fd4afdf87a70629ed637d4850942d3f96fc66764b73557b003af2bf0652a5b70
|
|
BLAKE2b-256 checksum How to use checksums |
5550465262463de9c542aa1fd1c747bd9b9da0d3f2cad0f80518dd806a8c8ac7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.8.3 Darwin/20.2.0
|
Release files / schematic_test-0.1.11-py3-none-any.whl
| Download URL | schematic_test-0.1.11-py3-none-any.whl |
|---|---|
| Size | 256.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
99906b4e6157d04a41509375c14913b4d33650f8d3b228dff6d3585d4ef8ea76
|
|
BLAKE2b-256 checksum How to use checksums |
724c4b5b33bab6664539a37841a37d243d2ea5e2c6acee2e55753a0af6c740bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.8.3 Darwin/20.2.0
|
Security for schematic-test 0.1.11
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.