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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file molgenis_emx2_staging_migrator-11.47.2.tar.gz.
File metadata
- Download URL: molgenis_emx2_staging_migrator-11.47.2.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.0rc1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
070bcb533573b86d2c4987c90f6ecd7084062baa6131d55479b619e8962ecc38
|
|
| MD5 |
6d8d78a565fef024ae8ae6f3425ecdd0
|
|
| BLAKE2b-256 |
6f96e20ce9398160ffe4c66bcb473a4d3217751ad5705580ab92a499eeada627
|
File details
Details for the file molgenis_emx2_staging_migrator-11.47.2-py3-none-any.whl.
File metadata
- Download URL: molgenis_emx2_staging_migrator-11.47.2-py3-none-any.whl
- Upload date:
- Size: 11.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.0rc1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
efe0c5d437ff30d9a07dd8d141983d93b1f132c1b2144f4dd445b0448a1e4710
|
|
| MD5 |
7fdfa07bcebe71369e367eef51b25a16
|
|
| BLAKE2b-256 |
f9fd346cefc4b8893170f47ddaadd21f3c583f24c7bb2af2c40c183b76e908ba
|