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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e71cd00dc7ce34367b5d6311e4ed0a5c0e12187ab741b9acf2eff4b21c690c8 |
|
MD5 | 6d49590cc659dce234d38685805fe7c3 |
|
BLAKE2b-256 | b0b01e14ce53c3afb2c5be40b14526e0adc3bd41ba82c69a76274299e7675b9a |
Close
Hashes for molgenis_emx2_staging_migrator-10.50.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72a3df45c351b1482992cd70270f65299961da901d7c3fedaa60b65a07b17f97 |
|
MD5 | 5cdb2dcaf600d89d8910b3c6c2647525 |
|
BLAKE2b-256 | 8dd17266fe89b2079b516740f29f931d0e8814bf5d582cb80873c0153ffe571f |