Package for data model and data ingress management
Project description
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.
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
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 schematic-test-0.1.11.tar.gz.
File metadata
- Download URL: schematic-test-0.1.11.tar.gz
- Upload date:
- Size: 238.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.3 Darwin/20.2.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd4afdf87a70629ed637d4850942d3f96fc66764b73557b003af2bf0652a5b70
|
|
| MD5 |
75407f1878fb55a90f167a3a9ee42c99
|
|
| BLAKE2b-256 |
5550465262463de9c542aa1fd1c747bd9b9da0d3f2cad0f80518dd806a8c8ac7
|
File details
Details for the file schematic_test-0.1.11-py3-none-any.whl.
File metadata
- Download URL: schematic_test-0.1.11-py3-none-any.whl
- Upload date:
- Size: 256.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.3 Darwin/20.2.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99906b4e6157d04a41509375c14913b4d33650f8d3b228dff6d3585d4ef8ea76
|
|
| MD5 |
a88fc397332659b28977655f15e8ec54
|
|
| BLAKE2b-256 |
724c4b5b33bab6664539a37841a37d243d2ea5e2c6acee2e55753a0af6c740bd
|