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
Close
Hashes for molgenis-emx2-staging-migrator-10.50.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fb088b01e6a61f820cd49775191d014273cdab52e3d7f10d364aa718b5ee372 |
|
MD5 | e1e3442ed5c7cfb7eaec0b0154e48269 |
|
BLAKE2b-256 | 0088d6558bbcb1a043706d355f8257eed83f6e9e6523f7e6986199116b4af924 |
Close
Hashes for molgenis_emx2_staging_migrator-10.50.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c13ec1053986da9cb0a3b4b12026f1155b0311d8e2ec3d11d454e8fe19faf7af |
|
MD5 | e795c352bda2ea3a7f9e6ab30faa050e |
|
BLAKE2b-256 | aef7323401c6aaa29bb14f0bf789ecf6554188c5aa101baf0725714fae4856ca |