Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

molgenis_emx2_staging_migrator-11.47.2.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file molgenis_emx2_staging_migrator-11.47.2.tar.gz.

File metadata

File hashes

Hashes for molgenis_emx2_staging_migrator-11.47.2.tar.gz
Algorithm Hash digest
SHA256 070bcb533573b86d2c4987c90f6ecd7084062baa6131d55479b619e8962ecc38
MD5 6d8d78a565fef024ae8ae6f3425ecdd0
BLAKE2b-256 6f96e20ce9398160ffe4c66bcb473a4d3217751ad5705580ab92a499eeada627

See more details on using hashes here.

File details

Details for the file molgenis_emx2_staging_migrator-11.47.2-py3-none-any.whl.

File metadata

File hashes

Hashes for molgenis_emx2_staging_migrator-11.47.2-py3-none-any.whl
Algorithm Hash digest
SHA256 efe0c5d437ff30d9a07dd8d141983d93b1f132c1b2144f4dd445b0448a1e4710
MD5 7fdfa07bcebe71369e367eef51b25a16
BLAKE2b-256 f9fd346cefc4b8893170f47ddaadd21f3c583f24c7bb2af2c40c183b76e908ba

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page