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 target of the published data, i.e. the catalogue. It is recommended that the token not be written directly in your script but stored as an environmental variable and retrieved at runtime.
from molgenis_emx2_staging_migrator import StagingMigrator
token = ...
with StagingMigrator(url='https://example.molgeniscloud.org', token=token,
target="catalogue") as migrator:
# Retrieve sign-in information
print(migrator.status)
# Set the source and target schemas
migrator.set_source('StagingExample')
migrator.set_target('catalogue')
# Execute the migration
migrator.migrate()
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-13.19.0.tar.gz.
File metadata
- Download URL: molgenis_emx2_staging_migrator-13.19.0.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd94ad100ec882898a59ef302aaa7b4a41ace4c87cd8ee94ed73fad60f7bf84b
|
|
| MD5 |
cb0efd1d9465271b4e6409cacbab63f8
|
|
| BLAKE2b-256 |
ef406a96deca4f32678037a59cfdfa524b43c9fe0e23b013a5d05c59ca4b6244
|
File details
Details for the file molgenis_emx2_staging_migrator-13.19.0-py3-none-any.whl.
File metadata
- Download URL: molgenis_emx2_staging_migrator-13.19.0-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
535153a044b4a7f742bc459619ba5c595a9bc4fc8b30226638c1e2114b6fa43a
|
|
| MD5 |
5ee8c36f7ef1aba843704cd5bf4cd684
|
|
| BLAKE2b-256 |
bc83dc8b1a1026344c75faf22d2d6d7ce8e67ceb439f277824e396786ac13135
|