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

File metadata

File hashes

Hashes for molgenis_emx2_staging_migrator-11.54.8.tar.gz
Algorithm Hash digest
SHA256 a4987182099aa19043bfba965bf3187bfe18e15ae6340f52259efac243463a85
MD5 07acfb33b836c2ff56f8223353011f73
BLAKE2b-256 c454e98ef18ec4a890c2b4b3c2df6a36db8a439bf39bb5a77824c93f2c470526

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for molgenis_emx2_staging_migrator-11.54.8-py3-none-any.whl
Algorithm Hash digest
SHA256 3cac64fa606ce222841f497a93e9d3f1b9d834c67f9c087740ec0c6a9a246c88
MD5 4bf00da3a17e2a221f36789fed532bda
BLAKE2b-256 f3922541b0e4ae3079ef05587404a4ac131272a845a206708a40e541caaa42c2

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