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

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for molgenis_emx2_staging_migrator-10.96.1.tar.gz
Algorithm Hash digest
SHA256 804a2d0fa8b9ddb2adc47516e735b08441eacdbb3eea7ccf44ca0313d35a5a15
MD5 d89a49c4404fdc7774932c597f22116f
BLAKE2b-256 9626ed4e497d20dd08e03bd301fe37182a81000d7ef6b770293fed8cdd665205

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for molgenis_emx2_staging_migrator-10.96.1-py3-none-any.whl
Algorithm Hash digest
SHA256 937bceb756f50e2154b0800e01c8edc7d6cb5b3175c1996cddce2f29fa14b80b
MD5 7196766c35639ff6ac7b206d41d84127
BLAKE2b-256 b76251c73744c95a0cb0c5b43ab047d98da3d453271208e6eecb61a5e9bd18f3

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