foamlib 0.1.13__tar.gz → 0.1.15__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: foamlib
3
- Version: 0.1.13
3
+ Version: 0.1.15
4
4
  Summary: A Python interface for interacting with OpenFOAM
5
5
  Author-email: "Gabriel S. Gerlero" <ggerlero@cimec.unl.edu.ar>
6
6
  Project-URL: Homepage, https://github.com/gerlero/foamlib
@@ -54,7 +54,7 @@ Requires-Dist: numpy<2,>=1; extra == "docs"
54
54
  [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
55
55
  [![PyPI](https://img.shields.io/pypi/v/foamlib)](https://pypi.org/project/foamlib/)
56
56
  [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/foamlib)](https://pypi.org/project/foamlib/)
57
-
57
+ [![Docker image](https://img.shields.io/badge/docker%20image-gerlero%2Ffoamlib-informational)](https://hub.docker.com/r/gerlero/foamlib/)
58
58
 
59
59
  **foamlib** provides a simple, modern and ergonomic Python interface for interacting with [OpenFOAM](https://www.openfoam.com).
60
60
 
@@ -7,7 +7,7 @@
7
7
  [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
8
8
  [![PyPI](https://img.shields.io/pypi/v/foamlib)](https://pypi.org/project/foamlib/)
9
9
  [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/foamlib)](https://pypi.org/project/foamlib/)
10
-
10
+ [![Docker image](https://img.shields.io/badge/docker%20image-gerlero%2Ffoamlib-informational)](https://hub.docker.com/r/gerlero/foamlib/)
11
11
 
12
12
  **foamlib** provides a simple, modern and ergonomic Python interface for interacting with [OpenFOAM](https://www.openfoam.com).
13
13
 
@@ -1,4 +1,4 @@
1
- __version__ = "0.1.13"
1
+ __version__ = "0.1.15"
2
2
 
3
3
  from ._cases import FoamCase, AsyncFoamCase, FoamTimeDirectory, FoamCaseBase
4
4
  from ._dictionaries import (
@@ -32,7 +32,7 @@ from pyparsing import (
32
32
  QuotedString,
33
33
  Word,
34
34
  common,
35
- identbodychars,
35
+ printables,
36
36
  )
37
37
 
38
38
  FoamDimensionSet = namedtuple(
@@ -100,7 +100,7 @@ _ITEM <<= (
100
100
  _FIELD | _LIST | _DIMENSIONED | _DIMENSIONS | common.number | _YES | _NO | _TOKEN
101
101
  )
102
102
 
103
- _TOKENS = (Word(identbodychars + "(),") | QuotedString('"', unquote_results=False))[
103
+ _TOKENS = (QuotedString('"', unquote_results=False) | Word(printables))[
104
104
  1, ...
105
105
  ].set_parse_action(lambda s, loc, tks: " ".join(tks))
106
106
 
@@ -286,9 +286,7 @@ class FoamDictionary(MutableMapping[str, Union[FoamValue, "FoamDictionary"]]):
286
286
  self._cmd(["-remove"], key=key)
287
287
 
288
288
  def __iter__(self) -> Iterator[str]:
289
- for key in self._cmd(["-keywords"]).splitlines():
290
- if not key.startswith('"'):
291
- yield key
289
+ yield from self._cmd(["-keywords"]).splitlines()
292
290
 
293
291
  def __len__(self) -> int:
294
292
  return len(list(iter(self)))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: foamlib
3
- Version: 0.1.13
3
+ Version: 0.1.15
4
4
  Summary: A Python interface for interacting with OpenFOAM
5
5
  Author-email: "Gabriel S. Gerlero" <ggerlero@cimec.unl.edu.ar>
6
6
  Project-URL: Homepage, https://github.com/gerlero/foamlib
@@ -54,7 +54,7 @@ Requires-Dist: numpy<2,>=1; extra == "docs"
54
54
  [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
55
55
  [![PyPI](https://img.shields.io/pypi/v/foamlib)](https://pypi.org/project/foamlib/)
56
56
  [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/foamlib)](https://pypi.org/project/foamlib/)
57
-
57
+ [![Docker image](https://img.shields.io/badge/docker%20image-gerlero%2Ffoamlib-informational)](https://hub.docker.com/r/gerlero/foamlib/)
58
58
 
59
59
  **foamlib** provides a simple, modern and ergonomic Python interface for interacting with [OpenFOAM](https://www.openfoam.com).
60
60
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes