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.196.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.196.1
File Size Uploaded
molgenis_emx2_staging_migrator-13.196.1.tar.gz 11.6 kB Details

Built distribution (wheel)

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

Total release size: 24.9 kB

Release files / molgenis_emx2_staging_migrator-13.196.1.tar.gz

Download URL molgenis_emx2_staging_migrator-13.196.1.tar.gz
Size 11.6 kB
Tags Source
SHA-256 checksum
How to use checksums
1b2b0221e57dae01336a4434e09a6336660abf2b9f970a55d1dcfc92f4979277
BLAKE2b-256 checksum
How to use checksums
920d43e4e8581738bb7ee61ca5af2a5e4a60297cb33ee00b6458e910bded12be
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.196.1-py3-none-any.whl

Download URL molgenis_emx2_staging_migrator-13.196.1-py3-none-any.whl
Size 13.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d140c67139bf2b672f0bb16cb8e7deba4660e5f45bb8f99528392e7a22925990
BLAKE2b-256 checksum
How to use checksums
9933ef86861629ebb5981a69974fd020b4ff561bc1f97ba1cd6803cc688ce9b6
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