Python package for migrating Molgenis EMX2 staging areas to a catalogue.
Project description
Installation
pip install molgenis-emx2-staging-migrator
How to use
Within your Python project import the class StagingMigrator and use it as a context manager
from molgenis_emx2_staging_migrator import StagingMigrator
token = '...'
with StagingMigrator('https://example.molgeniscloud.org', token=token) as migrator:
# Retrieve sign-in information
print(migrator.status)
# Set the staging area and catalogue
migrator.set_staging_area('StagingExample')
migrator.set_catalogue('catalogue')
# Execute the migration
migrator.migrate()
Development
Build
(venv) $ python -m build
(venv) $ pip install dist/molgenis-emx2-staging_migrator*.whl
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
Close
Hashes for molgenis-emx2-staging-migrator-10.50.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 081b91578bd5dd35bb95f9398053ceed2435d248200e057611bea30618518159 |
|
MD5 | a87950fdb8e2f39606af44104ca7e27a |
|
BLAKE2b-256 | ea070d98cca1ee5fbfeaafe6e3cb200495afa86a3976dcc80f02d923d1f069e0 |
Close
Hashes for molgenis_emx2_staging_migrator-10.50.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9513b4eccd24ee5751324f46fe9ffbc9f6b3a023cb1b5673fe72b2d8806bc9cd |
|
MD5 | bcf1ff7709e7dd71d6861c741147e898 |
|
BLAKE2b-256 | 4916dc2b7d566d3f35e2056f10aa1d5057439ecc7d2ed8374bafc758ebb03af8 |