Skip to main content

IDSPy_Dictionaries

IMAS Data Dictionaries converted to Python Dataclass used in the IDSPy suite.

Prerequisites

To use this script, you need to have Python 3.9 or later installed. You can download Python from https://www.python.org/downloads/. Please note that Python at least 3.10 is recommended.

Installation

To install the necessary packages, run the following command:

python -m pip install idspy_dictionaries

Usage

To load the desired IDS :

from idspy_dictionaries import ids_gyrokinetics_local # or any other available IDS
new_ids = ids_gyrokinetics_local.Gyrokinetics()

FAQ

Q: What is the minimum required version of Python to run this script?
A: The recommended version of Python is 3.10. It can be used with Python >= 3.9

but there is no support in that case.

Q: Can I add new members to the dataclasses?

A: This option is not possible to be sure that the dataclasses follow the IMAS conventions.

Q: Is the package compatible with pydantic and/or attrs?

A: Short answer, no ;)

Q: I would really like to use python <3.9 is it really impossible?
A: IDSPy_dictionaries used mainly python dataclasses and the slot property which had been added in python 3.10 only.

The main reason to use __slots__ is to avoid addition of members in the IDS and remains fully compliant with IMAS. A version of the package had been published “as it is” without the slots dependency but need at least python 3.9. The way dataclasses are generated with the associated fields, at the opposite, is not compatible at all with python 3.8.

Q: Can I load all the dictionaries at once?

A: For performances reasons, it’s not possible right now.

Metadata

Release files for idspy-dictionaries 40001.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for idspy-dictionaries 40001.5.1
File Size Uploaded Provenance Actions
idspy_dictionaries-40001.5.1.tar.gz 424.5 kB Without provenance Details for idspy_dictionaries-40001.5.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for idspy-dictionaries 40001.5.1
File Interpreter ABI Platform Actions
idspy_dictionaries-40001.5.1-py3-none-any.whl Python 3 none any Details for idspy_dictionaries-40001.5.1-py3-none-any.whl

Total release size: 976.0 kB

Release files / idspy_dictionaries-40001.5.1.tar.gz

Download URL idspy_dictionaries-40001.5.1.tar.gz
Size 424.5 kB
Tags Source
SHA-256 checksum
How to use checksums
bdfcc6331324213d9f01c5ec760bb4b6744b147de9819abc1d446e9cb5bde177
BLAKE2b-256 checksum
How to use checksums
0b27318428367700d90ffc9a6eb9780b4b12ac797cc4e32b26d1a316ddbac72a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.10

Release files / idspy_dictionaries-40001.5.1-py3-none-any.whl

Download URL idspy_dictionaries-40001.5.1-py3-none-any.whl
Size 551.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1c9a64f81de61d3bee4dd231a279cf6e0339f80d6a5acb4eafcc92317630825f
BLAKE2b-256 checksum
How to use checksums
e13f3332798d4d84ed84bd79e32a57193e633bf9905803f1018c5e544250494d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.10

Security for idspy-dictionaries 40001.5.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page