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.21.1.tar.gz.

File metadata

File hashes

Hashes for molgenis_emx2_staging_migrator-11.21.1.tar.gz
Algorithm Hash digest
SHA256 517540670046247e58aee6081e62257e82665a6ef49da49dbfd4d2f8ff39c9ca
MD5 7573e43a95b14d56dc86daa48b2fb3b8
BLAKE2b-256 bcfc8af6c9900ee3d7cc368e45833f4c99ab9afe815be74448d24b5b6b8ed772

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for molgenis_emx2_staging_migrator-11.21.1-py3-none-any.whl
Algorithm Hash digest
SHA256 52ac008360d93e6626a11424e0d45cb0369a2c65224f06429d89e49464fe3c88
MD5 a6602ac119e9351d9308bf61f020dee7
BLAKE2b-256 70bd7aa383c34b080917b212066cb83cfee3102d2cd9047524c23a0c412f7b8e

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