aind-metadata-upgrader
I want to run the upgrader...
On my local data
from aind_metadata_upgrader.upgrade import Upgrade
# <Your code here: load your data as a dictionary, e.g. json.load(f)>
upgraded_record = Upgrade(data)
upgraded_record.save()
On a single record in V1 DocDB
from aind_metadata_upgrader.sync import run_one
run_one(record_id="<docdb_id>")
On all records in V1 DocDB
from aind_metadata_upgrader.sync import run
run()
I want to develop new upgraders
Add a new CoreUpgrader class, then include it in the MAPPINGS object.
Release files for aind-metadata-upgrader 0.17.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aind_metadata_upgrader-0.17.8.tar.gz | 1.4 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aind_metadata_upgrader-0.17.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.5 MB
Release files / aind_metadata_upgrader-0.17.8.tar.gz
| Download URL | aind_metadata_upgrader-0.17.8.tar.gz |
|---|---|
| Size | 1.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0c648a53816a1159cf21a7034ce560153f75f0ce693e4e74239b4857c3aec25c
|
|
BLAKE2b-256 checksum How to use checksums |
94c28bceaf37a1d9aaa775b3f6c89283c1d854514e813c748c88d10db182d92a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / aind_metadata_upgrader-0.17.8-py3-none-any.whl
| Download URL | aind_metadata_upgrader-0.17.8-py3-none-any.whl |
|---|---|
| Size | 101.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8f9077f18eb23c0d3af6f5b020b07ddb857968cb589472247d8fd65647cb5db7
|
|
BLAKE2b-256 checksum How to use checksums |
bcac91fb6e5840605d0393cbc8e06f986b53e0f58e39f4e4ab60173f89b9c652
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|