nfield 0.1.0__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.
Files changed (445) hide show
  1. nfield-0.1.0/.github/ISSUE_TEMPLATE/bug_report.yml +33 -0
  2. nfield-0.1.0/.github/ISSUE_TEMPLATE/feature_request.yml +18 -0
  3. nfield-0.1.0/.github/PULL_REQUEST_TEMPLATE.md +12 -0
  4. nfield-0.1.0/.github/dependabot.yml +12 -0
  5. nfield-0.1.0/.github/workflows/ci.yml +51 -0
  6. nfield-0.1.0/.github/workflows/release.yml +38 -0
  7. nfield-0.1.0/.gitignore +44 -0
  8. nfield-0.1.0/.pre-commit-config.yaml +22 -0
  9. nfield-0.1.0/CHANGELOG.md +33 -0
  10. nfield-0.1.0/CONTRIBUTING.md +52 -0
  11. nfield-0.1.0/LICENSE +192 -0
  12. nfield-0.1.0/Makefile +34 -0
  13. nfield-0.1.0/PKG-INFO +201 -0
  14. nfield-0.1.0/README.md +169 -0
  15. nfield-0.1.0/SECURITY.md +37 -0
  16. nfield-0.1.0/benchmark/README.md +78 -0
  17. nfield-0.1.0/benchmark/__init__.py +21 -0
  18. nfield-0.1.0/benchmark/adapters/__init__.py +14 -0
  19. nfield-0.1.0/benchmark/adapters/_base.py +106 -0
  20. nfield-0.1.0/benchmark/adapters/_common.py +195 -0
  21. nfield-0.1.0/benchmark/adapters/_errors.py +112 -0
  22. nfield-0.1.0/benchmark/adapters/contextgem_adapter.py +105 -0
  23. nfield-0.1.0/benchmark/adapters/instructor_adapter.py +126 -0
  24. nfield-0.1.0/benchmark/adapters/langchain_adapter.py +69 -0
  25. nfield-0.1.0/benchmark/adapters/langextract_adapter.py +141 -0
  26. nfield-0.1.0/benchmark/adapters/langstruct_adapter.py +127 -0
  27. nfield-0.1.0/benchmark/adapters/native_json_adapter.py +69 -0
  28. nfield-0.1.0/benchmark/adapters/nfield_adapter.py +123 -0
  29. nfield-0.1.0/benchmark/adapters/raw_prompt_adapter.py +65 -0
  30. nfield-0.1.0/benchmark/budget.py +72 -0
  31. nfield-0.1.0/benchmark/datasets/README.md +54 -0
  32. nfield-0.1.0/benchmark/datasets/closed_book/airports_1002/document.txt +0 -0
  33. nfield-0.1.0/benchmark/datasets/closed_book/airports_1002/gold.json +1004 -0
  34. nfield-0.1.0/benchmark/datasets/closed_book/airports_1002/schema.json +4681 -0
  35. nfield-0.1.0/benchmark/datasets/closed_book/build_fixtures.py +161 -0
  36. nfield-0.1.0/benchmark/datasets/closed_book/countries_205/document.txt +0 -0
  37. nfield-0.1.0/benchmark/datasets/closed_book/countries_205/gold.json +207 -0
  38. nfield-0.1.0/benchmark/datasets/closed_book/countries_205/schema.json +759 -0
  39. nfield-0.1.0/benchmark/datasets/closed_book/elements_59/document.txt +0 -0
  40. nfield-0.1.0/benchmark/datasets/closed_book/elements_59/gold.json +61 -0
  41. nfield-0.1.0/benchmark/datasets/closed_book/elements_59/schema.json +210 -0
  42. nfield-0.1.0/benchmark/datasets/closed_book/pokemon_600/document.txt +0 -0
  43. nfield-0.1.0/benchmark/datasets/closed_book/pokemon_600/gold.json +602 -0
  44. nfield-0.1.0/benchmark/datasets/closed_book/pokemon_600/schema.json +2305 -0
  45. nfield-0.1.0/benchmark/datasets/real/chemical_element/document.txt +21 -0
  46. nfield-0.1.0/benchmark/datasets/real/chemical_element/gold.json +22 -0
  47. nfield-0.1.0/benchmark/datasets/real/chemical_element/schema.json +50 -0
  48. nfield-0.1.0/benchmark/datasets/real/clinical_registry/document.txt +3498 -0
  49. nfield-0.1.0/benchmark/datasets/real/clinical_registry/gold.json +2525 -0
  50. nfield-0.1.0/benchmark/datasets/real/clinical_registry/schema.json +14323 -0
  51. nfield-0.1.0/benchmark/datasets/real/clinicaltrial/document.txt +414 -0
  52. nfield-0.1.0/benchmark/datasets/real/clinicaltrial/gold.json +386 -0
  53. nfield-0.1.0/benchmark/datasets/real/clinicaltrial/schema.json +1911 -0
  54. nfield-0.1.0/benchmark/datasets/real/cre_rent_roll/document.txt +5927 -0
  55. nfield-0.1.0/benchmark/datasets/real/cre_rent_roll/gold.json +4002 -0
  56. nfield-0.1.0/benchmark/datasets/real/cre_rent_roll/schema.json +20784 -0
  57. nfield-0.1.0/benchmark/datasets/real/factbook_multi/document.txt +1171 -0
  58. nfield-0.1.0/benchmark/datasets/real/factbook_multi/gold.json +1047 -0
  59. nfield-0.1.0/benchmark/datasets/real/factbook_multi/schema.json +5605 -0
  60. nfield-0.1.0/benchmark/datasets/real/factbook_us/document.txt +376 -0
  61. nfield-0.1.0/benchmark/datasets/real/factbook_us/gold.json +337 -0
  62. nfield-0.1.0/benchmark/datasets/real/factbook_us/schema.json +1790 -0
  63. nfield-0.1.0/benchmark/datasets/real/financial_consolidation/document.txt +7428 -0
  64. nfield-0.1.0/benchmark/datasets/real/financial_consolidation/gold.json +5643 -0
  65. nfield-0.1.0/benchmark/datasets/real/financial_consolidation/schema.json +36169 -0
  66. nfield-0.1.0/benchmark/datasets/real/smartphone_spec/document.txt +138 -0
  67. nfield-0.1.0/benchmark/datasets/real/smartphone_spec/gold.json +113 -0
  68. nfield-0.1.0/benchmark/datasets/real/smartphone_spec/schema.json +181 -0
  69. nfield-0.1.0/benchmark/datasets/real/war_and_peace/document.txt +66041 -0
  70. nfield-0.1.0/benchmark/datasets/real/war_and_peace/schema.json +1027 -0
  71. nfield-0.1.0/benchmark/datasets.py +206 -0
  72. nfield-0.1.0/benchmark/models.py +69 -0
  73. nfield-0.1.0/benchmark/report.py +232 -0
  74. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/MANIFEST.json +409 -0
  75. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/constrained/raw/instructor_clinicaltrial.json +35 -0
  76. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/constrained/raw/instructor_factbook_multi.json +31 -0
  77. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/constrained/raw/instructor_factbook_us.json +31 -0
  78. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/constrained/raw/instructor_war_and_peace.json +294 -0
  79. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/constrained/raw/langchain_clinicaltrial.json +432 -0
  80. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/constrained/raw/langchain_factbook_multi.json +360 -0
  81. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/constrained/raw/langchain_factbook_us.json +408 -0
  82. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/constrained/raw/langchain_war_and_peace.json +294 -0
  83. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/constrained/raw/native_json_clinicaltrial.json +432 -0
  84. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/constrained/raw/native_json_factbook_multi.json +431 -0
  85. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/constrained/raw/native_json_factbook_us.json +408 -0
  86. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/constrained/raw/native_json_war_and_peace.json +294 -0
  87. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/constrained/raw/nfield_clinicaltrial.json +616 -0
  88. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/constrained/raw/nfield_factbook_multi.json +1634 -0
  89. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/constrained/raw/nfield_factbook_us.json +545 -0
  90. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/constrained/raw/nfield_war_and_peace.json +293 -0
  91. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/constrained/raw/raw_prompt_clinicaltrial.json +35 -0
  92. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/constrained/raw/raw_prompt_factbook_multi.json +31 -0
  93. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/constrained/raw/raw_prompt_factbook_us.json +31 -0
  94. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/constrained/raw/raw_prompt_war_and_peace.json +294 -0
  95. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/constrained/scored/instructor_clinicaltrial.json +20 -0
  96. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/constrained/scored/instructor_factbook_multi.json +16 -0
  97. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/constrained/scored/instructor_factbook_us.json +16 -0
  98. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/constrained/scored/langchain_clinicaltrial.json +20 -0
  99. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/constrained/scored/langchain_factbook_multi.json +16 -0
  100. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/constrained/scored/langchain_factbook_us.json +16 -0
  101. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/constrained/scored/native_json_clinicaltrial.json +20 -0
  102. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/constrained/scored/native_json_factbook_multi.json +16 -0
  103. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/constrained/scored/native_json_factbook_us.json +16 -0
  104. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/constrained/scored/nfield_clinicaltrial.json +20 -0
  105. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/constrained/scored/nfield_factbook_multi.json +16 -0
  106. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/constrained/scored/nfield_factbook_us.json +16 -0
  107. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/constrained/scored/raw_prompt_clinicaltrial.json +20 -0
  108. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/constrained/scored/raw_prompt_factbook_multi.json +16 -0
  109. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/constrained/scored/raw_prompt_factbook_us.json +16 -0
  110. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/native/raw/instructor_clinicaltrial.json +654 -0
  111. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/native/raw/instructor_factbook_multi.json +31 -0
  112. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/native/raw/instructor_factbook_us.json +31 -0
  113. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/native/raw/instructor_war_and_peace.json +38 -0
  114. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/native/raw/langchain_clinicaltrial.json +670 -0
  115. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/native/raw/langchain_factbook_multi.json +1063 -0
  116. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/native/raw/langchain_factbook_us.json +548 -0
  117. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/native/raw/langchain_war_and_peace.json +285 -0
  118. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/native/raw/native_json_clinicaltrial.json +659 -0
  119. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/native/raw/native_json_factbook_multi.json +1066 -0
  120. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/native/raw/native_json_factbook_us.json +548 -0
  121. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/native/raw/native_json_war_and_peace.json +285 -0
  122. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/native/raw/nfield_clinicaltrial.json +616 -0
  123. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/native/raw/nfield_factbook_multi.json +1645 -0
  124. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/native/raw/nfield_factbook_us.json +545 -0
  125. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/native/raw/nfield_war_and_peace.json +293 -0
  126. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/native/raw/raw_prompt_clinicaltrial.json +664 -0
  127. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/native/raw/raw_prompt_factbook_multi.json +31 -0
  128. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/native/raw/raw_prompt_factbook_us.json +548 -0
  129. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/native/raw/raw_prompt_war_and_peace.json +19 -0
  130. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/native/scored/instructor_clinicaltrial.json +20 -0
  131. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/native/scored/instructor_factbook_multi.json +16 -0
  132. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/native/scored/instructor_factbook_us.json +16 -0
  133. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/native/scored/langchain_clinicaltrial.json +20 -0
  134. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/native/scored/langchain_factbook_multi.json +16 -0
  135. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/native/scored/langchain_factbook_us.json +16 -0
  136. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/native/scored/native_json_clinicaltrial.json +20 -0
  137. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/native/scored/native_json_factbook_multi.json +16 -0
  138. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/native/scored/native_json_factbook_us.json +16 -0
  139. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/native/scored/nfield_clinicaltrial.json +20 -0
  140. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/native/scored/nfield_factbook_multi.json +16 -0
  141. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/native/scored/nfield_factbook_us.json +16 -0
  142. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/native/scored/raw_prompt_clinicaltrial.json +20 -0
  143. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/native/scored/raw_prompt_factbook_multi.json +16 -0
  144. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/native/scored/raw_prompt_factbook_us.json +16 -0
  145. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-21_13-12-00/summary.csv +41 -0
  146. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-22_02-26-37/MANIFEST.json +89 -0
  147. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-22_02-26-37/constrained/raw/contextgem_chemical_element.json +62 -0
  148. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-22_02-26-37/constrained/raw/contextgem_smartphone_spec.json +169 -0
  149. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-22_02-26-37/constrained/raw/langextract_chemical_element.json +62 -0
  150. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-22_02-26-37/constrained/raw/langextract_smartphone_spec.json +128 -0
  151. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-22_02-26-37/constrained/raw/langstruct_chemical_element.json +62 -0
  152. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-22_02-26-37/constrained/raw/langstruct_smartphone_spec.json +169 -0
  153. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-22_02-26-37/constrained/raw/nfield_chemical_element.json +62 -0
  154. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-22_02-26-37/constrained/raw/nfield_smartphone_spec.json +169 -0
  155. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-22_02-26-37/constrained/scored/contextgem_chemical_element.json +16 -0
  156. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-22_02-26-37/constrained/scored/contextgem_smartphone_spec.json +16 -0
  157. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-22_02-26-37/constrained/scored/langextract_chemical_element.json +16 -0
  158. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-22_02-26-37/constrained/scored/langextract_smartphone_spec.json +16 -0
  159. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-22_02-26-37/constrained/scored/langstruct_chemical_element.json +16 -0
  160. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-22_02-26-37/constrained/scored/langstruct_smartphone_spec.json +16 -0
  161. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-22_02-26-37/constrained/scored/nfield_chemical_element.json +16 -0
  162. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-22_02-26-37/constrained/scored/nfield_smartphone_spec.json +16 -0
  163. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-22_02-26-37/summary.csv +9 -0
  164. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-22_02-40-00/MANIFEST.json +49 -0
  165. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-22_02-40-00/constrained/raw/contextgem_factbook_multi.json +31 -0
  166. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-22_02-40-00/constrained/raw/langextract_factbook_multi.json +31 -0
  167. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-22_02-40-00/constrained/raw/langstruct_factbook_multi.json +186 -0
  168. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-22_02-40-00/constrained/raw/nfield_factbook_multi.json +1645 -0
  169. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-22_02-40-00/constrained/scored/contextgem_factbook_multi.json +16 -0
  170. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-22_02-40-00/constrained/scored/langextract_factbook_multi.json +16 -0
  171. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-22_02-40-00/constrained/scored/langstruct_factbook_multi.json +16 -0
  172. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-22_02-40-00/constrained/scored/nfield_factbook_multi.json +16 -0
  173. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_2026-06-22_02-40-00/summary.csv +5 -0
  174. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/MANIFEST.json +409 -0
  175. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/constrained/raw/instructor_airports_1002.json +1217 -0
  176. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/constrained/raw/instructor_countries_205.json +872 -0
  177. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/constrained/raw/instructor_elements_59.json +305 -0
  178. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/constrained/raw/instructor_pokemon_600.json +2492 -0
  179. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/constrained/raw/langchain_airports_1002.json +3674 -0
  180. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/constrained/raw/langchain_countries_205.json +872 -0
  181. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/constrained/raw/langchain_elements_59.json +305 -0
  182. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/constrained/raw/langchain_pokemon_600.json +890 -0
  183. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/constrained/raw/native_json_airports_1002.json +3487 -0
  184. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/constrained/raw/native_json_countries_205.json +872 -0
  185. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/constrained/raw/native_json_elements_59.json +305 -0
  186. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/constrained/raw/native_json_pokemon_600.json +2492 -0
  187. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/constrained/raw/nfield_airports_1002.json +4813 -0
  188. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/constrained/raw/nfield_countries_205.json +866 -0
  189. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/constrained/raw/nfield_elements_59.json +300 -0
  190. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/constrained/raw/nfield_pokemon_600.json +2443 -0
  191. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/constrained/raw/raw_prompt_airports_1002.json +86 -0
  192. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/constrained/raw/raw_prompt_countries_205.json +872 -0
  193. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/constrained/raw/raw_prompt_elements_59.json +305 -0
  194. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/constrained/raw/raw_prompt_pokemon_600.json +2492 -0
  195. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/constrained/scored/instructor_airports_1002.json +17 -0
  196. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/constrained/scored/instructor_countries_205.json +18 -0
  197. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/constrained/scored/instructor_elements_59.json +19 -0
  198. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/constrained/scored/instructor_pokemon_600.json +18 -0
  199. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/constrained/scored/langchain_airports_1002.json +17 -0
  200. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/constrained/scored/langchain_countries_205.json +18 -0
  201. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/constrained/scored/langchain_elements_59.json +19 -0
  202. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/constrained/scored/langchain_pokemon_600.json +18 -0
  203. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/constrained/scored/native_json_airports_1002.json +17 -0
  204. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/constrained/scored/native_json_countries_205.json +18 -0
  205. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/constrained/scored/native_json_elements_59.json +19 -0
  206. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/constrained/scored/native_json_pokemon_600.json +18 -0
  207. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/constrained/scored/nfield_airports_1002.json +17 -0
  208. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/constrained/scored/nfield_countries_205.json +18 -0
  209. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/constrained/scored/nfield_elements_59.json +19 -0
  210. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/constrained/scored/nfield_pokemon_600.json +18 -0
  211. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/constrained/scored/raw_prompt_airports_1002.json +17 -0
  212. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/constrained/scored/raw_prompt_countries_205.json +18 -0
  213. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/constrained/scored/raw_prompt_elements_59.json +19 -0
  214. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/constrained/scored/raw_prompt_pokemon_600.json +18 -0
  215. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/native/raw/instructor_airports_1002.json +5099 -0
  216. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/native/raw/instructor_countries_205.json +872 -0
  217. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/native/raw/instructor_elements_59.json +305 -0
  218. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/native/raw/instructor_pokemon_600.json +2492 -0
  219. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/native/raw/langchain_airports_1002.json +5099 -0
  220. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/native/raw/langchain_countries_205.json +872 -0
  221. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/native/raw/langchain_elements_59.json +305 -0
  222. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/native/raw/langchain_pokemon_600.json +2492 -0
  223. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/native/raw/native_json_airports_1002.json +5099 -0
  224. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/native/raw/native_json_countries_205.json +872 -0
  225. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/native/raw/native_json_elements_59.json +305 -0
  226. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/native/raw/native_json_pokemon_600.json +2492 -0
  227. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/native/raw/nfield_airports_1002.json +4784 -0
  228. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/native/raw/nfield_countries_205.json +866 -0
  229. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/native/raw/nfield_elements_59.json +299 -0
  230. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/native/raw/nfield_pokemon_600.json +2439 -0
  231. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/native/raw/raw_prompt_airports_1002.json +5099 -0
  232. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/native/raw/raw_prompt_countries_205.json +872 -0
  233. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/native/raw/raw_prompt_elements_59.json +305 -0
  234. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/native/raw/raw_prompt_pokemon_600.json +2492 -0
  235. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/native/scored/instructor_airports_1002.json +17 -0
  236. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/native/scored/instructor_countries_205.json +18 -0
  237. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/native/scored/instructor_elements_59.json +19 -0
  238. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/native/scored/instructor_pokemon_600.json +18 -0
  239. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/native/scored/langchain_airports_1002.json +17 -0
  240. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/native/scored/langchain_countries_205.json +18 -0
  241. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/native/scored/langchain_elements_59.json +19 -0
  242. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/native/scored/langchain_pokemon_600.json +18 -0
  243. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/native/scored/native_json_airports_1002.json +17 -0
  244. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/native/scored/native_json_countries_205.json +18 -0
  245. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/native/scored/native_json_elements_59.json +19 -0
  246. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/native/scored/native_json_pokemon_600.json +18 -0
  247. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/native/scored/nfield_airports_1002.json +17 -0
  248. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/native/scored/nfield_countries_205.json +18 -0
  249. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/native/scored/nfield_elements_59.json +19 -0
  250. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/native/scored/nfield_pokemon_600.json +18 -0
  251. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/native/scored/raw_prompt_airports_1002.json +17 -0
  252. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/native/scored/raw_prompt_countries_205.json +18 -0
  253. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/native/scored/raw_prompt_elements_59.json +19 -0
  254. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/native/scored/raw_prompt_pokemon_600.json +18 -0
  255. nfield-0.1.0/benchmark/results/groq-llama-3.3-70b-versatile_closed-book_2026-06-24_13-17-26/summary.csv +121 -0
  256. nfield-0.1.0/benchmark/results/groq-nk-llama-3.3-70b-versatile_2026-06-21_11-16-55/MANIFEST.json +69 -0
  257. nfield-0.1.0/benchmark/results/groq-nk-llama-3.3-70b-versatile_2026-06-21_11-16-55/constrained/raw/nfield_clinical_registry.json +3619 -0
  258. nfield-0.1.0/benchmark/results/groq-nk-llama-3.3-70b-versatile_2026-06-21_11-16-55/constrained/raw/nfield_cre_rent_roll.json +5719 -0
  259. nfield-0.1.0/benchmark/results/groq-nk-llama-3.3-70b-versatile_2026-06-21_11-16-55/constrained/raw/nfield_financial_consolidation.json +7115 -0
  260. nfield-0.1.0/benchmark/results/groq-nk-llama-3.3-70b-versatile_2026-06-21_11-16-55/constrained/scored/nfield_clinical_registry.json +20 -0
  261. nfield-0.1.0/benchmark/results/groq-nk-llama-3.3-70b-versatile_2026-06-21_11-16-55/constrained/scored/nfield_cre_rent_roll.json +19 -0
  262. nfield-0.1.0/benchmark/results/groq-nk-llama-3.3-70b-versatile_2026-06-21_11-16-55/constrained/scored/nfield_financial_consolidation.json +19 -0
  263. nfield-0.1.0/benchmark/results/groq-nk-llama-3.3-70b-versatile_2026-06-21_11-16-55/native/raw/nfield_clinical_registry.json +3619 -0
  264. nfield-0.1.0/benchmark/results/groq-nk-llama-3.3-70b-versatile_2026-06-21_11-16-55/native/raw/nfield_cre_rent_roll.json +5719 -0
  265. nfield-0.1.0/benchmark/results/groq-nk-llama-3.3-70b-versatile_2026-06-21_11-16-55/native/raw/nfield_financial_consolidation.json +7120 -0
  266. nfield-0.1.0/benchmark/results/groq-nk-llama-3.3-70b-versatile_2026-06-21_11-16-55/native/scored/nfield_clinical_registry.json +20 -0
  267. nfield-0.1.0/benchmark/results/groq-nk-llama-3.3-70b-versatile_2026-06-21_11-16-55/native/scored/nfield_cre_rent_roll.json +19 -0
  268. nfield-0.1.0/benchmark/results/groq-nk-llama-3.3-70b-versatile_2026-06-21_11-16-55/native/scored/nfield_financial_consolidation.json +19 -0
  269. nfield-0.1.0/benchmark/results/groq-nk-llama-3.3-70b-versatile_2026-06-21_11-16-55/summary.csv +7 -0
  270. nfield-0.1.0/benchmark/runner.py +530 -0
  271. nfield-0.1.0/benchmark/runner2.py +80 -0
  272. nfield-0.1.0/benchmark/runner3.py +85 -0
  273. nfield-0.1.0/benchmark/runner4.py +108 -0
  274. nfield-0.1.0/benchmark/score.py +422 -0
  275. nfield-0.1.0/docs/api/nfield.md +160 -0
  276. nfield-0.1.0/docs/concepts/pipeline.md +35 -0
  277. nfield-0.1.0/docs/concepts/sfep.md +30 -0
  278. nfield-0.1.0/docs/index.md +35 -0
  279. nfield-0.1.0/docs/quickstart.md +136 -0
  280. nfield-0.1.0/examples/async_batch.py +32 -0
  281. nfield-0.1.0/examples/invoice_extraction.py +33 -0
  282. nfield-0.1.0/examples/quickstart.py +24 -0
  283. nfield-0.1.0/examples/schema_dict_example.py +33 -0
  284. nfield-0.1.0/mkdocs.yml +42 -0
  285. nfield-0.1.0/pyproject.toml +146 -0
  286. nfield-0.1.0/src/nfield/__init__.py +102 -0
  287. nfield-0.1.0/src/nfield/_version.py +17 -0
  288. nfield-0.1.0/src/nfield/assembly/__init__.py +49 -0
  289. nfield-0.1.0/src/nfield/assembly/_blackboard.py +488 -0
  290. nfield-0.1.0/src/nfield/assembly/_quality.py +254 -0
  291. nfield-0.1.0/src/nfield/assembly/_trie.py +376 -0
  292. nfield-0.1.0/src/nfield/cli/__init__.py +22 -0
  293. nfield-0.1.0/src/nfield/cli/_app.py +235 -0
  294. nfield-0.1.0/src/nfield/config.py +207 -0
  295. nfield-0.1.0/src/nfield/engine/__init__.py +39 -0
  296. nfield-0.1.0/src/nfield/engine/_async.py +610 -0
  297. nfield-0.1.0/src/nfield/engine/_sync.py +248 -0
  298. nfield-0.1.0/src/nfield/exceptions.py +251 -0
  299. nfield-0.1.0/src/nfield/export.py +145 -0
  300. nfield-0.1.0/src/nfield/extraction/__init__.py +55 -0
  301. nfield-0.1.0/src/nfield/extraction/_papt.py +335 -0
  302. nfield-0.1.0/src/nfield/extraction/_prompt.py +461 -0
  303. nfield-0.1.0/src/nfield/extraction/_sfep.py +572 -0
  304. nfield-0.1.0/src/nfield/io.py +122 -0
  305. nfield-0.1.0/src/nfield/pipeline/__init__.py +62 -0
  306. nfield-0.1.0/src/nfield/pipeline/_coverage.py +88 -0
  307. nfield-0.1.0/src/nfield/pipeline/_state.py +135 -0
  308. nfield-0.1.0/src/nfield/pipeline/_structure.py +653 -0
  309. nfield-0.1.0/src/nfield/pipeline/s0_resources.py +63 -0
  310. nfield-0.1.0/src/nfield/pipeline/s1_schema.py +97 -0
  311. nfield-0.1.0/src/nfield/pipeline/s2a_structure.py +54 -0
  312. nfield-0.1.0/src/nfield/pipeline/s2b_prepass.py +342 -0
  313. nfield-0.1.0/src/nfield/pipeline/s2c_packing.py +898 -0
  314. nfield-0.1.0/src/nfield/pipeline/s3_excerpt.py +130 -0
  315. nfield-0.1.0/src/nfield/pipeline/s4_extract.py +348 -0
  316. nfield-0.1.0/src/nfield/pipeline/s5_validate.py +132 -0
  317. nfield-0.1.0/src/nfield/pipeline/s5b_recover.py +418 -0
  318. nfield-0.1.0/src/nfield/pipeline/s6_assemble.py +157 -0
  319. nfield-0.1.0/src/nfield/providers/__init__.py +45 -0
  320. nfield-0.1.0/src/nfield/providers/_base.py +240 -0
  321. nfield-0.1.0/src/nfield/providers/_protocol.py +79 -0
  322. nfield-0.1.0/src/nfield/providers/_reasoning.py +108 -0
  323. nfield-0.1.0/src/nfield/providers/_registry.py +171 -0
  324. nfield-0.1.0/src/nfield/providers/_token_budget.py +77 -0
  325. nfield-0.1.0/src/nfield/providers/groq/__init__.py +10 -0
  326. nfield-0.1.0/src/nfield/providers/groq/_provider.py +287 -0
  327. nfield-0.1.0/src/nfield/providers/openai/__init__.py +10 -0
  328. nfield-0.1.0/src/nfield/providers/openai/_provider.py +300 -0
  329. nfield-0.1.0/src/nfield/py.typed +0 -0
  330. nfield-0.1.0/src/nfield/retrieval/__init__.py +41 -0
  331. nfield-0.1.0/src/nfield/retrieval/_bmx.py +213 -0
  332. nfield-0.1.0/src/nfield/retrieval/_chunker.py +495 -0
  333. nfield-0.1.0/src/nfield/retrieval/_glean.py +470 -0
  334. nfield-0.1.0/src/nfield/retrieval/_morphology.py +272 -0
  335. nfield-0.1.0/src/nfield/retrieval/_retarget.py +145 -0
  336. nfield-0.1.0/src/nfield/retrieval/_tokenize.py +62 -0
  337. nfield-0.1.0/src/nfield/schema/__init__.py +49 -0
  338. nfield-0.1.0/src/nfield/schema/_deps.py +154 -0
  339. nfield-0.1.0/src/nfield/schema/_difficulty.py +193 -0
  340. nfield-0.1.0/src/nfield/schema/_flatten.py +492 -0
  341. nfield-0.1.0/src/nfield/schema/_preflight.py +393 -0
  342. nfield-0.1.0/src/nfield/schema/_tau.py +173 -0
  343. nfield-0.1.0/src/nfield/schema/_types.py +282 -0
  344. nfield-0.1.0/src/nfield/types.py +223 -0
  345. nfield-0.1.0/src/nfield/validation/__init__.py +71 -0
  346. nfield-0.1.0/src/nfield/validation/_grounding.py +294 -0
  347. nfield-0.1.0/src/nfield/validation/_normalize.py +132 -0
  348. nfield-0.1.0/src/nfield/validation/_retry.py +576 -0
  349. nfield-0.1.0/src/nfield/validation/_type_check.py +334 -0
  350. nfield-0.1.0/tests/__init__.py +0 -0
  351. nfield-0.1.0/tests/conftest.py +46 -0
  352. nfield-0.1.0/tests/fixtures/schemas/_generate_financial_10k.py +525 -0
  353. nfield-0.1.0/tests/fixtures/schemas/clinicaltrial.json +1911 -0
  354. nfield-0.1.0/tests/fixtures/schemas/clinicaltrial_truth.json +386 -0
  355. nfield-0.1.0/tests/fixtures/schemas/factbook_multi.json +5605 -0
  356. nfield-0.1.0/tests/fixtures/schemas/factbook_multi_truth.json +1047 -0
  357. nfield-0.1.0/tests/fixtures/schemas/factbook_us.json +1790 -0
  358. nfield-0.1.0/tests/fixtures/schemas/factbook_us_truth.json +337 -0
  359. nfield-0.1.0/tests/fixtures/schemas/financial_10k_realistic.json +5378 -0
  360. nfield-0.1.0/tests/fixtures/schemas/financial_sec_369fields.json +335 -0
  361. nfield-0.1.0/tests/fixtures/schemas/invoice_50fields.json +104 -0
  362. nfield-0.1.0/tests/fixtures/schemas/medical_crf_134fields.json +161 -0
  363. nfield-0.1.0/tests/fixtures/schemas/simple_flat.json +13 -0
  364. nfield-0.1.0/tests/fixtures/schemas/war_and_peace_200fields.json +1027 -0
  365. nfield-0.1.0/tests/golden/__init__.py +0 -0
  366. nfield-0.1.0/tests/golden/test_financial_10k_golden.py +77 -0
  367. nfield-0.1.0/tests/golden/test_financial_golden.py +56 -0
  368. nfield-0.1.0/tests/golden/test_invoice_golden.py +67 -0
  369. nfield-0.1.0/tests/golden/test_medical_golden.py +53 -0
  370. nfield-0.1.0/tests/integration/test_end_to_end.py +58 -0
  371. nfield-0.1.0/tests/unit/__init__.py +0 -0
  372. nfield-0.1.0/tests/unit/assembly/__init__.py +0 -0
  373. nfield-0.1.0/tests/unit/assembly/test_blackboard.py +279 -0
  374. nfield-0.1.0/tests/unit/assembly/test_quality.py +278 -0
  375. nfield-0.1.0/tests/unit/assembly/test_quality_adversarial.py +183 -0
  376. nfield-0.1.0/tests/unit/assembly/test_trie.py +250 -0
  377. nfield-0.1.0/tests/unit/cli/__init__.py +0 -0
  378. nfield-0.1.0/tests/unit/cli/test_app.py +201 -0
  379. nfield-0.1.0/tests/unit/conftest.py +62 -0
  380. nfield-0.1.0/tests/unit/engine/__init__.py +0 -0
  381. nfield-0.1.0/tests/unit/engine/conftest.py +64 -0
  382. nfield-0.1.0/tests/unit/engine/test_async.py +214 -0
  383. nfield-0.1.0/tests/unit/engine/test_batch.py +121 -0
  384. nfield-0.1.0/tests/unit/engine/test_factories.py +73 -0
  385. nfield-0.1.0/tests/unit/engine/test_nfield.py +111 -0
  386. nfield-0.1.0/tests/unit/engine/test_scale.py +161 -0
  387. nfield-0.1.0/tests/unit/engine/test_sync.py +49 -0
  388. nfield-0.1.0/tests/unit/extraction/__init__.py +0 -0
  389. nfield-0.1.0/tests/unit/extraction/test_papt.py +147 -0
  390. nfield-0.1.0/tests/unit/extraction/test_prompt.py +206 -0
  391. nfield-0.1.0/tests/unit/extraction/test_prompt_restructured.py +38 -0
  392. nfield-0.1.0/tests/unit/extraction/test_sfep.py +354 -0
  393. nfield-0.1.0/tests/unit/extraction/test_sfep_adversarial.py +258 -0
  394. nfield-0.1.0/tests/unit/pipeline/__init__.py +0 -0
  395. nfield-0.1.0/tests/unit/pipeline/test__coverage.py +92 -0
  396. nfield-0.1.0/tests/unit/pipeline/test_closed_book.py +177 -0
  397. nfield-0.1.0/tests/unit/pipeline/test_consolidated_recovery.py +126 -0
  398. nfield-0.1.0/tests/unit/pipeline/test_dependency_flow.py +207 -0
  399. nfield-0.1.0/tests/unit/pipeline/test_full_pipeline_scale.py +142 -0
  400. nfield-0.1.0/tests/unit/pipeline/test_grounding_pipeline.py +87 -0
  401. nfield-0.1.0/tests/unit/pipeline/test_input_validation.py +283 -0
  402. nfield-0.1.0/tests/unit/pipeline/test_recovery.py +152 -0
  403. nfield-0.1.0/tests/unit/pipeline/test_recovery_fallback.py +83 -0
  404. nfield-0.1.0/tests/unit/pipeline/test_s0_resources.py +91 -0
  405. nfield-0.1.0/tests/unit/pipeline/test_s1_schema.py +102 -0
  406. nfield-0.1.0/tests/unit/pipeline/test_s2a_structure.py +75 -0
  407. nfield-0.1.0/tests/unit/pipeline/test_s2b_prepass.py +234 -0
  408. nfield-0.1.0/tests/unit/pipeline/test_s2c_packing.py +659 -0
  409. nfield-0.1.0/tests/unit/pipeline/test_s3_excerpt.py +78 -0
  410. nfield-0.1.0/tests/unit/pipeline/test_s4_sfep.py +184 -0
  411. nfield-0.1.0/tests/unit/pipeline/test_s5_validate.py +132 -0
  412. nfield-0.1.0/tests/unit/pipeline/test_s6_assemble.py +109 -0
  413. nfield-0.1.0/tests/unit/pipeline/test_structure.py +257 -0
  414. nfield-0.1.0/tests/unit/providers/test_base.py +271 -0
  415. nfield-0.1.0/tests/unit/providers/test_groq.py +173 -0
  416. nfield-0.1.0/tests/unit/providers/test_openai.py +159 -0
  417. nfield-0.1.0/tests/unit/providers/test_reasoning.py +318 -0
  418. nfield-0.1.0/tests/unit/providers/test_registry.py +95 -0
  419. nfield-0.1.0/tests/unit/providers/test_token_budget.py +32 -0
  420. nfield-0.1.0/tests/unit/retrieval/test_bmx.py +93 -0
  421. nfield-0.1.0/tests/unit/retrieval/test_chunker.py +207 -0
  422. nfield-0.1.0/tests/unit/retrieval/test_glean.py +123 -0
  423. nfield-0.1.0/tests/unit/retrieval/test_morphology.py +92 -0
  424. nfield-0.1.0/tests/unit/retrieval/test_tokenize.py +36 -0
  425. nfield-0.1.0/tests/unit/schema/__init__.py +1 -0
  426. nfield-0.1.0/tests/unit/schema/test_deps.py +287 -0
  427. nfield-0.1.0/tests/unit/schema/test_difficulty.py +383 -0
  428. nfield-0.1.0/tests/unit/schema/test_flatten.py +535 -0
  429. nfield-0.1.0/tests/unit/schema/test_preflight.py +150 -0
  430. nfield-0.1.0/tests/unit/schema/test_tau.py +368 -0
  431. nfield-0.1.0/tests/unit/test_adversarial_section1.py +699 -0
  432. nfield-0.1.0/tests/unit/test_config.py +120 -0
  433. nfield-0.1.0/tests/unit/test_export.py +80 -0
  434. nfield-0.1.0/tests/unit/test_io.py +87 -0
  435. nfield-0.1.0/tests/unit/test_public_api.py +50 -0
  436. nfield-0.1.0/tests/unit/test_types.py +253 -0
  437. nfield-0.1.0/tests/unit/validation/__init__.py +0 -0
  438. nfield-0.1.0/tests/unit/validation/test_grounding.py +135 -0
  439. nfield-0.1.0/tests/unit/validation/test_normalize.py +96 -0
  440. nfield-0.1.0/tests/unit/validation/test_retry.py +354 -0
  441. nfield-0.1.0/tests/unit/validation/test_retry_adversarial.py +231 -0
  442. nfield-0.1.0/tests/unit/validation/test_stage5_flaws.py +140 -0
  443. nfield-0.1.0/tests/unit/validation/test_type_check.py +259 -0
  444. nfield-0.1.0/tests/unit/validation/test_type_check_adversarial.py +161 -0
  445. nfield-0.1.0/uv.lock +5583 -0
