nuva-core 2.0.0b1__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.
nuva/__init__.py ADDED
@@ -0,0 +1,12 @@
1
+ from .nuva import DEFAULT_CDN_URL, SCHEMA_VERSION, Nuva, Queries, Repositories, UnsupportedSchemaVersionError
2
+ from .protobuf.Code_pb2 import Code
3
+ from .protobuf.Disease_pb2 import Disease
4
+ from .protobuf.InjectionMethod_pb2 import InjectionMethod
5
+ from .protobuf.NuvaDatabase_pb2 import NuvaDatabase
6
+ from .protobuf.Vaccine_pb2 import Vaccine
7
+ from .protobuf.Valence_pb2 import Valence
8
+ from .protobuf.ValenceType_pb2 import ValenceType
9
+ from .repository import CodedRepository, Repository, ValenceRepository
10
+ from .version_watcher import VersionWatcher
11
+
12
+ __version__ = "2.0.0b1"
nuva/nuva.py ADDED
@@ -0,0 +1,136 @@
1
+ import json
2
+ from dataclasses import dataclass
3
+
4
+ import requests
5
+
6
+ from . import queries
7
+ from .protobuf.NuvaDatabase_pb2 import NuvaDatabase
8
+ from .repository import CodedRepository, Repository, ValenceRepository
9
+ from .version_watcher import VersionWatcher
10
+
11
+ SCHEMA_VERSION = 2
12
+ DEFAULT_CDN_URL = "https://core.nuva.fr"
13
+ HTTP_TIMEOUT = 60
14
+
15
+
16
+ class UnsupportedSchemaVersionError(Exception):
17
+ pass
18
+
19
+
20
+ @dataclass(frozen=True)
21
+ class Repositories:
22
+ vaccines: CodedRepository
23
+ diseases: CodedRepository
24
+ valences: ValenceRepository
25
+ valence_types: Repository
26
+
27
+
28
+ @dataclass(frozen=True)
29
+ class Queries:
30
+ valences_by_vaccine: queries.ValencesByVaccineQuery
31
+ vaccines_by_valence: queries.VaccinesByValenceQuery
32
+ valences_by_disease: queries.ValencesByDiseaseQuery
33
+ diseases_by_valence: queries.DiseasesByValenceQuery
34
+ vaccines_by_disease: queries.VaccinesByDiseaseQuery
35
+ diseases_by_vaccine: queries.DiseasesByVaccineQuery
36
+ generic_vaccine_by_vaccine: queries.GenericVaccineByVaccineQuery
37
+ commercial_vaccines_by_generic_vaccine: queries.CommercialVaccinesByGenericVaccineQuery
38
+ valence_type_by_valence: queries.ValenceTypeByValenceQuery
39
+ vaccine_fuzzy_search: queries.VaccineFuzzySearchQuery
40
+ lookup_equivalent_vaccines: queries.LookupEquivalentVaccinesQuery
41
+ lookup_generalized_vaccines: queries.LookupGeneralizedVaccinesQuery
42
+ lookup_specialized_vaccines: queries.LookupSpecializedVaccinesQuery
43
+ all_nomenclatures: queries.AllNomenclaturesQuery
44
+ all_code_by_nomenclature: queries.AllCodeByNomenclatureQuery
45
+
46
+
47
+ class Nuva:
48
+ def __init__(self, db):
49
+ if db.schema_version != SCHEMA_VERSION:
50
+ raise UnsupportedSchemaVersionError(
51
+ f"Unsupported NUVA schema version {db.schema_version}, expected {SCHEMA_VERSION}"
52
+ )
53
+
54
+ self.db = db
55
+
56
+ self.repositories = Repositories(
57
+ vaccines=CodedRepository(db.vaccines),
58
+ diseases=CodedRepository(db.diseases),
59
+ valences=ValenceRepository(db.valences),
60
+ valence_types=Repository(db.valence_types),
61
+ )
62
+
63
+ valences_by_vaccine = queries.ValencesByVaccineQuery(self.repositories)
64
+ vaccines_by_valence = queries.VaccinesByValenceQuery(self.repositories)
65
+ valences_by_disease = queries.ValencesByDiseaseQuery(self.repositories)
66
+ diseases_by_valence = queries.DiseasesByValenceQuery(self.repositories)
67
+
68
+ self.queries = Queries(
69
+ valences_by_vaccine=valences_by_vaccine,
70
+ vaccines_by_valence=vaccines_by_valence,
71
+ valences_by_disease=valences_by_disease,
72
+ diseases_by_valence=diseases_by_valence,
73
+ vaccines_by_disease=queries.VaccinesByDiseaseQuery(valences_by_disease, vaccines_by_valence),
74
+ diseases_by_vaccine=queries.DiseasesByVaccineQuery(valences_by_vaccine, diseases_by_valence),
75
+ generic_vaccine_by_vaccine=queries.GenericVaccineByVaccineQuery(self.repositories),
76
+ commercial_vaccines_by_generic_vaccine=queries.CommercialVaccinesByGenericVaccineQuery(self.repositories),
77
+ valence_type_by_valence=queries.ValenceTypeByValenceQuery(self.repositories),
78
+ vaccine_fuzzy_search=queries.VaccineFuzzySearchQuery(self.repositories),
79
+ lookup_equivalent_vaccines=queries.LookupEquivalentVaccinesQuery(self.repositories),
80
+ lookup_generalized_vaccines=queries.LookupGeneralizedVaccinesQuery(self.repositories),
81
+ lookup_specialized_vaccines=queries.LookupSpecializedVaccinesQuery(self.repositories),
82
+ all_nomenclatures=queries.AllNomenclaturesQuery(self.repositories),
83
+ all_code_by_nomenclature=queries.AllCodeByNomenclatureQuery(self.repositories),
84
+ )
85
+
86
+ @property
87
+ def version(self):
88
+ return self.db.version
89
+
90
+ @property
91
+ def generated_at(self):
92
+ return self.db.generated_at
93
+
94
+ @property
95
+ def locale(self):
96
+ return self.db.locale
97
+
98
+ def __repr__(self):
99
+ version = self.version
100
+ repositories = self.repositories
101
+ return (
102
+ f"<Nuva version={version.major}.{version.minor}.{version.patch} locale={self.locale} "
103
+ f"vaccine_count={len(repositories.vaccines.all())} disease_count={len(repositories.diseases.all())} "
104
+ f"valence_count={len(repositories.valences.all())} valence_type_count={len(repositories.valence_types.all())}>"
105
+ )
106
+
107
+ @classmethod
108
+ def load(cls, langs, cdn_url=DEFAULT_CDN_URL, hash=None, session=requests):
109
+ if hash is None:
110
+ hash = cls.fetch_latest_version_hash(cdn_url, session)
111
+
112
+ return {lang: cls(NuvaDatabase.FromString(_get(session, f"{cdn_url}/dumps/{hash}_{lang}.db"))) for lang in langs}
113
+
114
+ @classmethod
115
+ def fetch_latest_version_hash(cls, cdn_url=DEFAULT_CDN_URL, session=requests):
116
+ return json.loads(_get(session, f"{cdn_url}/versions/latest.json"))["hash"]
117
+
118
+ @classmethod
119
+ def watch_latest_version(cls, on_update, cdn_url=DEFAULT_CDN_URL, on_error=None, polling_interval=60, session=requests):
120
+ return VersionWatcher(
121
+ fetch_latest_version_hash=lambda: cls.fetch_latest_version_hash(cdn_url, session),
122
+ polling_interval=polling_interval,
123
+ on_update=on_update,
124
+ on_error=on_error,
125
+ ).start()
126
+
127
+ @classmethod
128
+ def load_from_file(cls, path):
129
+ with open(path, "rb") as file:
130
+ return cls(NuvaDatabase.FromString(file.read()))
131
+
132
+
133
+ def _get(session, url):
134
+ response = session.get(url, timeout=HTTP_TIMEOUT)
135
+ response.raise_for_status()
136
+ return response.content
@@ -0,0 +1,37 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: Code.proto
5
+ # Protobuf Python Version: 5.28.2
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 5,
15
+ 28,
16
+ 2,
17
+ '',
18
+ 'Code.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+
26
+
27
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\nCode.proto\x12\x04nuva\"+\n\x04\x43ode\x12\x14\n\x0cnomenclature\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\tB!\n\x0f\x63om.syadem.nuvaP\x01\xaa\x02\x0bSyadem.Nuvab\x06proto3')
28
+
29
+ _globals = globals()
30
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
31
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'Code_pb2', _globals)
32
+ if not _descriptor._USE_C_DESCRIPTORS:
33
+ _globals['DESCRIPTOR']._loaded_options = None
34
+ _globals['DESCRIPTOR']._serialized_options = b'\n\017com.syadem.nuvaP\001\252\002\013Syadem.Nuva'
35
+ _globals['_CODE']._serialized_start=20
36
+ _globals['_CODE']._serialized_end=63
37
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,39 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: Disease.proto
5
+ # Protobuf Python Version: 5.28.2
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 5,
15
+ 28,
16
+ 2,
17
+ '',
18
+ 'Disease.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
26
+ from . import Code_pb2 as Code__pb2
27
+
28
+
29
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\rDisease.proto\x12\x04nuva\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\nCode.proto\"\xb3\x01\n\x07\x44isease\x12\n\n\x02id\x18\x01 \x01(\x05\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x19\n\x05\x63odes\x18\x03 \x03(\x0b\x32\n.nuva.Code\x12\x13\n\x0bvalence_ids\x18\x04 \x03(\x05\x12.\n\ncreated_at\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB!\n\x0f\x63om.syadem.nuvaP\x01\xaa\x02\x0bSyadem.Nuvab\x06proto3')
30
+
31
+ _globals = globals()
32
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
33
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'Disease_pb2', _globals)
34
+ if not _descriptor._USE_C_DESCRIPTORS:
35
+ _globals['DESCRIPTOR']._loaded_options = None
36
+ _globals['DESCRIPTOR']._serialized_options = b'\n\017com.syadem.nuvaP\001\252\002\013Syadem.Nuva'
37
+ _globals['_DISEASE']._serialized_start=69
38
+ _globals['_DISEASE']._serialized_end=248
39
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,37 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: InjectionMethod.proto
5
+ # Protobuf Python Version: 5.28.2
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 5,
15
+ 28,
16
+ 2,
17
+ '',
18
+ 'InjectionMethod.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+
26
+
27
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x15InjectionMethod.proto\x12\x04nuva*\x81\x01\n\x0fInjectionMethod\x12\x1e\n\x1aUnspecifiedInjectionMethod\x10\x00\x12\x11\n\rIntramuscular\x10\x01\x12\x10\n\x0cSubcutaneous\x10\x02\x12\x08\n\x04Oral\x10\x03\x12\x0e\n\nIntranasal\x10\x04\x12\x0f\n\x0bIntradermal\x10\x05\x42!\n\x0f\x63om.syadem.nuvaP\x01\xaa\x02\x0bSyadem.Nuvab\x06proto3')
28
+
29
+ _globals = globals()
30
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
31
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'InjectionMethod_pb2', _globals)
32
+ if not _descriptor._USE_C_DESCRIPTORS:
33
+ _globals['DESCRIPTOR']._loaded_options = None
34
+ _globals['DESCRIPTOR']._serialized_options = b'\n\017com.syadem.nuvaP\001\252\002\013Syadem.Nuva'
35
+ _globals['_INJECTIONMETHOD']._serialized_start=32
36
+ _globals['_INJECTIONMETHOD']._serialized_end=161
37
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,43 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: NuvaDatabase.proto
5
+ # Protobuf Python Version: 5.28.2
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 5,
15
+ 28,
16
+ 2,
17
+ '',
18
+ 'NuvaDatabase.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
26
+ from . import VersionInfo_pb2 as VersionInfo__pb2
27
+ from . import Vaccine_pb2 as Vaccine__pb2
28
+ from . import Disease_pb2 as Disease__pb2
29
+ from . import Valence_pb2 as Valence__pb2
30
+ from . import ValenceType_pb2 as ValenceType__pb2
31
+
32
+
33
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x12NuvaDatabase.proto\x12\x04nuva\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x11VersionInfo.proto\x1a\rVaccine.proto\x1a\rDisease.proto\x1a\rValence.proto\x1a\x11ValenceType.proto\"\x99\x02\n\x0cNuvaDatabase\x12\"\n\x07version\x18\x01 \x01(\x0b\x32\x11.nuva.VersionInfo\x12\x30\n\x0cgenerated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0e\n\x06locale\x18\x03 \x01(\t\x12\x1f\n\x08vaccines\x18\x04 \x03(\x0b\x32\r.nuva.Vaccine\x12\x1f\n\x08\x64iseases\x18\x05 \x03(\x0b\x32\r.nuva.Disease\x12\x1f\n\x08valences\x18\x06 \x03(\x0b\x32\r.nuva.Valence\x12(\n\rvalence_types\x18\x07 \x03(\x0b\x32\x11.nuva.ValenceType\x12\x16\n\x0eschema_version\x18\x08 \x01(\rB!\n\x0f\x63om.syadem.nuvaP\x01\xaa\x02\x0bSyadem.Nuvab\x06proto3')
34
+
35
+ _globals = globals()
36
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
37
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'NuvaDatabase_pb2', _globals)
38
+ if not _descriptor._USE_C_DESCRIPTORS:
39
+ _globals['DESCRIPTOR']._loaded_options = None
40
+ _globals['DESCRIPTOR']._serialized_options = b'\n\017com.syadem.nuvaP\001\252\002\013Syadem.Nuva'
41
+ _globals['_NUVADATABASE']._serialized_start=145
42
+ _globals['_NUVADATABASE']._serialized_end=426
43
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,40 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: Vaccine.proto
5
+ # Protobuf Python Version: 5.28.2
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 5,
15
+ 28,
16
+ 2,
17
+ '',
18
+ 'Vaccine.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
26
+ from . import InjectionMethod_pb2 as InjectionMethod__pb2
27
+ from . import Code_pb2 as Code__pb2
28
+
29
+
30
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\rVaccine.proto\x12\x04nuva\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x15InjectionMethod.proto\x1a\nCode.proto\"\x85\x03\n\x07Vaccine\x12\n\n\x02id\x18\x01 \x01(\x05\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x30\n\x11injection_methods\x18\x04 \x03(\x0e\x32\x15.nuva.InjectionMethod\x12\x19\n\x05\x63odes\x18\x05 \x03(\x0b\x32\n.nuva.Code\x12\x13\n\x0bvalence_ids\x18\x06 \x03(\x05\x12\x13\n\x0bother_names\x18\x07 \x03(\t\x12\x0f\n\x07generic\x18\x08 \x01(\x08\x12\x1f\n\x12generic_vaccine_id\x18\t \x01(\x05H\x01\x88\x01\x01\x12\x16\n\x0eimmunoglobulin\x18\n \x01(\x08\x12.\n\ncreated_at\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x0e\n\x0c_descriptionB\x15\n\x13_generic_vaccine_idB!\n\x0f\x63om.syadem.nuvaP\x01\xaa\x02\x0bSyadem.Nuvab\x06proto3')
31
+
32
+ _globals = globals()
33
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
34
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'Vaccine_pb2', _globals)
35
+ if not _descriptor._USE_C_DESCRIPTORS:
36
+ _globals['DESCRIPTOR']._loaded_options = None
37
+ _globals['DESCRIPTOR']._serialized_options = b'\n\017com.syadem.nuvaP\001\252\002\013Syadem.Nuva'
38
+ _globals['_VACCINE']._serialized_start=92
39
+ _globals['_VACCINE']._serialized_end=481
40
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,38 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: ValenceType.proto
5
+ # Protobuf Python Version: 5.28.2
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 5,
15
+ 28,
16
+ 2,
17
+ '',
18
+ 'ValenceType.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
26
+
27
+
28
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x11ValenceType.proto\x12\x04nuva\x1a\x1fgoogle/protobuf/timestamp.proto\"\xad\x01\n\x0bValenceType\x12\n\n\x02id\x18\x01 \x01(\x05\x12\x16\n\tparent_id\x18\x02 \x01(\x05H\x00\x88\x01\x01\x12\x0c\n\x04name\x18\x03 \x01(\t\x12.\n\ncreated_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x0c\n\n_parent_idB!\n\x0f\x63om.syadem.nuvaP\x01\xaa\x02\x0bSyadem.Nuvab\x06proto3')
29
+
30
+ _globals = globals()
31
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
32
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ValenceType_pb2', _globals)
33
+ if not _descriptor._USE_C_DESCRIPTORS:
34
+ _globals['DESCRIPTOR']._loaded_options = None
35
+ _globals['DESCRIPTOR']._serialized_options = b'\n\017com.syadem.nuvaP\001\252\002\013Syadem.Nuva'
36
+ _globals['_VALENCETYPE']._serialized_start=61
37
+ _globals['_VALENCETYPE']._serialized_end=234
38
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,39 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: Valence.proto
5
+ # Protobuf Python Version: 5.28.2
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 5,
15
+ 28,
16
+ 2,
17
+ '',
18
+ 'Valence.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
26
+ from . import Code_pb2 as Code__pb2
27
+
28
+
29
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\rValence.proto\x12\x04nuva\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\nCode.proto\"\x8c\x02\n\x07Valence\x12\n\n\x02id\x18\x01 \x01(\x05\x12\x16\n\tparent_id\x18\x02 \x01(\x05H\x00\x88\x01\x01\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x14\n\x0c\x61\x62\x62reviation\x18\x04 \x01(\t\x12\x1c\n\x0fvalence_type_id\x18\x05 \x01(\x05H\x01\x88\x01\x01\x12\x19\n\x05\x63odes\x18\x06 \x03(\x0b\x32\n.nuva.Code\x12.\n\ncreated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x0c\n\n_parent_idB\x12\n\x10_valence_type_idB!\n\x0f\x63om.syadem.nuvaP\x01\xaa\x02\x0bSyadem.Nuvab\x06proto3')
30
+
31
+ _globals = globals()
32
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
33
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'Valence_pb2', _globals)
34
+ if not _descriptor._USE_C_DESCRIPTORS:
35
+ _globals['DESCRIPTOR']._loaded_options = None
36
+ _globals['DESCRIPTOR']._serialized_options = b'\n\017com.syadem.nuvaP\001\252\002\013Syadem.Nuva'
37
+ _globals['_VALENCE']._serialized_start=69
38
+ _globals['_VALENCE']._serialized_end=337
39
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,37 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: VersionInfo.proto
5
+ # Protobuf Python Version: 5.28.2
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 5,
15
+ 28,
16
+ 2,
17
+ '',
18
+ 'VersionInfo.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+
26
+
27
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x11VersionInfo.proto\x12\x04nuva\":\n\x0bVersionInfo\x12\r\n\x05major\x18\x01 \x01(\r\x12\r\n\x05minor\x18\x02 \x01(\r\x12\r\n\x05patch\x18\x03 \x01(\rB!\n\x0f\x63om.syadem.nuvaP\x01\xaa\x02\x0bSyadem.Nuvab\x06proto3')
28
+
29
+ _globals = globals()
30
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
31
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'VersionInfo_pb2', _globals)
32
+ if not _descriptor._USE_C_DESCRIPTORS:
33
+ _globals['DESCRIPTOR']._loaded_options = None
34
+ _globals['DESCRIPTOR']._serialized_options = b'\n\017com.syadem.nuvaP\001\252\002\013Syadem.Nuva'
35
+ _globals['_VERSIONINFO']._serialized_start=27
36
+ _globals['_VERSIONINFO']._serialized_end=85
37
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1 @@
1
+ # Protobuf generated files
nuva/queries.py ADDED
@@ -0,0 +1,187 @@
1
+ from collections import defaultdict
2
+
3
+ from rapidfuzz import fuzz, process, utils
4
+
5
+
6
+ class ValencesByVaccineQuery:
7
+ def __init__(self, repositories):
8
+ self._valences = repositories.valences
9
+
10
+ def call(self, vaccine):
11
+ return self._valences.by_ids(vaccine.valence_ids)
12
+
13
+
14
+ class VaccinesByValenceQuery:
15
+ def __init__(self, repositories):
16
+ self._vaccines_by_valence_id = defaultdict(list)
17
+
18
+ for vaccine in repositories.vaccines.all():
19
+ for valence_id in vaccine.valence_ids:
20
+ self._vaccines_by_valence_id[valence_id].append(vaccine)
21
+
22
+ def call(self, valence):
23
+ return self._vaccines_by_valence_id.get(valence.id, [])
24
+
25
+
26
+ class ValencesByDiseaseQuery:
27
+ def __init__(self, repositories):
28
+ self._valences = repositories.valences
29
+
30
+ def call(self, disease):
31
+ return self._valences.by_ids(disease.valence_ids)
32
+
33
+
34
+ class DiseasesByValenceQuery:
35
+ def __init__(self, repositories):
36
+ self._diseases_by_valence_id = defaultdict(list)
37
+
38
+ for disease in repositories.diseases.all():
39
+ for valence_id in disease.valence_ids:
40
+ self._diseases_by_valence_id[valence_id].append(disease)
41
+
42
+ def call(self, valence):
43
+ return self._diseases_by_valence_id.get(valence.id, [])
44
+
45
+
46
+ class VaccinesByDiseaseQuery:
47
+ def __init__(self, valences_by_disease, vaccines_by_valence):
48
+ self._valences_by_disease = valences_by_disease
49
+ self._vaccines_by_valence = vaccines_by_valence
50
+
51
+ def call(self, disease):
52
+ vaccines = (
53
+ vaccine
54
+ for valence in self._valences_by_disease.call(disease)
55
+ for vaccine in self._vaccines_by_valence.call(valence)
56
+ )
57
+ return list({vaccine.id: vaccine for vaccine in vaccines}.values())
58
+
59
+
60
+ class DiseasesByVaccineQuery:
61
+ def __init__(self, valences_by_vaccine, diseases_by_valence):
62
+ self._valences_by_vaccine = valences_by_vaccine
63
+ self._diseases_by_valence = diseases_by_valence
64
+
65
+ def call(self, vaccine):
66
+ diseases = (
67
+ disease
68
+ for valence in self._valences_by_vaccine.call(vaccine)
69
+ for disease in self._diseases_by_valence.call(valence)
70
+ )
71
+ return list({disease.id: disease for disease in diseases}.values())
72
+
73
+
74
+ class GenericVaccineByVaccineQuery:
75
+ def __init__(self, repositories):
76
+ self._vaccines = repositories.vaccines
77
+
78
+ def call(self, vaccine):
79
+ if not vaccine.HasField("generic_vaccine_id"):
80
+ return None
81
+
82
+ return self._vaccines.find(vaccine.generic_vaccine_id)
83
+
84
+
85
+ class CommercialVaccinesByGenericVaccineQuery:
86
+ def __init__(self, repositories):
87
+ self._vaccines_by_generic_vaccine_id = defaultdict(list)
88
+
89
+ for vaccine in repositories.vaccines.all():
90
+ if vaccine.HasField("generic_vaccine_id"):
91
+ self._vaccines_by_generic_vaccine_id[vaccine.generic_vaccine_id].append(vaccine)
92
+
93
+ def call(self, generic_vaccine):
94
+ return self._vaccines_by_generic_vaccine_id.get(generic_vaccine.id, [])
95
+
96
+
97
+ class ValenceTypeByValenceQuery:
98
+ def __init__(self, repositories):
99
+ self._valence_types = repositories.valence_types
100
+
101
+ def call(self, valence):
102
+ if not valence.HasField("valence_type_id"):
103
+ return None
104
+
105
+ return self._valence_types.find(valence.valence_type_id)
106
+
107
+
108
+ class VaccineFuzzySearchQuery:
109
+ def __init__(self, repositories):
110
+ self._vaccines = repositories.vaccines.all()
111
+ self._names = [vaccine.name for vaccine in self._vaccines]
112
+
113
+ def call(self, pattern):
114
+ matches = process.extract(
115
+ pattern, self._names, scorer=fuzz.WRatio, processor=utils.default_process, score_cutoff=60, limit=None
116
+ )
117
+ return [self._vaccines[index] for _name, _score, index in matches]
118
+
119
+
120
+ class LookupEquivalentVaccinesQuery:
121
+ def __init__(self, repositories):
122
+ self._vaccines_by_valence_ids = defaultdict(list)
123
+
124
+ for vaccine in repositories.vaccines.all():
125
+ self._vaccines_by_valence_ids[tuple(sorted(vaccine.valence_ids))].append(vaccine)
126
+
127
+ def call(self, vaccine):
128
+ candidates = self._vaccines_by_valence_ids[tuple(sorted(vaccine.valence_ids))]
129
+ return [candidate for candidate in candidates if candidate.id != vaccine.id]
130
+
131
+
132
+ class LookupGeneralizedVaccinesQuery:
133
+ def __init__(self, repositories):
134
+ self._generic_vaccines = [vaccine for vaccine in repositories.vaccines.all() if vaccine.generic]
135
+ self._valences = repositories.valences
136
+
137
+ def call(self, vaccine):
138
+ candidates = [
139
+ candidate
140
+ for candidate in self._generic_vaccines
141
+ if candidate.id != vaccine.id
142
+ and all(
143
+ any(self._valences.is_self_or_descendant(valence_id, candidate_valence_id) for valence_id in vaccine.valence_ids)
144
+ for candidate_valence_id in candidate.valence_ids
145
+ )
146
+ ]
147
+ return sorted(candidates, key=lambda candidate: -len(candidate.valence_ids))
148
+
149
+
150
+ class LookupSpecializedVaccinesQuery:
151
+ def __init__(self, repositories):
152
+ self._vaccines = repositories.vaccines
153
+ self._valences = repositories.valences
154
+
155
+ def call(self, vaccine):
156
+ candidates = [
157
+ candidate
158
+ for candidate in self._vaccines.all()
159
+ if candidate.id != vaccine.id
160
+ and all(
161
+ any(self._valences.is_self_or_descendant(candidate_valence_id, valence_id) for candidate_valence_id in candidate.valence_ids)
162
+ for valence_id in vaccine.valence_ids
163
+ )
164
+ ]
165
+ return sorted(candidates, key=lambda candidate: len(candidate.valence_ids))
166
+
167
+
168
+ class AllNomenclaturesQuery:
169
+ def __init__(self, repositories):
170
+ self._vaccines = repositories.vaccines
171
+
172
+ def call(self):
173
+ return list(dict.fromkeys(code.nomenclature for vaccine in self._vaccines.all() for code in vaccine.codes))
174
+
175
+
176
+ class AllCodeByNomenclatureQuery:
177
+ def __init__(self, repositories):
178
+ self._vaccines = repositories.vaccines
179
+
180
+ def call(self):
181
+ codes_by_nomenclature = defaultdict(dict)
182
+
183
+ for vaccine in self._vaccines.all():
184
+ for code in vaccine.codes:
185
+ codes_by_nomenclature[code.nomenclature][code.value] = None
186
+
187
+ return {nomenclature: list(codes) for nomenclature, codes in codes_by_nomenclature.items()}
nuva/repository.py ADDED
@@ -0,0 +1,62 @@
1
+ from collections import defaultdict
2
+
3
+
4
+ class Repository:
5
+ def __init__(self, items):
6
+ self._all = list(items)
7
+ self._index = {}
8
+
9
+ for item in self._all:
10
+ for key in self._index_keys(item):
11
+ self._index[str(key)] = item
12
+
13
+ def all(self):
14
+ return self._all
15
+
16
+ def find(self, id):
17
+ return self._index.get(str(id))
18
+
19
+ def by_ids(self, ids):
20
+ return [self.find(id) for id in ids]
21
+
22
+ def __repr__(self):
23
+ return f"<{type(self).__name__} count={len(self._all)}>"
24
+
25
+ def _index_keys(self, item):
26
+ return [item.id]
27
+
28
+
29
+ class CodedRepository(Repository):
30
+ def __init__(self, items):
31
+ super().__init__(items)
32
+
33
+ self._by_code = defaultdict(list)
34
+
35
+ for item in self._all:
36
+ for key in dict.fromkeys((code.nomenclature, code.value) for code in item.codes):
37
+ self._by_code[key].append(item)
38
+
39
+ def find_by_code(self, nomenclature, value):
40
+ return self._by_code.get((nomenclature, value), [])
41
+
42
+ def _index_keys(self, item):
43
+ return [item.id, *(code.value for code in item.codes if code.nomenclature == "SYADEM")]
44
+
45
+
46
+ class ValenceRepository(CodedRepository):
47
+ def __init__(self, items):
48
+ super().__init__(items)
49
+
50
+ self._ancestor_ids_by_id = {valence.id: self._lookup_ancestor_ids(valence) for valence in self._all}
51
+
52
+ def get_ancestor_ids(self, valence_id):
53
+ return self._ancestor_ids_by_id[valence_id]
54
+
55
+ def is_self_or_descendant(self, valence_id, ancestor_id):
56
+ return valence_id == ancestor_id or ancestor_id in self.get_ancestor_ids(valence_id)
57
+
58
+ def _lookup_ancestor_ids(self, valence):
59
+ if not valence.HasField("parent_id"):
60
+ return []
61
+
62
+ return [*self._lookup_ancestor_ids(self.find(valence.parent_id)), valence.parent_id]
@@ -0,0 +1,42 @@
1
+ import threading
2
+
3
+
4
+ class VersionWatcher:
5
+ def __init__(self, fetch_latest_version_hash, polling_interval, on_update, on_error=None):
6
+ self._fetch_latest_version_hash = fetch_latest_version_hash
7
+ self._polling_interval = polling_interval
8
+ self._on_update = on_update
9
+ self._on_error = on_error
10
+ self._stopped = threading.Event()
11
+ self._thread = threading.Thread(target=self._run, daemon=True)
12
+ self.current_version_hash = fetch_latest_version_hash()
13
+
14
+ def start(self):
15
+ self._thread.start()
16
+ return self
17
+
18
+ def stop(self):
19
+ self._stopped.set()
20
+ self._thread.join()
21
+ return self
22
+
23
+ def is_running(self):
24
+ return self._thread.is_alive()
25
+
26
+ def check_for_update(self):
27
+ try:
28
+ latest_version_hash = self._fetch_latest_version_hash()
29
+
30
+ if latest_version_hash == self.current_version_hash:
31
+ return
32
+
33
+ self._on_update(latest_version_hash)
34
+
35
+ self.current_version_hash = latest_version_hash
36
+ except Exception as error:
37
+ if self._on_error:
38
+ self._on_error(error)
39
+
40
+ def _run(self):
41
+ while not self._stopped.wait(self._polling_interval):
42
+ self.check_for_update()
@@ -0,0 +1,96 @@
1
+ Metadata-Version: 2.4
2
+ Name: nuva-core
3
+ Version: 2.0.0b1
4
+ Summary: Python SDK for NUVA, the unified vaccine nomenclature
5
+ Author-email: Syadem <developers@mesvaccins.net>
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://nuva.fr
8
+ Project-URL: Documentation, https://docs.nuva.mesvaccins.net
9
+ Project-URL: Repository, https://github.com/Syadem/nuva-libs
10
+ Keywords: vaccine,vaccination,nomenclature,healthcare,immunization
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: Intended Audience :: Healthcare Industry
13
+ Classifier: Operating System :: OS Independent
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Topic :: Scientific/Engineering :: Medical Science Apps.
16
+ Requires-Python: >=3.10
17
+ Description-Content-Type: text/markdown
18
+ License-File: LICENSE
19
+ Requires-Dist: protobuf>=5.28.2
20
+ Requires-Dist: rapidfuzz>=3
21
+ Requires-Dist: requests>=2.25
22
+ Provides-Extra: test
23
+ Requires-Dist: pytest>=8; extra == "test"
24
+ Dynamic: license-file
25
+
26
+ # NUVA Python SDK
27
+
28
+ A Python library to read the NUVA vaccine nomenclature: vaccines, valences, valence types and diseases.
29
+
30
+ ## Installation
31
+
32
+ ```bash
33
+ pip install --pre nuva-core
34
+ ```
35
+
36
+ ## Usage
37
+
38
+ ```python
39
+ from nuva import Nuva
40
+
41
+ nuva = Nuva.load(["fr"])["fr"]
42
+
43
+ vaccines = nuva.repositories.vaccines
44
+ act_hib = vaccines.find(1)
45
+ same_atc = vaccines.find_by_code("ATC", "J07AG01")
46
+ generic = nuva.queries.generic_vaccine_by_vaccine.call(act_hib)
47
+ ```
48
+
49
+ `Nuva.load` downloads the latest version published on `https://core.nuva.fr` and returns one database per
50
+ language (`en`, `fr`, `de`, `lv`, `gr`, `pl`). Pass `cdn_url`, `hash` or `session` to use another CDN, a given version
51
+ or your own `requests.Session` (for a proxy, for instance). `Nuva.load_from_file` reads a local dump.
52
+
53
+ `Nuva.watch_latest_version(on_update)` polls the CDN in a background thread and calls `on_update` with the hash of
54
+ each new version.
55
+
56
+ ### Repositories
57
+
58
+ `nuva.repositories` holds `vaccines`, `diseases`, `valences` and `valence_types`. Each one exposes `all()`,
59
+ `find(id)` (integer ID or SYADEM UUID) and `by_ids(ids)`. `find_by_code(nomenclature, value)` returns every vaccine,
60
+ disease or valence carrying a code, since a code may be shared. `valences.get_ancestor_ids(id)` lists the ancestors
61
+ of a valence from the root.
62
+
63
+ Entities are protobuf messages: use `HasField("generic_vaccine_id")` to tell an absent optional field from its
64
+ default value.
65
+
66
+ ### Queries
67
+
68
+ Each query of `nuva.queries` is called with `.call(...)`:
69
+
70
+ | Query | Argument | Result |
71
+ | --- | --- | --- |
72
+ | `valences_by_vaccine`, `diseases_by_vaccine` | vaccine | valences, diseases |
73
+ | `vaccines_by_valence`, `diseases_by_valence` | valence | vaccines, diseases |
74
+ | `valences_by_disease`, `vaccines_by_disease` | disease | valences, vaccines |
75
+ | `generic_vaccine_by_vaccine` | commercial vaccine | its generic vaccine, or `None` |
76
+ | `commercial_vaccines_by_generic_vaccine` | generic vaccine | its commercial vaccines |
77
+ | `valence_type_by_valence` | valence | its type, or `None` |
78
+ | `vaccine_fuzzy_search` | text | vaccines whose name matches, best first |
79
+ | `lookup_equivalent_vaccines` | vaccine | vaccines with the same valences |
80
+ | `lookup_generalized_vaccines` | vaccine | generic vaccines with the same or broader valences |
81
+ | `lookup_specialized_vaccines` | vaccine | vaccines with the same or narrower valences |
82
+ | `all_nomenclatures` | | vaccine nomenclatures |
83
+ | `all_code_by_nomenclature` | | vaccine codes by nomenclature |
84
+
85
+ ## Development
86
+
87
+ ```bash
88
+ pip install -e ".[test]"
89
+ pytest
90
+ ```
91
+
92
+ The protobuf modules in `nuva/protobuf` are generated by `gen_proto.sh` from the schemas in `../nuva`.
93
+
94
+ ## License
95
+
96
+ MIT
@@ -0,0 +1,19 @@
1
+ nuva/__init__.py,sha256=LmsNqbAYbA8mazAwhjDTDt299oNxjokw2AErXUe3WyU,572
2
+ nuva/nuva.py,sha256=_s2wQ33_7x5LU6sk9KRzhuS-sByz5ARkqoH1Lvg1DMs,5597
3
+ nuva/queries.py,sha256=1Y5s6WJSwVFdmMYv2y0uf215dvlruiQOPH8GXFPa4Ms,6397
4
+ nuva/repository.py,sha256=KEkLnt03sp4ll9w3QQ8VMwjJDW0VldCzQdcRVNhiQTY,1835
5
+ nuva/version_watcher.py,sha256=M6hnd3USgfVdG8P2tqBiJBYI5B2IRnbwNASRm1lLqz8,1272
6
+ nuva/protobuf/Code_pb2.py,sha256=qDoiIKw6Ed50329CHz4axpU_x12Kzqixxs9P-qB8PSc,1435
7
+ nuva/protobuf/Disease_pb2.py,sha256=_ZwXpMBO-b0fWWwYLgg0YFU4x3ncaIGSBIWnMwDauv0,1871
8
+ nuva/protobuf/InjectionMethod_pb2.py,sha256=OegPiFkYc_z9H2NNHDyVIc3_5qKBZbHE8d007zUQKX0,1650
9
+ nuva/protobuf/NuvaDatabase_pb2.py,sha256=TGlQWqAXGUqapyeKmj4F9QmS_ftKt0Q01Y6FYpUad40,2345
10
+ nuva/protobuf/Vaccine_pb2.py,sha256=c_1UHcfL-DKt09b1nOjZQeyFSiHxb66LdsD7Y0C-3Co,2339
11
+ nuva/protobuf/ValenceType_pb2.py,sha256=qtnDexCzBxyjKQP9qpk8sW4VQgXGb54x5ZnmDdFGxLE,1822
12
+ nuva/protobuf/Valence_pb2.py,sha256=a0YJ6CGLyE_EqOjTa4kU1A9m2s1gez-yt8J5CQxDpec,2042
13
+ nuva/protobuf/VersionInfo_pb2.py,sha256=F9_Kj2IyE9BVWDHalRfjpFrQ2F1XFvlTuWNdMh-MPtM,1507
14
+ nuva/protobuf/__init__.py,sha256=cfh2h5uosVDT9Bhqzr-Vjxl5B0s7vwqjKpNOyMMivuY,27
15
+ nuva_core-2.0.0b1.dist-info/licenses/LICENSE,sha256=UIp30ue1HZit7tMmSK0SS3swJBqOcLLnLJn5LY5YdNE,1036
16
+ nuva_core-2.0.0b1.dist-info/METADATA,sha256=Yb3n2tTqr16tQ1nTqFV3v75917nJp5QnKHQSFre2KDQ,3598
17
+ nuva_core-2.0.0b1.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
18
+ nuva_core-2.0.0b1.dist-info/top_level.txt,sha256=bDsfL4R5rJlH2vnxeGAzC5gSXeGdpInr59iDnZZha58,5
19
+ nuva_core-2.0.0b1.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.2.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,19 @@
1
+ MIT License
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ nuva