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.96.0.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for molgenis_emx2_staging_migrator-10.96.0.tar.gz
Algorithm Hash digest
SHA256 227c7ae745f86612978a0588263fd3a9e7a54553585a732f8f6bf9d460d383a3
MD5 f0f65a981768b66b8911071394190813
BLAKE2b-256 c8c201ebfb8775ff95569fa33065e70bb80321da067f18f9f15a1beb6511e1de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for molgenis_emx2_staging_migrator-10.96.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b77766c3336d10dd0731a1b57a64a4d86975703a607cae5729ff1a49b37cfadc
MD5 7c3a8e8071228e01efe032dd51e639cd
BLAKE2b-256 4a3f052b875b3699632dd401669cab50f6d8c2298a50cb815109203bd4204670

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