Add loan-advisor-agent
Browse files- loan-advisor-agent/.venv/Lib/site-packages/typer-0.24.1.dist-info/INSTALLER +1 -0
- loan-advisor-agent/.venv/Lib/site-packages/typer-0.24.1.dist-info/METADATA +412 -0
- loan-advisor-agent/.venv/Lib/site-packages/typer-0.24.1.dist-info/RECORD +25 -0
- loan-advisor-agent/.venv/Lib/site-packages/typer-0.24.1.dist-info/REQUESTED +0 -0
- loan-advisor-agent/.venv/Lib/site-packages/typer-0.24.1.dist-info/WHEEL +4 -0
- loan-advisor-agent/.venv/Lib/site-packages/typer-0.24.1.dist-info/entry_points.txt +5 -0
- loan-advisor-agent/.venv/Lib/site-packages/typer-0.24.1.dist-info/licenses/LICENSE +21 -0
loan-advisor-agent/.venv/Lib/site-packages/typer-0.24.1.dist-info/INSTALLER
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
uv
|
loan-advisor-agent/.venv/Lib/site-packages/typer-0.24.1.dist-info/METADATA
ADDED
|
@@ -0,0 +1,412 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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: Typer, build great CLIs. Easy to code. Based on Python type hints.
|
| 5 |
+
Author-Email: =?utf-8?q?Sebasti=C3=A1n_Ram=C3=ADrez?= <tiangolo@gmail.com>
|
| 6 |
+
License-Expression: MIT
|
| 7 |
+
License-File: LICENSE
|
| 8 |
+
Classifier: Intended Audience :: Information Technology
|
| 9 |
+
Classifier: Intended Audience :: System Administrators
|
| 10 |
+
Classifier: Operating System :: OS Independent
|
| 11 |
+
Classifier: Programming Language :: Python :: 3
|
| 12 |
+
Classifier: Programming Language :: Python
|
| 13 |
+
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
|
| 14 |
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
| 15 |
+
Classifier: Topic :: Software Development :: Libraries
|
| 16 |
+
Classifier: Topic :: Software Development
|
| 17 |
+
Classifier: Typing :: Typed
|
| 18 |
+
Classifier: Development Status :: 4 - Beta
|
| 19 |
+
Classifier: Intended Audience :: Developers
|
| 20 |
+
Classifier: Programming Language :: Python :: 3 :: Only
|
| 21 |
+
Classifier: Programming Language :: Python :: 3.10
|
| 22 |
+
Classifier: Programming Language :: Python :: 3.11
|
| 23 |
+
Classifier: Programming Language :: Python :: 3.12
|
| 24 |
+
Classifier: Programming Language :: Python :: 3.13
|
| 25 |
+
Classifier: Programming Language :: Python :: 3.14
|
| 26 |
+
Project-URL: Homepage, https://github.com/fastapi/typer
|
| 27 |
+
Project-URL: Documentation, https://typer.tiangolo.com
|
| 28 |
+
Project-URL: Repository, https://github.com/fastapi/typer
|
| 29 |
+
Project-URL: Issues, https://github.com/fastapi/typer/issues
|
| 30 |
+
Project-URL: Changelog, https://typer.tiangolo.com/release-notes/
|
| 31 |
+
Requires-Python: >=3.10
|
| 32 |
+
Requires-Dist: click>=8.2.1
|
| 33 |
+
Requires-Dist: shellingham>=1.3.0
|
| 34 |
+
Requires-Dist: rich>=12.3.0
|
| 35 |
+
Requires-Dist: annotated-doc>=0.0.2
|
| 36 |
+
Description-Content-Type: text/markdown
|
| 37 |
+
|
| 38 |
+
<p align="center">
|
| 39 |
+
<a href="https://typer.tiangolo.com"><img src="https://typer.tiangolo.com/img/logo-margin/logo-margin-vector.svg#only-light" alt="Typer"></a>
|
| 40 |
+
|
| 41 |
+
</p>
|
| 42 |
+
<p align="center">
|
| 43 |
+
<em>Typer, build great CLIs. Easy to code. Based on Python type hints.</em>
|
| 44 |
+
</p>
|
| 45 |
+
<p align="center">
|
| 46 |
+
<a href="https://github.com/fastapi/typer/actions?query=workflow%3ATest+event%3Apush+branch%3Amaster" target="_blank">
|
| 47 |
+
<img src="https://github.com/fastapi/typer/actions/workflows/test.yml/badge.svg?event=push&branch=master" alt="Test">
|
| 48 |
+
</a>
|
| 49 |
+
<a href="https://github.com/fastapi/typer/actions?query=workflow%3APublish" target="_blank">
|
| 50 |
+
<img src="https://github.com/fastapi/typer/workflows/Publish/badge.svg" alt="Publish">
|
| 51 |
+
</a>
|
| 52 |
+
<a href="https://coverage-badge.samuelcolvin.workers.dev/redirect/fastapi/typer" target="_blank">
|
| 53 |
+
<img src="https://coverage-badge.samuelcolvin.workers.dev/fastapi/typer.svg" alt="Coverage">
|
| 54 |
+
<a href="https://pypi.org/project/typer" target="_blank">
|
| 55 |
+
<img src="https://img.shields.io/pypi/v/typer?color=%2334D058&label=pypi%20package" alt="Package version">
|
| 56 |
+
</a>
|
| 57 |
+
</p>
|
| 58 |
+
|
| 59 |
+
---
|
| 60 |
+
|
| 61 |
+
**Documentation**: <a href="https://typer.tiangolo.com" target="_blank">https://typer.tiangolo.com</a>
|
| 62 |
+
|
| 63 |
+
**Source Code**: <a href="https://github.com/fastapi/typer" target="_blank">https://github.com/fastapi/typer</a>
|
| 64 |
+
|
| 65 |
+
---
|
| 66 |
+
|
| 67 |
+
Typer is a library for building <abbr title="command line interface, programs executed from a terminal">CLI</abbr> applications that users will **love using** and developers will **love creating**. Based on Python type hints.
|
| 68 |
+
|
| 69 |
+
It's also a command line tool to run scripts, automatically converting them to CLI applications.
|
| 70 |
+
|
| 71 |
+
The key features are:
|
| 72 |
+
|
| 73 |
+
* **Intuitive to write**: Great editor support. <abbr title="also known as auto-complete, autocompletion, IntelliSense">Completion</abbr> everywhere. Less time debugging. Designed to be easy to use and learn. Less time reading docs.
|
| 74 |
+
* **Easy to use**: It's easy to use for the final users. Automatic help, and automatic completion for all shells.
|
| 75 |
+
* **Short**: Minimize code duplication. Multiple features from each parameter declaration. Fewer bugs.
|
| 76 |
+
* **Start simple**: The simplest example adds only 2 lines of code to your app: **1 import, 1 function call**.
|
| 77 |
+
* **Grow large**: Grow in complexity as much as you want, create arbitrarily complex trees of commands and groups of subcommands, with options and arguments.
|
| 78 |
+
* **Run scripts**: Typer includes a `typer` command/program that you can use to run scripts, automatically converting them to CLIs, even if they don't use Typer internally.
|
| 79 |
+
|
| 80 |
+
## 2026 February - Typer developer survey
|
| 81 |
+
|
| 82 |
+
Help us define Typer's future by filling the <a href="https://forms.gle/nYvutPrVkmBQZLas7" class="external-link" target="_blank">Typer developer survey</a>. ✨
|
| 83 |
+
|
| 84 |
+
## FastAPI of CLIs
|
| 85 |
+
|
| 86 |
+
**Typer** is <a href="https://fastapi.tiangolo.com" class="external-link" target="_blank">FastAPI</a>'s little sibling, it's the FastAPI of CLIs.
|
| 87 |
+
|
| 88 |
+
## Installation
|
| 89 |
+
|
| 90 |
+
Create and activate a <a href="https://typer.tiangolo.com/virtual-environments/" class="external-link" target="_blank">virtual environment</a> and then install **Typer**:
|
| 91 |
+
|
| 92 |
+
<div class="termy">
|
| 93 |
+
|
| 94 |
+
```console
|
| 95 |
+
$ pip install typer
|
| 96 |
+
---> 100%
|
| 97 |
+
Successfully installed typer rich shellingham
|
| 98 |
+
```
|
| 99 |
+
|
| 100 |
+
</div>
|
| 101 |
+
|
| 102 |
+
## Example
|
| 103 |
+
|
| 104 |
+
### The absolute minimum
|
| 105 |
+
|
| 106 |
+
* Create a file `main.py` with:
|
| 107 |
+
|
| 108 |
+
```Python
|
| 109 |
+
def main(name: str):
|
| 110 |
+
print(f"Hello {name}")
|
| 111 |
+
```
|
| 112 |
+
|
| 113 |
+
This script doesn't even use Typer internally. But you can use the `typer` command to run it as a CLI application.
|
| 114 |
+
|
| 115 |
+
### Run it
|
| 116 |
+
|
| 117 |
+
Run your application with the `typer` command:
|
| 118 |
+
|
| 119 |
+
<div class="termy">
|
| 120 |
+
|
| 121 |
+
```console
|
| 122 |
+
// Run your application
|
| 123 |
+
$ typer main.py run
|
| 124 |
+
|
| 125 |
+
// You get a nice error, you are missing NAME
|
| 126 |
+
Usage: typer [PATH_OR_MODULE] run [OPTIONS] NAME
|
| 127 |
+
Try 'typer [PATH_OR_MODULE] run --help' for help.
|
| 128 |
+
╭─ Error ───────────────────────────────────────────╮
|
| 129 |
+
│ Missing argument 'NAME'. │
|
| 130 |
+
╰───────────────────────────────────────────────────╯
|
| 131 |
+
|
| 132 |
+
|
| 133 |
+
// You get a --help for free
|
| 134 |
+
$ typer main.py run --help
|
| 135 |
+
|
| 136 |
+
Usage: typer [PATH_OR_MODULE] run [OPTIONS] NAME
|
| 137 |
+
|
| 138 |
+
Run the provided Typer app.
|
| 139 |
+
|
| 140 |
+
╭─ Arguments ───────────────────────────────────────╮
|
| 141 |
+
│ * name TEXT [default: None] [required] |
|
| 142 |
+
╰───────────────────────────────────────────────────╯
|
| 143 |
+
╭─ Options ─────────────────────────────────────────╮
|
| 144 |
+
│ --help Show this message and exit. │
|
| 145 |
+
╰───────────────────────────────────────────────────╯
|
| 146 |
+
|
| 147 |
+
// Now pass the NAME argument
|
| 148 |
+
$ typer main.py run Camila
|
| 149 |
+
|
| 150 |
+
Hello Camila
|
| 151 |
+
|
| 152 |
+
// It works! 🎉
|
| 153 |
+
```
|
| 154 |
+
|
| 155 |
+
</div>
|
| 156 |
+
|
| 157 |
+
This is the simplest use case, not even using Typer internally, but it can already be quite useful for simple scripts.
|
| 158 |
+
|
| 159 |
+
**Note**: auto-completion works when you create a Python package and run it with `--install-completion` or when you use the `typer` command.
|
| 160 |
+
|
| 161 |
+
## Use Typer in your code
|
| 162 |
+
|
| 163 |
+
Now let's start using Typer in your own code, update `main.py` with:
|
| 164 |
+
|
| 165 |
+
```Python
|
| 166 |
+
import typer
|
| 167 |
+
|
| 168 |
+
|
| 169 |
+
def main(name: str):
|
| 170 |
+
print(f"Hello {name}")
|
| 171 |
+
|
| 172 |
+
|
| 173 |
+
if __name__ == "__main__":
|
| 174 |
+
typer.run(main)
|
| 175 |
+
```
|
| 176 |
+
|
| 177 |
+
Now you could run it with Python directly:
|
| 178 |
+
|
| 179 |
+
<div class="termy">
|
| 180 |
+
|
| 181 |
+
```console
|
| 182 |
+
// Run your application
|
| 183 |
+
$ python main.py
|
| 184 |
+
|
| 185 |
+
// You get a nice error, you are missing NAME
|
| 186 |
+
Usage: main.py [OPTIONS] NAME
|
| 187 |
+
Try 'main.py --help' for help.
|
| 188 |
+
╭─ Error ───────────────────────────────────────────╮
|
| 189 |
+
│ Missing argument 'NAME'. │
|
| 190 |
+
╰───────────────────────────────────────────────────╯
|
| 191 |
+
|
| 192 |
+
|
| 193 |
+
// You get a --help for free
|
| 194 |
+
$ python main.py --help
|
| 195 |
+
|
| 196 |
+
Usage: main.py [OPTIONS] NAME
|
| 197 |
+
|
| 198 |
+
╭─ Arguments ───────────────────────────────────────╮
|
| 199 |
+
│ * name TEXT [default: None] [required] |
|
| 200 |
+
╰───────────────────────────────────────────────────╯
|
| 201 |
+
╭─ Options ─────────────────────────────────────────╮
|
| 202 |
+
│ --help Show this message and exit. │
|
| 203 |
+
╰───────────────────────────────────────────────────╯
|
| 204 |
+
|
| 205 |
+
// Now pass the NAME argument
|
| 206 |
+
$ python main.py Camila
|
| 207 |
+
|
| 208 |
+
Hello Camila
|
| 209 |
+
|
| 210 |
+
// It works! 🎉
|
| 211 |
+
```
|
| 212 |
+
|
| 213 |
+
</div>
|
| 214 |
+
|
| 215 |
+
**Note**: you can also call this same script with the `typer` command, but you don't need to.
|
| 216 |
+
|
| 217 |
+
## Example upgrade
|
| 218 |
+
|
| 219 |
+
This was the simplest example possible.
|
| 220 |
+
|
| 221 |
+
Now let's see one a bit more complex.
|
| 222 |
+
|
| 223 |
+
### An example with two subcommands
|
| 224 |
+
|
| 225 |
+
Modify the file `main.py`.
|
| 226 |
+
|
| 227 |
+
Create a `typer.Typer()` app, and create two subcommands with their parameters.
|
| 228 |
+
|
| 229 |
+
```Python hl_lines="3 6 11 20"
|
| 230 |
+
import typer
|
| 231 |
+
|
| 232 |
+
app = typer.Typer()
|
| 233 |
+
|
| 234 |
+
|
| 235 |
+
@app.command()
|
| 236 |
+
def hello(name: str):
|
| 237 |
+
print(f"Hello {name}")
|
| 238 |
+
|
| 239 |
+
|
| 240 |
+
@app.command()
|
| 241 |
+
def goodbye(name: str, formal: bool = False):
|
| 242 |
+
if formal:
|
| 243 |
+
print(f"Goodbye Ms. {name}. Have a good day.")
|
| 244 |
+
else:
|
| 245 |
+
print(f"Bye {name}!")
|
| 246 |
+
|
| 247 |
+
|
| 248 |
+
if __name__ == "__main__":
|
| 249 |
+
app()
|
| 250 |
+
```
|
| 251 |
+
|
| 252 |
+
And that will:
|
| 253 |
+
|
| 254 |
+
* Explicitly create a `typer.Typer` app.
|
| 255 |
+
* The previous `typer.run` actually creates one implicitly for you.
|
| 256 |
+
* Add two subcommands with `@app.command()`.
|
| 257 |
+
* Execute the `app()` itself, as if it was a function (instead of `typer.run`).
|
| 258 |
+
|
| 259 |
+
### Run the upgraded example
|
| 260 |
+
|
| 261 |
+
Check the new help:
|
| 262 |
+
|
| 263 |
+
<div class="termy">
|
| 264 |
+
|
| 265 |
+
```console
|
| 266 |
+
$ python main.py --help
|
| 267 |
+
|
| 268 |
+
Usage: main.py [OPTIONS] COMMAND [ARGS]...
|
| 269 |
+
|
| 270 |
+
╭─ Options ───────────────────────────────��─────────╮
|
| 271 |
+
│ --install-completion Install completion │
|
| 272 |
+
│ for the current │
|
| 273 |
+
│ shell. │
|
| 274 |
+
│ --show-completion Show completion for │
|
| 275 |
+
│ the current shell, │
|
| 276 |
+
│ to copy it or │
|
| 277 |
+
│ customize the │
|
| 278 |
+
│ installation. │
|
| 279 |
+
│ --help Show this message │
|
| 280 |
+
│ and exit. │
|
| 281 |
+
╰───────────────────────────────────────────────────╯
|
| 282 |
+
╭─ Commands ────────────────────────────────────────╮
|
| 283 |
+
│ goodbye │
|
| 284 |
+
│ hello │
|
| 285 |
+
╰───────────────────────────────────────────────────╯
|
| 286 |
+
|
| 287 |
+
// When you create a package you get ✨ auto-completion ✨ for free, installed with --install-completion
|
| 288 |
+
|
| 289 |
+
// You have 2 subcommands (the 2 functions): goodbye and hello
|
| 290 |
+
```
|
| 291 |
+
|
| 292 |
+
</div>
|
| 293 |
+
|
| 294 |
+
Now check the help for the `hello` command:
|
| 295 |
+
|
| 296 |
+
<div class="termy">
|
| 297 |
+
|
| 298 |
+
```console
|
| 299 |
+
$ python main.py hello --help
|
| 300 |
+
|
| 301 |
+
Usage: main.py hello [OPTIONS] NAME
|
| 302 |
+
|
| 303 |
+
╭─ Arguments ───────────────────────────────────────╮
|
| 304 |
+
│ * name TEXT [default: None] [required] │
|
| 305 |
+
╰───────────────────────────────────────────────────╯
|
| 306 |
+
╭─ Options ─────────────────────────────────────────╮
|
| 307 |
+
│ --help Show this message and exit. │
|
| 308 |
+
╰───────────────────────────────────────────────────╯
|
| 309 |
+
```
|
| 310 |
+
|
| 311 |
+
</div>
|
| 312 |
+
|
| 313 |
+
And now check the help for the `goodbye` command:
|
| 314 |
+
|
| 315 |
+
<div class="termy">
|
| 316 |
+
|
| 317 |
+
```console
|
| 318 |
+
$ python main.py goodbye --help
|
| 319 |
+
|
| 320 |
+
Usage: main.py goodbye [OPTIONS] NAME
|
| 321 |
+
|
| 322 |
+
╭─ Arguments ───────────────────────────────────────╮
|
| 323 |
+
│ * name TEXT [default: None] [required] │
|
| 324 |
+
╰───────────────────────────────────────────────────╯
|
| 325 |
+
╭─ Options ─────────────────────────────────────────╮
|
| 326 |
+
│ --formal --no-formal [default: no-formal] │
|
| 327 |
+
│ --help Show this message │
|
| 328 |
+
│ and exit. │
|
| 329 |
+
╰───────────────────────────────────────────────────╯
|
| 330 |
+
|
| 331 |
+
// Automatic --formal and --no-formal for the bool option 🎉
|
| 332 |
+
```
|
| 333 |
+
|
| 334 |
+
</div>
|
| 335 |
+
|
| 336 |
+
Now you can try out the new command line application:
|
| 337 |
+
|
| 338 |
+
<div class="termy">
|
| 339 |
+
|
| 340 |
+
```console
|
| 341 |
+
// Use it with the hello command
|
| 342 |
+
|
| 343 |
+
$ python main.py hello Camila
|
| 344 |
+
|
| 345 |
+
Hello Camila
|
| 346 |
+
|
| 347 |
+
// And with the goodbye command
|
| 348 |
+
|
| 349 |
+
$ python main.py goodbye Camila
|
| 350 |
+
|
| 351 |
+
Bye Camila!
|
| 352 |
+
|
| 353 |
+
// And with --formal
|
| 354 |
+
|
| 355 |
+
$ python main.py goodbye --formal Camila
|
| 356 |
+
|
| 357 |
+
Goodbye Ms. Camila. Have a good day.
|
| 358 |
+
```
|
| 359 |
+
|
| 360 |
+
</div>
|
| 361 |
+
|
| 362 |
+
**Note**: If your app only has one command, by default the command name is **omitted** in usage: `python main.py Camila`. However, when there are multiple commands, you must **explicitly include the command name**: `python main.py hello Camila`. See [One or Multiple Commands](https://typer.tiangolo.com/tutorial/commands/one-or-multiple/) for more details.
|
| 363 |
+
|
| 364 |
+
### Recap
|
| 365 |
+
|
| 366 |
+
In summary, you declare **once** the types of parameters (*CLI arguments* and *CLI options*) as function parameters.
|
| 367 |
+
|
| 368 |
+
You do that with standard modern Python types.
|
| 369 |
+
|
| 370 |
+
You don't have to learn a new syntax, the methods or classes of a specific library, etc.
|
| 371 |
+
|
| 372 |
+
Just standard **Python**.
|
| 373 |
+
|
| 374 |
+
For example, for an `int`:
|
| 375 |
+
|
| 376 |
+
```Python
|
| 377 |
+
total: int
|
| 378 |
+
```
|
| 379 |
+
|
| 380 |
+
or for a `bool` flag:
|
| 381 |
+
|
| 382 |
+
```Python
|
| 383 |
+
force: bool
|
| 384 |
+
```
|
| 385 |
+
|
| 386 |
+
And similarly for **files**, **paths**, **enums** (choices), etc. And there are tools to create **groups of subcommands**, add metadata, extra **validation**, etc.
|
| 387 |
+
|
| 388 |
+
**You get**: great editor support, including **completion** and **type checks** everywhere.
|
| 389 |
+
|
| 390 |
+
**Your users get**: automatic **`--help`**, **auto-completion** in their terminal (Bash, Zsh, Fish, PowerShell) when they install your package or when using the `typer` command.
|
| 391 |
+
|
| 392 |
+
For a more complete example including more features, see the <a href="https://typer.tiangolo.com/tutorial/">Tutorial - User Guide</a>.
|
| 393 |
+
|
| 394 |
+
## Dependencies
|
| 395 |
+
|
| 396 |
+
**Typer** stands on the shoulders of giants. It has three required dependencies:
|
| 397 |
+
|
| 398 |
+
* <a href="https://click.palletsprojects.com/" class="external-link" target="_blank">Click</a>: a popular tool for building CLIs in Python. Typer is based on it.
|
| 399 |
+
* <a href="https://rich.readthedocs.io/en/stable/index.html" class="external-link" target="_blank"><code>rich</code></a>: to show nicely formatted errors automatically.
|
| 400 |
+
* <a href="https://github.com/sarugaku/shellingham" class="external-link" target="_blank"><code>shellingham</code></a>: to automatically detect the current shell when installing completion.
|
| 401 |
+
|
| 402 |
+
### `typer-slim`
|
| 403 |
+
|
| 404 |
+
There used to be a slimmed-down version of Typer called `typer-slim`, which didn't include the dependencies `rich` and `shellingham`, nor the `typer` command.
|
| 405 |
+
|
| 406 |
+
However, since version 0.22.0, we have stopped supporting this, and `typer-slim` now simply installs (all of) Typer.
|
| 407 |
+
|
| 408 |
+
If you want to disable Rich globally, you can set an environmental variable `TYPER_USE_RICH` to `False` or `0`.
|
| 409 |
+
|
| 410 |
+
## License
|
| 411 |
+
|
| 412 |
+
This project is licensed under the terms of the MIT license.
|
loan-advisor-agent/.venv/Lib/site-packages/typer-0.24.1.dist-info/RECORD
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
../../Scripts/typer.exe,sha256=q00cpfD2mLoe0Wwpa7h5zJHZtg0gAzWG9z0Xj_Y7cns,46080
|
| 2 |
+
typer-0.24.1.dist-info/INSTALLER,sha256=5hhM4Q4mYTT9z6QB6PGpUAW81PGNFrYrdXMj4oM_6ak,2
|
| 3 |
+
typer-0.24.1.dist-info/METADATA,sha256=V4OWoWjBhPNcoIaOxhr1cszo69nePKOHMRXERkMscKs,16057
|
| 4 |
+
typer-0.24.1.dist-info/RECORD,,
|
| 5 |
+
typer-0.24.1.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 6 |
+
typer-0.24.1.dist-info/WHEEL,sha256=Wb0ASbVj8JvWHpOiIpPi7ucfIgJeCi__PzivviEAQFc,90
|
| 7 |
+
typer-0.24.1.dist-info/entry_points.txt,sha256=YO13ByiqWeuas9V0JADLUARZFUe_cwU_7wmTNvxBYQ8,57
|
| 8 |
+
typer-0.24.1.dist-info/licenses/LICENSE,sha256=WJks68-N-25AxOIRLtEhJsJDZm3KORKj14t-ysSFnUk,1086
|
| 9 |
+
typer/__init__.py,sha256=WOelHJu4PW0hk9nfjEX0Qxssb58NCh1km_Xq5LY_33s,1596
|
| 10 |
+
typer/__main__.py,sha256=bYt9eEaoRQWdejEHFD8REx9jxVEdZptECFsV7F49Ink,30
|
| 11 |
+
typer/_completion_classes.py,sha256=R9v4D8pJ_-n8fLOuyxrRSu7sP5lpXIy5fsLUW8zwsDU,7039
|
| 12 |
+
typer/_completion_shared.py,sha256=-uhCUIMc2S1ywdB-fBSSccH70mIBEsVTxHomcmy-klE,9129
|
| 13 |
+
typer/_types.py,sha256=0lcBDLcsxqr1sxTsqObj_u0Dfa37lWJYUY4PNkX4QlA,974
|
| 14 |
+
typer/_typing.py,sha256=QOw5o-B2L--C3ly2DQH6aUwag6x5brV5FhVaBZ5gzMg,1727
|
| 15 |
+
typer/cli.py,sha256=icRbazvdRdbYeaidPZOmJDOzrP3RAa7vj2INVV9Zb8Q,10183
|
| 16 |
+
typer/colors.py,sha256=e42j8uB520hLpX5C_0fiR3OOoIFMbhO3ADZvv6hlAV8,430
|
| 17 |
+
typer/completion.py,sha256=FRTR9hP_IPdJp-4GXPOq0btXo5SvgAtLVfS3ZkAMpgQ,4793
|
| 18 |
+
typer/core.py,sha256=O5NywSwHPyYbLhZkPYSfwIj7Za2hPnoPP4xPXRa97a0,27947
|
| 19 |
+
typer/main.py,sha256=xyNex-QfGUi-enu9j9rl-_wofApxs5VwdpCthAUAAkk,69005
|
| 20 |
+
typer/models.py,sha256=OwPG3MAXiUD5ih3p8eNVciXUsL07UIJfNWy3JiNpDfg,19843
|
| 21 |
+
typer/params.py,sha256=AovViRtl-VvUIXnmKKpnxoWK9_gHUbyQgXxxv3h_7lI,59713
|
| 22 |
+
typer/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 23 |
+
typer/rich_utils.py,sha256=RTyeoxwz16ZZXYbwoEixB_LSEnqpoStG_TGCRTz6zFQ,25424
|
| 24 |
+
typer/testing.py,sha256=-ovLNjUNNEFCJoau-41iTJIobsjPbqyTrRq7-8ac4z4,871
|
| 25 |
+
typer/utils.py,sha256=wnJ1DWXBFMnxLHaMN_HDYntxLRby0K-rux63aokHInI,7599
|
loan-advisor-agent/.venv/Lib/site-packages/typer-0.24.1.dist-info/REQUESTED
ADDED
|
File without changes
|
loan-advisor-agent/.venv/Lib/site-packages/typer-0.24.1.dist-info/WHEEL
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Wheel-Version: 1.0
|
| 2 |
+
Generator: pdm-backend (2.4.7)
|
| 3 |
+
Root-Is-Purelib: true
|
| 4 |
+
Tag: py3-none-any
|
loan-advisor-agent/.venv/Lib/site-packages/typer-0.24.1.dist-info/entry_points.txt
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[console_scripts]
|
| 2 |
+
typer = typer.cli:main
|
| 3 |
+
|
| 4 |
+
[gui_scripts]
|
| 5 |
+
|
loan-advisor-agent/.venv/Lib/site-packages/typer-0.24.1.dist-info/licenses/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
The MIT License (MIT)
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2019 Sebastián Ramírez
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in
|
| 13 |
+
all copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
| 21 |
+
THE SOFTWARE.
|