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-10.96.1.tar.gz
.
File metadata
- Download URL: molgenis_emx2_staging_migrator-10.96.1.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.0rc1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 804a2d0fa8b9ddb2adc47516e735b08441eacdbb3eea7ccf44ca0313d35a5a15 |
|
MD5 | d89a49c4404fdc7774932c597f22116f |
|
BLAKE2b-256 | 9626ed4e497d20dd08e03bd301fe37182a81000d7ef6b770293fed8cdd665205 |
File details
Details for the file molgenis_emx2_staging_migrator-10.96.1-py3-none-any.whl
.
File metadata
- Download URL: molgenis_emx2_staging_migrator-10.96.1-py3-none-any.whl
- Upload date:
- Size: 11.4 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 | 937bceb756f50e2154b0800e01c8edc7d6cb5b3175c1996cddce2f29fa14b80b |
|
MD5 | 7196766c35639ff6ac7b206d41d84127 |
|
BLAKE2b-256 | b76251c73744c95a0cb0c5b43ab047d98da3d453271208e6eecb61a5e9bd18f3 |