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

Built Distribution

File details

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

File metadata

File hashes

Hashes for molgenis_emx2_staging_migrator-11.19.0.tar.gz
Algorithm Hash digest
SHA256 75b6c1267c79996960f9efc65a04f25f5e6239f587329a13773244c0b402c902
MD5 47d3827233008ed13f3945611334d6f4
BLAKE2b-256 ef7df16293768c643878ccf3b9d4182f11ef3929595caaa6f42b1bafa78dac38

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for molgenis_emx2_staging_migrator-11.19.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1395e84d710bfefc128924c193bb6fb8645eaa872ae4fd13c9ddf0d615695fdc
MD5 ac55903a75a34b0dba9ebca321cc8e53
BLAKE2b-256 909150620da693f2253d0d13a6c6da8beb3d165ec53fa298988cc0b4c4ddab90

See more details on using hashes here.

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