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-10.50.3.tar.gz (9.2 kB view hashes)

Uploaded Source

Built Distribution

Supported by

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