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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file molgenis_emx2_staging_migrator-11.19.0.tar.gz
.
File metadata
- Download URL: molgenis_emx2_staging_migrator-11.19.0.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75b6c1267c79996960f9efc65a04f25f5e6239f587329a13773244c0b402c902 |
|
MD5 | 47d3827233008ed13f3945611334d6f4 |
|
BLAKE2b-256 | ef7df16293768c643878ccf3b9d4182f11ef3929595caaa6f42b1bafa78dac38 |
File details
Details for the file molgenis_emx2_staging_migrator-11.19.0-py3-none-any.whl
.
File metadata
- Download URL: molgenis_emx2_staging_migrator-11.19.0-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1395e84d710bfefc128924c193bb6fb8645eaa872ae4fd13c9ddf0d615695fdc |
|
MD5 | ac55903a75a34b0dba9ebca321cc8e53 |
|
BLAKE2b-256 | 909150620da693f2253d0d13a6c6da8beb3d165ec53fa298988cc0b4c4ddab90 |