.\build.ps1
from pydantic import BaseModel
from HowdenConfig.config import Config
class Model1(BaseModel):
provider_and_model: str = "openai:"
path: str = "hest"
class Model2(BaseModel):
provider_and_model: str = "llamaparser:"
path: str = "hest2"
class Parameter(Config):
pdf_path: str = "hest/b.json"
split: bool = True
llama_premium_mode: bool = True
model1: Model1 = Model1()
model2: Model2 = Model2()
if __name__ == "__main__":
parameter = Parameter()
print(parameter.split)
print(parameter.pdf_path)
print(parameter.model1.provider_and_model)
parameter.write_to_json_file("hest.json")
Metadata
Release files for HowdenConfig 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| howdenconfig-1.1.0.tar.gz | 4.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| howdenconfig-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.1 kB
Release files / howdenconfig-1.1.0.tar.gz
| Download URL | howdenconfig-1.1.0.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6bbb3b92e8c670b5695ac88a3513b2c4386f0508446b1beaacad7d9cee2b8080
|
|
BLAKE2b-256 checksum How to use checksums |
b4ebecb8950fe3cd6e047cdc880c77bf2230a20988758ca55a7f84ee46f0e254
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.16 {"installer":{"name":"uv","version":"0.12.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / howdenconfig-1.1.0-py3-none-any.whl
| Download URL | howdenconfig-1.1.0-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d12ea864b95acdcba3162fd95e56fb78589dc041b6a710ff3874d5492d0a68b8
|
|
BLAKE2b-256 checksum How to use checksums |
ae27e965833f43dd942438647911f3236a2da16ae81b30b33f89b712829546f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.16 {"installer":{"name":"uv","version":"0.12.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|