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.11
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.11.tar.gz | 1.4 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aind_metadata_upgrader-0.17.11-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.5 MB
Release files / aind_metadata_upgrader-0.17.11.tar.gz
| Download URL | aind_metadata_upgrader-0.17.11.tar.gz |
|---|---|
| Size | 1.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
15febef10347c57695959694c2d46ff168b53a4f21d0d3d59e55dc78cdee8f9c
|
|
BLAKE2b-256 checksum How to use checksums |
da6feb7510ea682021aaa1f1beefac2a29a59518f673fcf0d1c47c2db178e2cb
|
| 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.11-py3-none-any.whl
| Download URL | aind_metadata_upgrader-0.17.11-py3-none-any.whl |
|---|---|
| Size | 101.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bbeb6d125d2d6ba5266c80db8889e56862a5e38fdb91f9e7ce4d991c3d1cc80b
|
|
BLAKE2b-256 checksum How to use checksums |
42f9bae3a2d2ff960ca9d0e9b441257e6b0842d92e8f2a53f62e10874a876997
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|