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.15.21.tar.gz (1.3 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.15.21-py3-none-any.whl (97.3 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for aind_metadata_upgrader-0.15.21.tar.gz
Algorithm Hash digest
SHA256 933d1f33501a445589eaff1d15a2bd9ced7dcee242c346b71a88c42e76bf79a7
MD5 5b061da44079452176541d318459bcba
BLAKE2b-256 7ff88ecae9d4ab486a998f489e256001371a4334b41b58086593fd3dc031bf17

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aind_metadata_upgrader-0.15.21-py3-none-any.whl
Algorithm Hash digest
SHA256 46a659d9d7c0330feb790a56c8193a64a0a0bb6b63324d5f45572456c01ea56f
MD5 25364c85d03b91f686fd20f9b02e780b
BLAKE2b-256 f9fdda616cb2c70ad6e994e661f0d3a44a09763af6ff78e6ec75da7f7220bdb5

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