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. Specify the URL of the server, the API token, the name of the destination of the published data, i.e. the catalogue, and lastly the name of the table that is central in the data model. For the data catalogue this table is Resources.

from molgenis_emx2_staging_migrator import StagingMigrator

token = '...'

with StagingMigrator(url='https://example.molgeniscloud.org', token=token, 
                     catalogue="catalogue", table="Resources") 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()

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-13.8.1.tar.gz (6.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-13.8.1.tar.gz.

File metadata

File hashes

Hashes for molgenis_emx2_staging_migrator-13.8.1.tar.gz
Algorithm Hash digest
SHA256 20518c6ce435f9c3f9bfeb121808fc655961842f9aebe8593c1acd66dbafba2e
MD5 2fab78337af708b441edafd553f62ea2
BLAKE2b-256 4dd18e2427ac4fca11c2f9f904865fa5764e1ac6badcebe4ed3b6b2874b5cdd8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for molgenis_emx2_staging_migrator-13.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 94b1ef694bf16ecf82cf758e40a95575993671a9209cac73e5055e255ef10ce8
MD5 6ba589fae3b1661343e7500c7295a726
BLAKE2b-256 e78b7c7d939dc676becf63105132f4019469817643d8b5f49ca3baf14768ad66

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