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.46.0.tar.gz (9.0 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.46.0.tar.gz.

File metadata

File hashes

Hashes for molgenis_emx2_staging_migrator-11.46.0.tar.gz
Algorithm Hash digest
SHA256 f1a99fdfadcdc8c01ae6ad956d1351662b299987a8a60ec0e3c25f67d7f069c8
MD5 d7de8f13b7452680110d1e554748ef19
BLAKE2b-256 e28c7eec1b7477ba5ba978d674c4574f8ffe0baaacaec72e22e898a0d180b573

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for molgenis_emx2_staging_migrator-11.46.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dfa55c5f77db3270b6f2ace65390f78fc2f46477fe500c98a00b1aec39c9e2b7
MD5 ad6e4fd579261b9e0fa4dd8305a32ff1
BLAKE2b-256 6ae70e7db109728cdddd3a1d74fd7477eb55e6aad52e16b1c7680addf0673eff

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