semvec/pypi-packages huggingface dataset:
praetorian-api-client 0.5.0
API Client for praetorian-api project.
License: MIT
Requires Python: <4.0,>=3.9

# praetorian-api-client

My name is Aurelius and I am emperor's counselor 👨‍⚖️. My everyday job is to maintain and manage communication 🗣 between praetorian 
Cornelius 🛡️ and military commander Maximus ⚔️.

Or just for normal people without abstract thinking I am API Client for praetorian-api project.

## Introduction

Praetorian API Client is used for creating requests to Praetorian API and for receiving responses which are deserialized to objects.

## Installation

```python
# pip
pip install praetorian-api-client

# pipenv
pipenv install praetorian-api-client

# poetry
poetry add praetorian-api-client
```

## Example

#### 1. Create Environment object

```python
from praetorian_api_client.configuration import Environment

environment = Environment(name='praetorian-api', api_url='http://127.0.0.1:8000/', read_only=False)
```

---

#### 2. Create Configuration object

```python
from praetorian_api_client.configuration import Configuration

configuration = Configuration(environment=environment, key='api-key', secret='api-secret')
```

#### 3. Create ApiClient object

```python
from praetorian_api_client.api_client import ApiClient

api_client = ApiClient.create_from_auth(configuration=configuration, username='username', password='password')
```

#### 3. Create request from ApiClient to Api

> This request will return (if successful) list of Remote objects.

```python
remotes = api_client.remote.list()
```

## Tests

To run tests, you need to run command: `pytest`

Tests require access data to the api. For security reasons, access data is stored in environment variables. To set 
environment variables, you need to create an `.env` file from the example in the `.env.example` file.

---
Developed with 💙 and ☕️ by [Adam Žúrek](https://zurek11.github.io/) & Erik Belák
with the support of [BACKBONE s.r.o.](https://www.backbone.sk/), 2024 (C)
trmnl-colors 4.0.9
Colors, text formats, decorations and much more for TERMINAL
License: MIT
Requires Python: >=3.8

# trmnl_colors v-4.0.8
## Add colors to the static WOrLd!

This module is made to colorize the output of terminal when the code runs on command line, With that there are functions for adding basic text colors (Total 10 including invisible) and or text formats such as Bold, Italics, Underline, Light or Strike-through to your code.

But wait there is more! use background colors, filled Variants which can be accessed by calling their specific name and 'Bg' postfix as in background. Here is an example describing with  use case:

```python
from trmnl_colors import *
blueBg()
print("Hello")
reset()
```

## Latest Updates:

### Introducing constants to make your life more easier:

>### Use case for constants

```python
from trmnl_colors.constants import *

print(RedBold + "Hello" + GreenBold + " World!", end="")

print(RESET,end="")

```
>### Use case for functions

```python
from trmnl_colors.functions import *
blueBg()
print("Hello")
white()
```

```python
from trmnl_colors.functions import *
yellowBold()
print("Hello") # After every color call remember to call the reset function.
# Outputs Hello in yellow color in Bold text
white()
```

* There are also filled color variants in which the font color and the background color match each other making them viable for specific type of color operations. 

* There is a special function called white() which is basically the default white so that the color function gets reset it is recommended to use this function at the end to maintain the color of the terminal.
* PS. if you want to create blocks of colors for decoration purposes use filled variants e.g. whiteFilled() 

## Terminal Application Screenshots with trmnl_colors:
### Create Terminal programs such as the below examples. Only your imagination and python skills are a limit!

![Screenshots](https://github.com/Idrisvohra9/trmnl-colors/blob/main/static/Screenshot%202023-08-24%20171908.png?raw=true)
![Screenshots](https://github.com/Idrisvohra9/trmnl-colors/blob/main/static/Screenshot%202023-08-24%20172610.png?raw=true)
> Explore & stay Creative

>## by: [Idris Vohra](https://github.com/Idrisvohra9)