semvec/pypi-packages huggingface dataset:
currenapp 1.0.0
A CLI to convert different currencies.
Requires Python: >=3.10,<4.0

# Currency Converter CLI

## A Command Line Interface made with Python that convertes different currencies from all the world.

[![GitHub issues](https://img.shields.io/github/issues/caio-bernardo/currencyconv-cli?style=for-the-badge)](https://github.com/caio-bernardo/currencyconv-cli/issues)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg?style=for-the-badge)](https://github.com/psf/black)
[![GitHub license](https://img.shields.io/github/license/caio-bernardo/currencyconv-cli?color=red&style=for-the-badge)](https://github.com/caio-bernardo/currencyconv-cli/blob/master/LICENSE.md)
![](https://img.shields.io/badge/STATUS-IN%20PROGRESS-blueviolet?style=for-the-badge)

This is a small project using [Typer](https://github.com/tiangolo/typer) focusing in learning. The application takes an argument and two optional parameters, the base currency and the target currency, the default is 'BRL' (Brazilian Real) and 'USD' (US Dolar) in that order. After that, the program makes a request to [ExchangeRate-API](https://www.exchangerate-api.com/), which responds with the calculated conversion.

# Table of Contents

[Know Issues](#know-issues) - [Instalation](#instalation) - [Making changes](#making-changes) - [Contributing](#contributing) - [License](#license)

## Know Issues

- ExchangeRate-API imposes a monthly quota of 1500 requests, limiting the usage of the application. Unfortanately, this can't be fixed.

## Instalation

Pip Instalation
```zsh
pip install currenapp
```
Go to [[https://www.exchangerate-api.com/]] and Get a Free Key, once you have your key set it on your machine
``` zsh
export EXCHANGERATE_KEY='YOUR KEY'
```
And it's done. You are free to use the application.

## Making changes

If you want to make changes to this project you need to clone this repository and have poetry installed.
After cloning, go to the project's directory and initialize the poetry, don't forget to install the dependencies.

```bash
poetry install
```

Create and set your api key in [[https://www.exchangerate-api.com/]] as in [Instalation](#Instalation).

To run the project use `poetry run python currenapp/main.py` or start the poetry shell to skip these commands.

```zsh
poetry shell
python currenapp/main.py
```

## Contributing

Issues and Pull Request are welcomed. If you want to make suggestions, ask or discuss anything, open a issue.

## License

[MIT](./LICENSE.md)
json-log-display 0.0.1
Strict Text Template Parsing
Requires Python: >=3.6

# JSON log display (json-log-display)

A CLI tool for presenting JSON logging data nicely on the CLI. If there is additional non JSON
data it will attempt to ignore that and use the valid JSON that is there.

It also colours the output, can pre filter, post filter, pass through or ignore non JSON data
and supports an output format string.

## Installation

JSON log display requires Python 3.6 or higher.

Install the pip package as follows:

```
$ pip install json-log-display
```

## Use

Once installed a `jld` CLI util should be available, and all you have to do is pipe logging
which has embedded JSON to it. For example:

```
$ tail -f /some/log/file | jld
2022-10-29T16:56:11.646734D INFO some info
2022-10-29T16:56:11.693193D DEBUG some debug
2022-10-29T16:56:11.646734D INFO more info
2022-10-29T16:56:11.646734D INFO warning alert bad
2022-10-29T16:56:11.646734D ERROR really gone wrong now
```

The lines will be coloured according to the level.

To change the colour of a level you can either specify a CLI argument, for
example `--col info=green`, or set an environment variable, like `JLD_LEVEL_INFO_COL=green`.

To change the output format use `--out_format`, the default format string is
`${timestamp} ${level} ${message}"`. Each `${xxxx}` is a deference to a key in
the JSON objects logged.

To change the field which is used to determine the log colour use `--level_field`. For
example `--level_field loglevel`.

To hide non JSON data use `--no_passthrough`.

To pre filter the input (only include lines matching a given regular expression) use
`--pre_filter REGEX` and provide a regular expression.

To filter the output based on the JSON data use `--data_filter KEY=REGEX`.

By default JSON log display will attempt to skip junk to find valid JSON log data later
in the line. To disable this if this causes problems and your logging does not have a prefix
use `--no_json_search`.

## Development

A nox config is provided and Makefile. Install nox if necessary and run `nox` or
run `make`, which will use your default Python version and create a virtual
environment.

You can install development requirements in your current environment as follows:

```
$ pip install '.[dev]'
```