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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15b2b9b95936de98fe4210518d9ae6a349b04e2952cc34d7ea3f5159619181f4 |
|
MD5 | 3d8e018f446b1d47c25858baf10ca3d7 |
|
BLAKE2b-256 | 4a1af2bf112657c72272d13e85143b1a5a00c2cf9e98584fb1785ed4aaf89cfb |
Close
Hashes for molgenis_emx2_staging_migrator-10.50.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93fb408ebf8a24aeaa9cb5025995b3989f73f8711739f1e16a433579d055ba22 |
|
MD5 | 87a37870e90cc62ac31ce20d29af93ed |
|
BLAKE2b-256 | e1b59ae6404a3b50a9b10a0c985612673e9fb502b053e6247b1d45eb07656388 |