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-11.74.1.tar.gz (9.1 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.74.1.tar.gz.

File metadata

  • Download URL: molgenis_emx2_staging_migrator-11.74.1.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12

File hashes

Hashes for molgenis_emx2_staging_migrator-11.74.1.tar.gz
Algorithm Hash digest
SHA256 5dcb30b56c80e37caa6944af0c58fe96d3c3d297eb658dd4b71f3a1f377f95f5
MD5 e7a5e28fc72d1a2d9c37bcd3283ca624
BLAKE2b-256 d31bf7ae1e55c8837cb763a47a5ab7b907fb42e28e700528901f81a7ebfe6d08

See more details on using hashes here.

File details

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

File metadata

  • Download URL: molgenis_emx2_staging_migrator-11.74.1-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12

File hashes

Hashes for molgenis_emx2_staging_migrator-11.74.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ac28780242c777100fa42f1804e60bcad17d84a1abd879ded5d826de444d450e
MD5 b8a57ea2937163cabc05c1a995a1651a
BLAKE2b-256 7b4989e870f17e85e9cacff2ddf608875357bc53a54f5a84aa539a3cf7f1bcca

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