semvec/pypi-packages huggingface dataset:
venezuela-dollar-price 0.1.0
A package to get the dollar price in Venezuela
Requires Python: >=3.8

# Venezuela Dollar Price

`venezuela_dollar_price` is a Python library created to retrieve the current dollar price in Venezuela. It is simple to use and requires minimal setup.

## Features

- Get the latest dollar price in Venezuelan Bolivars.
- Retrieve historical dollar prices.
- User-friendly and intuitive to use.

## Installation

Use the package manager [pip](https://pip.pypa.io/en/stable/) to install `venezuela-dollar-price`.

```bash
pip install venezuela-dollar-price
```

## Usage

```python
import venezuela_dollar_price as vdp

# get the latest dollar price (BCV)
latest_price = vdp.get_latest_price("bcv")
print(latest_price.rate)

# get the latest dollar price ("binance")
latest_price = vdp.get_latest_price("binance")
print(latest_price.rate)

# get the latest dollar price ("parallel")
latest_price = vdp.get_latest_price("prom_epv")
print(latest_price.rate)
# get historical prices of the dollar (BCV)
# Note: only works for the BCV and EPV
# minimum date: 2020-12-14
historical_prices = vdp.get_historical_prices(start_date="2020-01-01", end_date="2023-01-31")
for price in historical_prices:
    print(price.date, price.rate)
```

## Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.

## License

[MIT](https://choosealicense.com/licenses/mit/)
chaincrafter 0.2.3
Seamless integration and composability for large language model apps.
Requires Python: >=3.8
Keywords: machine learning,ai,openai,llama,ml,gpt-4,gpt-3.5

# chaincrafter

Seamless integration and composability for large language model apps.

## Features
* Composable prompts and chains
  * Use multiple models to run one chain and then use that as input for a different chain and model
* Customizable prompt and response formatting
  * Add modifiers to prompts to change the style, length, and format of the response
  * Extract data from the response to use in the next prompt
  * Add custom functions to process the response
  * Add custom functions to process the input variables
* Integration with OpenAI API (llama.cpp in progress)
* Async calls to models
* Load Prompts and Chains from YAML using Catalogs
  * Makes it easier to share prompts and chains between projects
  * Build up a prompts library

## Installation
```bash
pip install chaincrafter
```

## Usage

1. Define your prompts and the variables that they expect
  - The input variables can be of any type, and can be processed by a function
  - The prompt message is treated as an _f-string_
2. Define your chain of prompts
  - The chain is a list of tuples, where each tuple contains a prompt and the output key to store the response in
  - The output key is used to access the response in the next prompt
3. Set up the models that you want to use
4. Run the chain using the models

```python
from chaincrafter import Chain, Prompt
from chaincrafter.models import OpenAiChat

chat_model = OpenAiChat(temperature=0.65, model_name="gpt-3.5-turbo")
system_prompt = Prompt("You are a helpful assistant who responds to questions about the world")
hello_prompt = Prompt("Hello, what is the capital of France? Answer only with the city name.")
followup_prompt = Prompt("{city} sounds like a nice place to visit. What is the population of {city}?")
chain = Chain(
    system_prompt,
    (hello_prompt, "city"),
    (followup_prompt, "followup_response"),
)
messages = chain.run(chat_model)
for message in messages:
    print(f"{message['role']}: {message['content']}")
```

### Running the examples
```bash
source venv/bin/activate
export OPENAI_API_KEY="..."
python -m examples.interesting_facts
python -m examples.interesting_facts_catalog
```
knivesout 23.9.13.11
ok


# Knives Out: Keep the Program Running

To make a long story short, Knives Out is a tool that helps you keep your program running. It is a daemon that monitors your program and restarts it if it crashes. It is designed to be simple and easy to use.

<img src="https://img1.doubanio.com/view/photo/l/public/p2882492018.webp">