Overview
Utility to migrate data between two CKAN instances using the CKAN api.
Getting Started
config/transformationConfig.json
This file currently contains the configuration that is being used at DataBC for the transformation between prod and test. A detailed description of this file is available here
Running
Env vars:
Configure the following env vars:
- export CKAN_API_KEY_DEST=<api key for the destination instance, should be for a ckan sysadmin user>
- export CKAN_URL_TST=
- export CKAN_API_KEY_SRC=<api key for source destination instance, should be sysadmin>
- export CKAN_URL_SRC=
- export CKAN_DO_NOT_WRITE_URL=<usually the source instance, adds checks to make no methods that make changes are not being called on this instance>
- export CKAN_NEW_USER_PSWD=
- export CKAN_TRANSFORMATION_CONFIG=
Optional env vars, These are optional vars that should NOT be used in production/ deployed versions of this code. They are parameters that help with the debugging of this code.
- export LOG_FILE_PATH= if LOG_FILE_PATH is not set then logging will only go to console.
- export DUMP_DEBUG_DATA=
Finally, environment variables are defined in the constants, making them easy to change
Running
After the module has been installed:
pip install bcdc2bcdc
and the the env vars described above have been set, you can run the script using
python3 runBCDC2BCDC.py
Metadata
Release files for bcdc2bcdc 0.0.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bcdc2bcdc-0.0.10.tar.gz | 69.4 kB | Without provenance | Details for bcdc2bcdc-0.0.10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bcdc2bcdc-0.0.10-py3-none-any.whl | Python 3 | none | any | Details for bcdc2bcdc-0.0.10-py3-none-any.whl |
Total release size: 158.9 kB
Release files / bcdc2bcdc-0.0.10.tar.gz
| Download URL | bcdc2bcdc-0.0.10.tar.gz |
|---|---|
| Size | 69.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c3192c295f851317be2f922b5ef11ad5f0d66e5c70f3d25a455b7f1fe2ca728c
|
|
BLAKE2b-256 checksum How to use checksums |
73784cc2010fb5d420f63a53a90610638a80652ce0861368200f36dee19c4f03
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.9
|
Release files / bcdc2bcdc-0.0.10-py3-none-any.whl
| Download URL | bcdc2bcdc-0.0.10-py3-none-any.whl |
|---|---|
| Size | 89.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7e4694d14f480744f522b437157cdb92905c2fbd5a5448ea7f12f9a39f96e5ac
|
|
BLAKE2b-256 checksum How to use checksums |
939fcb22b7b95df6044ad435a26ca35ef6a65ed6bc9f46f20827df6bc63d7215
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.9
|
Security for bcdc2bcdc 0.0.10
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.