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.54.4.tar.gz (8.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.54.4.tar.gz.

File metadata

File hashes

Hashes for molgenis_emx2_staging_migrator-11.54.4.tar.gz
Algorithm Hash digest
SHA256 eb838ccc2ba0445cc07c553911a88168e5a8c9dbe6bae4bad2b5e108ddd371b1
MD5 aafcda9569a9a4fdb238e65b2985bd92
BLAKE2b-256 e66b0293fee66380f218a3b286c019dddbcbe2e5dffc4f745ce79e205149a87c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for molgenis_emx2_staging_migrator-11.54.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e291576347daac1174f9578b45b036bbcf24513ddcce039c8fc2576d655663ff
MD5 1ecb307247b31d225aec19dc4cf3bf94
BLAKE2b-256 df38db495ea75fe650d4b27989c39dce32b169ac007ed1265671a01e557699f1

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