Skip to main content

Generated from aind-library-template

Project description

aind-metadata-upgrader

License Code Style semantic-release: angular Interrogate Coverage Python

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.

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

aind_metadata_upgrader-0.6.1.tar.gz (5.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aind_metadata_upgrader-0.6.1-py3-none-any.whl (75.7 kB view details)

Uploaded Python 3

File details

Details for the file aind_metadata_upgrader-0.6.1.tar.gz.

File metadata

  • Download URL: aind_metadata_upgrader-0.6.1.tar.gz
  • Upload date:
  • Size: 5.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for aind_metadata_upgrader-0.6.1.tar.gz
Algorithm Hash digest
SHA256 89377dfb605e86370c5942aca342c3f89a79b76d80ee7b081efa5efefe7118ae
MD5 3afe1731b8141b05b6c32112645be044
BLAKE2b-256 4452c78205523c2d08ac0a922ad6a0bc3622c97ba2eb1950155ff3c1ee363a48

See more details on using hashes here.

File details

Details for the file aind_metadata_upgrader-0.6.1-py3-none-any.whl.

File metadata

File hashes

Hashes for aind_metadata_upgrader-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 76572d6c6c84a3816a7df475c650f8e15568d34ec8e5995cc80df7c5f2386804
MD5 bcb6562548c7a80b3df32e6e09210c9e
BLAKE2b-256 157bf84bdbb3595c5d243bf6697099c1e75beeba936167157b9be11800c34295

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page