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.73.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed9bfc8d7e40220a4774c248c050548ec47b0840c36e605f1092b6ad339066de |
|
MD5 | 78572beac1d2b4cb9e85cbc1c2a94a36 |
|
BLAKE2b-256 | f1b03b9fb96bc160c531923c7456e453bbbdd914f8c0c794ba77b5a82d4e76d4 |
Close
Hashes for molgenis_emx2_staging_migrator-10.73.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2726cb38cac43cb79df945bcc8da8c2faec1be4c0bfd5174ca8f194f696fb8b8 |
|
MD5 | 8d5d3ef4032c8500058047f20c4ad3bc |
|
BLAKE2b-256 | 375f71a05c36d0f67c3ab0e1104c1c61e0b7879cefd20e9ce638af4efc431407 |