Skip to main content

A NOMAD parser plugin for parsing json files to entries.

Project description

NOMAD's JSON Mapper plugin

This is a plugin for NOMAD which allows to create mappings from JSON into NOMAD schemas and parse the suitable JSON data files accordingly.

The plugin allows to create specific JSON files which specify the mapping of data into NOMAD schemas. These mapper files are identified by the presence of the key json_mapper_class_key.

JSON data files are identified by the presence of the key mapped_json_class_key. If a mapper with the same key value exists, the data will be parsed into NOMAD entries according to the mapping.

Getting started

nomad-json-parser can be installed to your oasis via the steps given in here.

Setting up your OASIS

Read the NOMAD oasis documentation for details on how to add the plugin on your NOMAD instance.

You don't need to modify the nomad.yaml configuration file of your NOMAD instance, beacuse the package is pip installed and all the available modules (entry points) are loaded. To include, instead, only some of the entry points, you need to specify them in the include section of the nomad.yaml. In the following lines, a list of all the available entry points:

plugins:
  include:
    - "nomad_json_parser.schema_packages:json_mapper_schema_package"
    - "nomad_json_parser.parsers:json_mapper_parser"
    - "nomad_json_parser.parsers:mapped_json_parser"
    - "nomad_json_parser.schema_packages:example_schema_package"
    - "nomad_json_parser.example_uploads:example_upload_entry_point"

Further documentation

For a detailed documentation on how this plugin works and how to create JSON mapper, please refer to the documentation.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nomad_json_parser-1.0.0.tar.gz (115.8 kB view details)

Uploaded Source

Built Distribution

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

nomad_json_parser-1.0.0-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

Details for the file nomad_json_parser-1.0.0.tar.gz.

File metadata

  • Download URL: nomad_json_parser-1.0.0.tar.gz
  • Upload date:
  • Size: 115.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for nomad_json_parser-1.0.0.tar.gz
Algorithm Hash digest
SHA256 bd80830c1129a39938a09fa58b4620992839ffb1e93878851c458125211286c5
MD5 d9e954a3542b2b390495290754f6d263
BLAKE2b-256 437b279b0f72ef79b3c1202265a15836ba69d0379ddf3ab21664c177c66425bc

See more details on using hashes here.

Provenance

The following attestation bundles were made for nomad_json_parser-1.0.0.tar.gz:

Publisher: python-publish.yml on FAIRmat-NFDI/nomad-json-parser

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nomad_json_parser-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nomad_json_parser-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a89612f552183f3e4c81024f13b2a5d7c1aa13fc2577474a1129ecf1a90ee8e5
MD5 faa9250dcef6c35a0b2cb9e3886001a1
BLAKE2b-256 5069602cdd2d276c2a96a9027ee80a985eb0c1476b50ec291a4c0fc906639a26

See more details on using hashes here.

Provenance

The following attestation bundles were made for nomad_json_parser-1.0.0-py3-none-any.whl:

Publisher: python-publish.yml on FAIRmat-NFDI/nomad-json-parser

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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