pylamda 0.1.0__py3-none-any.whl

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.
pylamda/__init__.py ADDED
@@ -0,0 +1,82 @@
1
+ """pylamda: read, write, verify, compare, combine and fix files in the LAMDA format.
2
+
3
+ The format is that of the Leiden Atomic and Molecular Database (LAMDA,
4
+ https://home.strw.leidenuniv.nl/~moldata/molformat.html). pylamda follows the standard
5
+ strictly: collision partners are identified by their ID only, and deviations are
6
+ reported as issues, never silently interpreted.
7
+
8
+ >>> import pylamda
9
+ >>> data = pylamda.read("co.dat") # doctest: +SKIP
10
+ >>> data.issues # doctest: +SKIP
11
+ >>> pylamda.verify(data) # doctest: +SKIP
12
+ >>> pylamda.write(data, "co_normalised.dat") # doctest: +SKIP
13
+ """
14
+
15
+ from importlib.metadata import PackageNotFoundError, version
16
+
17
+ from .bib import BibEntry, BibResult, bibtex, collect_references
18
+ from .combine import AddedPartner, CombineError, DroppedPartner, add_partner, drop_partner
19
+ from .compare import LamdaDiff, LevelMatch, PartnerDiff, compare, critical_density, match_levels
20
+ from .fix import FixError, FixRecord, add_reference, fix, patch
21
+ from .issues import CODES, SEVERITIES, Issue, LamdaReadError
22
+ from .model import (
23
+ PARTNER_IDS,
24
+ PARTNERS,
25
+ STANDARD_PARTNERS,
26
+ BlockSource,
27
+ CollisionSet,
28
+ LamdaData,
29
+ SourceMap,
30
+ partner_name,
31
+ split_partner_line,
32
+ )
33
+ from .reader import read
34
+ from .references import find_dois
35
+ from .verify import verify
36
+ from .writer import write
37
+
38
+ try:
39
+ __version__ = version("pylamda")
40
+ except PackageNotFoundError: # not installed
41
+ __version__ = "0+unknown"
42
+
43
+ __all__ = [
44
+ "CODES",
45
+ "PARTNERS",
46
+ "PARTNER_IDS",
47
+ "PartnerDiff",
48
+ "SEVERITIES",
49
+ "STANDARD_PARTNERS",
50
+ "AddedPartner",
51
+ "BibEntry",
52
+ "BibResult",
53
+ "BlockSource",
54
+ "CollisionSet",
55
+ "CombineError",
56
+ "DroppedPartner",
57
+ "FixError",
58
+ "FixRecord",
59
+ "Issue",
60
+ "LevelMatch",
61
+ "LamdaData",
62
+ "LamdaDiff",
63
+ "LamdaReadError",
64
+ "SourceMap",
65
+ "__version__",
66
+ "add_partner",
67
+ "add_reference",
68
+ "bibtex",
69
+ "collect_references",
70
+ "compare",
71
+ "critical_density",
72
+ "drop_partner",
73
+ "find_dois",
74
+ "fix",
75
+ "match_levels",
76
+ "partner_name",
77
+ "patch",
78
+ "read",
79
+ "split_partner_line",
80
+ "verify",
81
+ "write",
82
+ ]
pylamda/__main__.py ADDED
@@ -0,0 +1,7 @@
1
+ """``python -m pylamda``: the command line (see :mod:`pylamda.cli`)."""
2
+
3
+ import sys
4
+
5
+ from .cli import main
6
+
7
+ sys.exit(main())