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.40.3.tar.gz (9.9 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.40.3.tar.gz.

File metadata

File hashes

Hashes for molgenis_emx2_staging_migrator-11.40.3.tar.gz
Algorithm Hash digest
SHA256 fa0912f6c9f71cfd478edb0b21a67d8d6b2c9aba32b1c9e28cadb4702ae13c53
MD5 b648f2240e5faedf4f0924b75c7a3c73
BLAKE2b-256 d7f92c813171f583337027d0a5914b4fa871c903758d8eb8876bef1c6abccbc9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for molgenis_emx2_staging_migrator-11.40.3-py3-none-any.whl
Algorithm Hash digest
SHA256 06f583ba2e9f502049a102c87f000026947c9d51459371691a81b35ecf39d10a
MD5 201aeb65a6995eaeaa52aa097666201f
BLAKE2b-256 d339e6563474dcaa38d53a2cd33be31a0828879c8ab9eb9151b565b8477aae39

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