@@ -0,0 +1,33 @@
1
+ name: Bug report
2
+ description: Report a problem with NField
3
+ labels: ["bug"]
4
+ body:
5
+ - type: textarea
6
+ id: what-happened
7
+ attributes:
8
+ label: What happened?
9
+ description: A clear description of the bug, including the error message.
10
+ validations:
11
+ required: true
12
+ - type: textarea
13
+ id: reproduce
14
+ attributes:
15
+ label: Minimal reproduction
16
+ description: The smallest schema + document + call that reproduces it.
17
+ render: python
18
+ validations:
19
+ required: true
20
+ - type: input
21
+ id: version
22
+ attributes:
23
+ label: NField version
24
+ placeholder: "0.1.0"
25
+ validations:
26
+ required: true
27
+ - type: input
28
+ id: python
29
+ attributes:
30
+ label: Python version
31
+ placeholder: "3.12"
32
+ validations:
33
+ required: true
@@ -0,0 +1,18 @@
1
+ name: Feature request
2
+ description: Suggest an improvement or new capability
3
+ labels: ["enhancement"]
4
+ body:
5
+ - type: textarea
6
+ id: problem
7
+ attributes:
8
+ label: Problem
9
+ description: What are you trying to do that NField does not support today?
10
+ validations:
11
+ required: true
12
+ - type: textarea
13
+ id: proposal
14
+ attributes:
15
+ label: Proposed solution
16
+ description: What would the API or behaviour look like?
17
+ validations:
18
+ required: false
@@ -0,0 +1,12 @@
1
+ ## Summary
2
+
3
+ <!-- What does this PR change, and why? -->
4
+
5
+ ## Checklist
6
+
7
+ - [ ] `uv run ruff check src/ tests/` passes
8
+ - [ ] `uv run ruff format --check src/ tests/` passes
9
+ - [ ] `uv run mypy src/ --strict` passes
10
+ - [ ] `uv run pytest tests/unit/ -q` passes
11
+ - [ ] Added/updated tests for the change
12
+ - [ ] Added a `CHANGELOG.md` entry under `[Unreleased]`
@@ -0,0 +1,12 @@
1
+ version: 2
2
+ updates:
3
+ # Python dependencies only. GitHub Actions are pinned by major version in the
4
+ # workflows and updated by hand, so Dependabot does not watch them.
5
+ - package-ecosystem: "pip"
6
+ directory: "/"
7
+ schedule:
8
+ interval: "weekly"
9
+ groups:
10
+ python-dependencies:
11
+ patterns:
12
+ - "*"
@@ -0,0 +1,51 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches: [main]
8
+
9
+ concurrency:
10
+ group: ${{ github.workflow }}-${{ github.ref }}
11
+ cancel-in-progress: true
12
+
13
+ jobs:
14
+ test:
15
+ runs-on: ubuntu-latest
16
+ strategy:
17
+ fail-fast: false
18
+ matrix:
19
+ python-version: ["3.10", "3.11", "3.12", "3.13"]
20
+
21
+ steps:
22
+ - uses: actions/checkout@v7
23
+ with:
24
+ fetch-depth: 0
25
+
26
+ - uses: astral-sh/setup-uv@v7
27
+
28
+ - name: Set up Python ${{ matrix.python-version }}
29
+ run: uv python install ${{ matrix.python-version }}
30
+
31
+ - name: Install dependencies
32
+ # All published extras; the benchmark adapters live in the bench dependency
33
+ # group and stay out of the test environment.
34
+ run: uv sync --all-extras --dev
35
+
36
+ - name: Lint
37
+ run: |
38
+ uv run ruff check src/ tests/
39
+ uv run ruff format --check src/ tests/
40
+
41
+ - name: Type check
42
+ run: uv run mypy src/ --strict
43
+
44
+ - name: Test
45
+ run: uv run pytest tests/unit/ -v --tb=short
46
+
47
+ - name: Upload coverage
48
+ if: matrix.python-version == '3.12'
49
+ uses: codecov/codecov-action@v7
50
+ with:
51
+ fail_ci_if_error: false
@@ -0,0 +1,38 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ tags: ["v*"]
6
+
7
+ permissions:
8
+ contents: read
9
+
10
+ jobs:
11
+ build:
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v7
15
+ with:
16
+ fetch-depth: 0
17
+ - uses: astral-sh/setup-uv@v7
18
+ - name: Build wheel and sdist
19
+ run: uv build
20
+ - name: Validate distributions
21
+ run: uvx twine check --strict dist/*
22
+ - uses: actions/upload-artifact@v7
23
+ with:
24
+ name: dist
25
+ path: dist/
26
+
27
+ publish:
28
+ needs: build
29
+ runs-on: ubuntu-latest
30
+ environment: pypi
31
+ permissions:
32
+ id-token: write # OIDC trusted publishing - no PYPI_TOKEN secret
33
+ steps:
34
+ - uses: actions/download-artifact@v8
35
+ with:
36
+ name: dist
37
+ path: dist/
38
+ - uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,44 @@
1
+ # Python
2
+ __pycache__/
3
+ *.py[cod]
4
+ *.so
5
+
6
+ # Distribution
7
+ dist/
8
+ build/
9
+ *.egg-info/
10
+
11
+ # Virtual environment
12
+ .venv/
13
+
14
+ # Tools
15
+ .pytest_cache/
16
+ .mypy_cache/
17
+ .ruff_cache/
18
+ .hypothesis/
19
+ .coverage
20
+ htmlcov/
21
+
22
+ # Environment
23
+ .env
24
+
25
+ # MkDocs build output
26
+ site/
27
+
28
+ # Packaging lockfile (keep uv.lock tracked — omit if you prefer not to)
29
+ # uv.lock
30
+
31
+ # Large downloaded test fixtures (fetched on-demand by integration tests)
32
+ tests/fixtures/documents/_cache/
33
+ tests/fixtures/documents/*.txt
34
+ tests/fixtures/documents/_mtsamples.csv
35
+ tests/fixtures/documents/clinical_note.txt
36
+
37
+ # Closed-book benchmark source dumps (downloadable; build_fixtures.py lists the URLs and
38
+ # regenerates the committed fixture folders). The fixtures themselves are tracked.
39
+ benchmark/datasets/closed_book/*.json
40
+ benchmark/datasets/closed_book/*.dat
41
+
42
+ # Benchmark documents are committed for reproducibility (the War & Peace text is
43
+ # public domain, from Project Gutenberg). Benchmark results ARE committed too —
44
+ # raw outputs are the reproducibility evidence — so benchmark/results/ is tracked.
@@ -0,0 +1,22 @@
1
+ repos:
2
+ - repo: https://github.com/astral-sh/ruff-pre-commit
3
+ rev: v0.8.0
4
+ hooks:
5
+ - id: ruff
6
+ args: [--fix]
7
+ - id: ruff-format
8
+
9
+ - repo: https://github.com/pre-commit/mirrors-mypy
10
+ rev: v1.13.0
11
+ hooks:
12
+ - id: mypy
13
+ args: [--strict]
14
+
15
+ - repo: https://github.com/pre-commit/pre-commit-hooks
16
+ rev: v5.0.0
17
+ hooks:
18
+ - id: trailing-whitespace
19
+ - id: end-of-file-fixer
20
+ - id: check-yaml
21
+ - id: check-toml
22
+ - id: debug-statements
@@ -0,0 +1,33 @@
1
+ # Changelog
2
+
3
+ Notable changes to nfield. The format follows
4
+ [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and versions follow
5
+ [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
+
7
+ ## [Unreleased]
8
+
9
+ ## [0.1.0] - 2026-06-27
10
+
11
+ First public release.
12
+
13
+ ### Added
14
+ - Extract hundreds of structured fields from a document. nfield splits a wide schema
15
+ into groups that fit the model, retrieves the relevant part of the document for each,
16
+ validates every value against the text, retries the ones that fail, and reassembles
17
+ nested JSON.
18
+ - Schemas as a JSON Schema dict, a Pydantic model, or a dataclass.
19
+ - Sync and async API: `nfield`, `nfield_async`, `NField`, `AsyncNField`, plus
20
+ `extract_batch` for running many documents through one reused engine.
21
+ - Groq and OpenAI-compatible providers. The OpenAI provider's `base_url` reaches any
22
+ compatible endpoint, hosted (OpenAI, Together, Fireworks, DeepSeek) or local
23
+ (Ollama, vLLM, LM Studio), so documents can stay on your machine.
24
+ - Reasoning-model support: `ExtractionConfig(reasoning_model=True)` turns off a model's
25
+ thinking pass per call so it does not eat the answer's output budget.
26
+ - Command-line interface (`nfield extract`, `nfield inspect`) under the `[cli]` extra.
27
+ - Tabular export to pandas or CSV under the `[export]` extra.
28
+ - Fully typed (`py.typed`, `mypy --strict`) with no required dependencies; a provider SDK
29
+ is pulled in only when you use it.
30
+ - Documentation site and runnable examples.
31
+
32
+ [Unreleased]: https://github.com/nfield-labs/nfield/compare/v0.1.0...HEAD
33
+ [0.1.0]: https://github.com/nfield-labs/nfield/releases/tag/v0.1.0
@@ -0,0 +1,52 @@
1
+ # Contributing to NField
2
+
3
+ Thanks for your interest in improving NField. This guide covers the
4
+ development workflow and the two most common extensions: adding a provider and
5
+ adding a pipeline stage.
6
+
7
+ ## Development setup
8
+
9
+ NField uses [`uv`](https://github.com/astral-sh/uv).
10
+
11
+ ```bash
12
+ uv sync --all-extras --dev
13
+ uv run ruff check src/ tests/
14
+ uv run ruff format --check src/ tests/
15
+ uv run mypy src/ --strict
16
+ uv run pytest tests/unit/ -q
17
+ ```
18
+
19
+ All four must pass before a PR is merged. Integration tests run only when
20
+ `GROQ_API_KEY` is set.
21
+
22
+ ## Conventions
23
+
24
+ - `src/` layout; every public name is re-exported lazily from a facade `__init__.py`
25
+ (no implementation in `__init__.py`).
26
+ - Modern typing (`str | None`, `list[int]`); `mypy --strict` clean, no `# type: ignore`.
27
+ - Optional parameters are keyword-only. No magic numbers - name every constant.
28
+ - Every raised error inherits from `NFieldError`.
29
+ - Comments cite published work or name algorithms; they do not reference internal
30
+ design docs.
31
+
32
+ ## Adding a provider
33
+
34
+ 1. Implement the `LLMProvider` protocol (`providers/_protocol.py`): the async `complete`
35
+ method plus the `context_window`, `max_output_tokens`, and `model_name` properties.
36
+ Import the SDK inside the client, not at module top, so `import nfield` stays
37
+ dependency-free.
38
+ 2. Register it in `providers/_registry.py` with a one-line prefix entry, or call
39
+ `register_provider(provider_prefix, module_path, class_name)`.
40
+ 3. Add the SDK as an optional dependency in `pyproject.toml`.
41
+
42
+ ## Adding a pipeline stage
43
+
44
+ 1. Add `pipeline/sN_name.py` exposing a `run_stage_N(state, ...)` function over
45
+ `PipelineState`. A field belongs on the state only if the next stage reads it.
46
+ 2. Wire it into the stage sequence in `engine/_async.py`.
47
+ 3. Add unit tests in `tests/unit/pipeline/`.
48
+
49
+ ## Pull requests
50
+
51
+ - One logical change per PR; add a `CHANGELOG.md` entry under `[Unreleased]`.
52
+ - Include tests for new behaviour.
nfield-0.1.0/LICENSE ADDED
@@ -0,0 +1,192 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship made available under
36
+ the License, as indicated by a copyright notice that is included in
37
+ or attached to the work (an example is provided in the Appendix below).
38
+
39
+ "Derivative Works" shall mean any work, whether in Source or Object
40
+ form, that is based on (or derived from) the Work and for which the
41
+ editorial revisions, annotations, elaborations, or other modifications
42
+ represent, as a whole, an original work of authorship. For the purposes
43
+ of this License, Derivative Works shall not include works that remain
44
+ separable from, or merely link (or bind by name) to the interfaces of,
45
+ the Work and Derivative Works thereof.
46
+
47
+ "Contribution" shall mean, as submitted to the Licensor for inclusion
48
+ in the Work by the copyright owner or by an individual or Legal Entity
49
+ authorized to submit on behalf of the copyright owner. For the purposes
50
+ of this definition, "submitted" means any form of electronic, verbal,
51
+ or written communication sent to the Licensor or its representatives,
52
+ including but not limited to communication on electronic mailing lists,
53
+ source code control systems, and issue tracking systems that are managed
54
+ by, or on behalf of, the Licensor for the purpose of discussing and
55
+ improving the Work, but excluding communication that is conspicuously
56
+ marked or designated in writing by the copyright owner as "Not a
57
+ Contribution."
58
+
59
+ "Contributor" shall mean Licensor and any Legal Entity on behalf of
60
+ whom a Contribution has been received by the Licensor and included
61
+ within the Work.
62
+
63
+ 2. Grant of Copyright License. Subject to the terms and conditions of
64
+ this License, each Contributor hereby grants to You a perpetual,
65
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
66
+ copyright license to reproduce, prepare Derivative Works of,
67
+ publicly display, publicly perform, sublicense, and distribute the
68
+ Work and such Derivative Works in Source or Object form.
69
+
70
+ 3. Grant of Patent License. Subject to the terms and conditions of
71
+ this License, each Contributor hereby grants to You a perpetual,
72
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
73
+ (except as stated in this section) patent license to make, have made,
74
+ use, offer to sell, sell, import, and otherwise transfer the Work,
75
+ where such license applies only to those patent claims licensable
76
+ by such Contributor that are necessarily infringed by their
77
+ Contribution(s) alone or by the combination of their Contribution(s)
78
+ with the Work to which such Contribution(s) was submitted. If You
79
+ institute patent litigation against any entity (including a cross-claim
80
+ or counterclaim in a lawsuit) alleging that the Work or any
81
+ Contribution embodied within the Work constitutes direct or contributory
82
+ patent infringement, then any patent licenses granted to You under
83
+ this License for that Work shall terminate as of the date such
84
+ litigation is filed.
85
+
86
+ 4. Redistribution. You may reproduce and distribute copies of the
87
+ Work or Derivative Works thereof in any medium, with or without
88
+ modifications, and in Source or Object form, provided that You
89
+ meet the following conditions:
90
+
91
+ (a) You must give any other recipients of the Work or Derivative
92
+ Works a copy of this License; and
93
+
94
+ (b) You must cause any modified files to carry prominent notices
95
+ stating that You changed the files; and
96
+
97
+ (c) You must retain, in the Source form of any Derivative Works
98
+ that You distribute, all copyright, patent, trademark, and
99
+ attribution notices from the Source form of the Work,
100
+ excluding those notices that do not pertain to any part of
101
+ the Derivative Works; and
102
+
103
+ (d) If the Work includes a "NOTICE" text file as part of its
104
+ distribution, You must include a readable copy of the
105
+ attribution notices contained within such NOTICE file, in
106
+ at least one of the following places: within a NOTICE text
107
+ file distributed as part of the Derivative Works; within
108
+ the Source form or documentation, if provided along with the
109
+ Derivative Works; or, within a display generated by the
110
+ Derivative Works, if and wherever such third-party notices
111
+ normally appear. The contents of the NOTICE file are for
112
+ informational purposes only and do not modify the License.
113
+ You may add Your own attribution notices within Derivative
114
+ Works that You distribute, alongside or in addition to the
115
+ NOTICE text from the Work, provided that such additional
116
+ attribution notices cannot be construed as modifying the License.
117
+
118
+ You may add Your own license statement for Your modifications and
119
+ may provide additional grant of rights to use, copy, modify, merge,
120
+ publish, distribute, sublicense, and/or sell copies of the
121
+ Contribution, either on an "as-is" basis, with no warranties or
122
+ conditions of any kind, either express or implied, or under other
123
+ terms and conditions for use, reproduction, and distribution.
124
+
125
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
126
+ any Contribution intentionally submitted for inclusion in the Work
127
+ by You to the Licensor shall be under the terms and conditions of
128
+ this License, without any additional terms or conditions.
129
+ Notwithstanding the above, nothing herein shall supersede or modify
130
+ the terms of any separate license agreement you may have executed
131
+ with Licensor regarding such Contributions.
132
+
133
+ 6. Trademarks. This License does not grant permission to use the trade
134
+ names, trademarks, service marks, or product names of the Licensor,
135
+ except as required for reasonable and customary use in describing the
136
+ origin of the Work and reproducing the content of the NOTICE file.
137
+
138
+ 7. Disclaimer of Warranty. Unless required by applicable law or
139
+ agreed to in writing, Licensor provides the Work (and each
140
+ Contributor provides its Contributions) on an "AS IS" BASIS,
141
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
142
+ implied, including, without limitation, any warranties or conditions
143
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
144
+ PARTICULAR PURPOSE. You are solely responsible for determining the
145
+ appropriateness of using or reproducing the Work and assume any
146
+ risks associated with Your exercise of permissions under this License.
147
+
148
+ 8. Limitation of Liability. In no event and under no legal theory,
149
+ whether in tort (including negligence), contract, or otherwise,
150
+ unless required by applicable law (such as deliberate and grossly
151
+ negligent acts) or agreed to in writing, shall any Contributor be
152
+ liable to You for damages, including any direct, indirect, special,
153
+ incidental, or exemplary damages of any character arising as a
154
+ result of this License or out of the use or inability to use the
155
+ Work (including but not limited to damages for loss of goodwill,
156
+ work stoppage, computer failure or malfunction, or all other
157
+ commercial damages or losses), even if such Contributor has been
158
+ advised of the possibility of such damages.
159
+
160
+ 9. Accepting Warranty or Additional Liability. While redistributing
161
+ the Work or Derivative Works thereof, You may choose to offer,
162
+ and charge a fee for, acceptance of support, warranty, indemnity,
163
+ or other liability obligations and/or rights consistent with this
164
+ License. However, in accepting such obligations, You may offer only
165
+ conditions that are consistent with the terms of this License.
166
+
167
+ END OF TERMS AND CONDITIONS
168
+
169
+ APPENDIX: How to apply the Apache License to your work.
170
+
171
+ To apply the Apache License to your work, attach the following
172
+ boilerplate notice, with the fields enclosed by brackets "[]"
173
+ replaced with your own identifying information. (Don't include
174
+ the brackets!) The text should be enclosed in the appropriate
175
+ comment syntax for the format of the file. We also recommend that
176
+ a file/directory name and a description of the work be included on
177
+ the same "page" as the copyright notice for easier identification
178
+ within third-party archives.
179
+
180
+ Copyright 2026 nfield-labs
181
+
182
+ Licensed under the Apache License, Version 2.0 (the "License");
183
+ you may not use this file except in compliance with the License.
184
+ You may obtain a copy of the License at
185
+
186
+ http://www.apache.org/licenses/LICENSE-2.0
187
+
188
+ Unless required by applicable law or agreed to in writing, software
189
+ distributed under the License is distributed on an "AS IS" BASIS,
190
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
191
+ See the License for the specific language governing permissions and
192
+ limitations under the License.
nfield-0.1.0/Makefile ADDED
@@ -0,0 +1,34 @@
1
+ .DEFAULT_GOAL := help
2
+ .PHONY: help install lint format typecheck test all docs build clean
3
+
4
+ help: ## Show this help
5
+ @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | \
6
+ awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-10s\033[0m %s\n", $$1, $$2}'
7
+
8
+ install: ## Install all extras and dev tooling
9
+ uv sync --all-extras --dev
10
+
11
+ lint: ## Check lint and formatting (no changes)
12
+ uv run ruff check src/ tests/
13
+ uv run ruff format --check src/ tests/
14
+
15
+ format: ## Auto-fix lint and apply formatting
16
+ uv run ruff check --fix src/ tests/
17
+ uv run ruff format src/ tests/
18
+
19
+ typecheck: ## Run mypy in strict mode
20
+ uv run mypy src/ --strict
21
+
22
+ test: ## Run the unit test suite
23
+ uv run pytest tests/unit/
24
+
25
+ all: lint typecheck test ## Lint, type-check, and test
26
+
27
+ docs: ## Serve the documentation site locally
28
+ uv run --group docs mkdocs serve
29
+
30
+ build: ## Build the wheel and sdist
31
+ uv build
32
+
33
+ clean: ## Remove build artifacts and tool caches
34
+ rm -rf dist build ./*.egg-info .pytest_cache .ruff_cache .mypy_cache .coverage htmlcov site