Skip to main content

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 target of the published data, i.e. the catalogue. It is recommended that the token not be written directly in your script but stored as an environmental variable and retrieved at runtime.

from molgenis_emx2_staging_migrator import StagingMigrator

token = ...

with StagingMigrator(url='https://example.molgeniscloud.org', token=token, 
                     target="catalogue") as migrator:

    # Retrieve sign-in information
    print(migrator.status)
    
    # Set the source and target schemas
    migrator.set_source('StagingExample')
    migrator.set_target('catalogue')
    
    # Execute the migration
    migrator.migrate()

Build

(venv) $ python -m build

(venv) $ pip install dist/molgenis_emx2_staging_migrator*.whl

Metadata

Release files for molgenis-emx2-staging-migrator 13.214.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for molgenis-emx2-staging-migrator 13.214.1
File Size Uploaded
molgenis_emx2_staging_migrator-13.214.1.tar.gz 11.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for molgenis-emx2-staging-migrator 13.214.1
File Interpreter ABI Platform
molgenis_emx2_staging_migrator-13.214.1-py3-none-any.whl Python 3 none any Details

Total release size: 25.3 kB

Release files / molgenis_emx2_staging_migrator-13.214.1.tar.gz

Download URL molgenis_emx2_staging_migrator-13.214.1.tar.gz
Size 11.8 kB
Tags Source
SHA-256 checksum
How to use checksums
422ac1446916e33dcafc233a943d66e67d359df114071aeba6169dd408defa29
BLAKE2b-256 checksum
How to use checksums
5b749cfa16d200bb4df4aea6094a2db708cdb4edcfa6a31c1e6f818e4daf679b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / molgenis_emx2_staging_migrator-13.214.1-py3-none-any.whl

Download URL molgenis_emx2_staging_migrator-13.214.1-py3-none-any.whl
Size 13.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eb2a50308eabb9770e383e580d7e60fe1fb014b253be24fd12bd88b366050123
BLAKE2b-256 checksum
How to use checksums
c8fea75482f42c3897f13e1ecd7d0f65b4d80367d6ed80fe7f604b0126e5769f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page