semvec/pypi-packages huggingface dataset:
cudos-cmd 0.0.10
Read the latest CUDOS Python tutorials
License: MIT
Keywords: aws,cudos,cmd,cli,cost intelligence dashboards

# Cloud Intelligence Dashboards (CUDOS Framework)

[![PyPI version](https://badge.fury.io/py/cudos-cmd.svg)](https://badge.fury.io/py/cudos-cmd)

## Welcome to customer automation for Cloud Intelligence Dashboards (CUDOS Framework) repository

### The scripts in this repo have been succesfully tested in [AWS CloudShell](https://console.aws.amazon.com/cloudshell/home)

## Supported dashboards
- [CUDOS](https://d1s0yx3p3y3rah.cloudfront.net/anonymous-embed?dashboard=cudos)
- [Cost Intelligence Dashboard](https://d1s0yx3p3y3rah.cloudfront.net/anonymous-embed?dashboard=cost_intelligence_dashboard)
- [Trusted Advisor Organisation view dashboard](https://d1s0yx3p3y3rah.cloudfront.net/anonymous-embed?dashboard=e1799d0d-166c-4e61-8fa6-5c927f70c799)
- [Trends](https://d1s0yx3p3y3rah.cloudfront.net/anonymous-embed?dashboard=tao-dashboard?dashboard=trends-dashboard)

:white_check_mark: *Is* compatible with [Cloudformation deployment](https://wellarchitectedlabs.com/cost/200_labs/200_cloud_intelligence/cost-usage-report-dashboards/dashboards/2b_cudos_dashboard/#option-3-cloudformation-deployment)

:heavy_exclamation_mark: :x: *Is not* compatible with [legacy automation](./legacy)

## Before you start
1. :heavy_exclamation_mark: Complete the [Prerequisites](https://cudos.workshop.aws/prerequisites.html)
2. :heavy_exclamation_mark: [Specifying a Query Result Location Using a Workgroup](https://docs.aws.amazon.com/athena/latest/ug/querying.html#query-results-specify-location-workgroup)

## How to use

1. Launch [AWS CloudShell](https://console.aws.amazon.com/cloudshell/home) or your local shell

    Automation requires Python 3

2. Make sure you have latest pip package installed
    ```bash
    python3 -m ensurepip --upgrade
    ```

4. Install CUDOS Python automation PyPI package
    ```bash
    pip3 install --upgrade cudos-cmd
    ```

5. List of supported commands  
    ```bash
    cudos_cmd --help
    ```

### Example output

<pre>CLOUD INTELLIGENCE DASHBOARDS (CID) aka CUDOS CLI 1.0 Beta

Loading plugins...
  Core loaded
done

Usage: cudos_cmd [OPTIONS] COMMAND [ARGS]...

Options:
  --profile_name TEXT           AWS Profile name to use
  --region_name TEXT            AWS Region (default:'us-east-1')
  --aws_access_key_id TEXT
  --aws_secret_access_key TEXT
  --aws_session_token TEXT
  -v, --verbose
  --help                        Show this message and exit.

Commands:
  delete  Delete Dashboard
  deploy  Deploy Dashboard
  map     Create account mapping
  open    Open Dashboard in browser
  status  Show Dashboard status
  update  Update Dashboard
</pre>


## Legacy (bash) automation has been moved under [**legacy**](./legacy/) directory
remote-config 0.1.8
Remote config and feature toggle based on Consul.
License: MIT

# Remote Config

Essa biblioteca tem como funcionalidade capturar os mapeamentos de features ativas por clusters e disponibilizar em memória, juntamente com as variáveis de ambientes lá registradas.

## Clusters

O mapeamento dos clusters ficarão listadas dentro da pasta `clusters` que se encontra na pasta `general` na raiz do Key / Value.

Para cada cluster se faz necessário criar uma key com o nome do cluster ex: `cluster-google-merchant`

Contendo a lista de id's das lojas no seguinte formato:

```json
{
  "ids": [123, 456]
}
```

## Feature Toggle

O mapeamento dos clusters ficarão listadas dentro da pasta `feature-toggle` que se encontra na pasta `general` na raiz do Key / Value.

Para cada feature se faz necessário criar uma key com o nome da feature ex: `google-merchant`

O valor dentro desta key deve ser no formato do JSON a baixo:

```json
{
  "enable": true,
  "default": false,
  "clusters": ["general/feature-toggle/cluster-google-merchant"]
}
```

A propriedade `enable` define se a feature está ativada para aplicação como um todo.

A propriedade `cluster` define uma lista dos caminhos dos clusters.

A propriedade `default` define o comportamento padrão caso o `enable` esteja false e a loja não esteja em nenhum cluster.

## Globals

As variaveis que não são atreladas a nenhum cluster específico são denominadas `globals`. Estas se encontram na pasta `globals` (tambem dentro da pasta `general` na raiz do Key / Value).

O valor dentro desta key pode conter qualquer conteúdo que satisfaça um JSON válido.

## Como usar

Inicializando o singleton e já configurando os tempos de atualização de cache

```python
from django.conf import settings
class CoreConfig(AppConfig):
    name = "core"

     def ready(self):
        from remote_config import RemoteConfig
        RemoteConfig(host=URL, port=80, token=TOKEN, feature_minute=5, cluster_minute=5).start()
```

Para fazer uma checagem da feature, basta só iniciar o `RemoteConfig` sem as configurações pois elas já forão inicializadas e chamara a função `get_feature` que retornará um boleano

```python
RemoteConfig().get_feature('google-merchant', 123)
```

Já para para fazer uma checagem da global, basta chamar a função `get_global` que retornará um dicinário com o valor correspondete à chave especificada.

```python
RemoteConfig().get_global('chave-global-qualquer')
```
packelf 0.2.0
Pack ELF files in a given path to make them relocatable
License: MIT
Requires Python: >=3.7,<4.0
Keywords: Linux

# packelf

A _packelf_ packs ELF files by relocating linked shared objects.
It copies linked shared objects into `.lib` directory of the given path and rewrite `rpath` of ELF files by [patchelf][] to make them relocatable.

## Requirements

- [patchelf][]

[patchelf]: https://nixos.org/patchelf.html

## Limitation

- It may break ELF files which already use `rpath` to change reference of shared objects

## See also

- [refreeze-scripts](https://github.com/fixpoint/refreeze-scripts) - Make EXE files in `Scripts` directory relocatable
data-printer 0.0.8
**data_printer** - data printer and dumper
License: MIT
Requires Python: >=3.6

# NAME

**data_printer** - data printer and dumper

# VERSION

0.0.8

# SYNOPSIS

```python
from data_printer import p, np

import sys
from colored import fore, back, style

class A:
    def __init__(self, **kw):
        for k, v in kw.items():
            setattr(self, k, v)

data = A(abc="acc", a=A(x=dict(p=10, r=[20, (2, 0.01)])), s='Строка\n', b=b'binary\n', r=r'\n')

# add ref to themselwes:
data.a.x['r'].append(data)  

# print colored structure to sys.stdout
p(data)

# print colored structure to file stream
p(data, file=sys.stderr)

# print uncolored structure to file stream
p(data, file=sys.stderr, color=False)

# serialize structure to string
s = np(data)

# serialize structure to string without indexes: [6] -> [0] 6
s = np(data, indexes=False)

# serialize structure to colored string (colors as escape sequences)
s = np(data, color=True)

# default color scheme
p(data, color=dict(
    bool = fore.LIGHT_BLUE,
    none = fore.LIGHT_BLUE,
    int = fore.LIGHT_YELLOW,
    float = fore.LIGHT_YELLOW,
    str = fore.LIGHT_GREEN,
    bytes = fore.LIGHT_MAGENTA,
    object = fore.LIGHT_RED,
    any = fore.LIGHT_GRAY,
    key = fore.LIGHT_CYAN,
    ref = fore.RED,
    punct = fore.WHITE,
))

# replace two colors
s = np(data, color=dict(
    bool = fore.LIGHT_RED,
    none = fore.LIGHT_YELLOW,
))

# print in perl-style (python - default) and without "[0] 7" in list "[7]". 
p(data, sep="perl", indexes=False)

# print in node-style
p(data, sep="node")

# self-style
p(data, sep=dict(
    kword=True,
    oword=True,
    kw=" => ",
    kv=" => ",
    object_open="bless {",
    object_close="}, %n",
    dict_open="{",
    dict_close="}",
    list_open="[",
    list_close="]",
    tuple_open="[",
    tuple_close="]",
    str='"%s"',
    bytes='do { use bytes; "%s" }',
    scalar='%n("%s")',      # for datetime.datetime and others
    none="undef",
    true="1",
    false="0"
))

# self-style with two and lambda on bytes
p(data, sep=dict(
    str='"%s"',
    bytes=lambda s: "".join(['Buffer.from(", ', ", ".join(["0x%X" % ch for ch in s]) ,')']),
))

# filters use for specific objects
import datetime
p([datetime.datetime.now()], filters={
    datetime.datetime: lambda obj, ddp: ddp.echo("⎈ ", ddp.color.key).echo(repr(obj), ddp.color.any),
})


# print without newline on the end
p(data, end="")

```

# DESCRIPTION

Data recursive printer. Serialize any python3 data to string or print in console or file.

Is colorised output.

Data printer check many references to one structure.

# INSTALL

```sh
$ pip install data-printer
```

# REQUIREMENTS

* colored

# AUTHOR

Kosmina O. Yaroslav <darviarush@mail.ru>

# LICENSE

MIT License

Copyright (c) 2020 Kosmina O. Yaroslav
pyautoinstall 0.0.1
Magically install modules just by importing them!!
License: MIT
Requires Python: >=3.9,<4.0
Keywords: auto,install,import,pip

<h1 align='center'>PyAutoInstall</h1>
<h3 align='center'>Magically install modules just by importing them!!</h3>
<p align="center">
  <a href="https://pypi.python.org/pypi/pyautoinstall/"><img src='https://img.shields.io/badge/MADE%20WITH-Python-red?style=for-the-badge'/></a>
  <a href="https://pypi.python.org/pypi/pyautoinstall/"><img src='https://img.shields.io/pypi/pyversions/pyautoinstall?style=for-the-badge'/></a>
  <a href="https://pypi.python.org/pypi/pyautoinstall/"><img src='https://img.shields.io/pypi/status/pyautoinstall?style=for-the-badge'/></a>
  <a href="https://pypi.python.org/pypi/pyautoinstall/"><img src='https://img.shields.io/pypi/l/pyautoinstall?style=for-the-badge'/></a>
  <a href="https://pypi.python.org/pypi/pyautoinstall/"><img src='https://img.shields.io/pypi/v/pyautoinstall?style=for-the-badge'/></a>
</p>

## 📝 Description
This is a **Work-In-Progress** Library which will **change**
your way of installing packages **forever**.

### 🤯 Disclaimer
(This project is still in unstable planning stage)

## 🔥 Getting Started
- ### ⬇️ Installation
  While it would be nice to install `pyautoinstall` just by importing it,
  that just isn't the case.

  - Via pip
    ```
    pip install pyautoinstall
    ```
  
- ### ⚡ Usage
  - Without pyautoinstall
    ```python
    >>> import requests
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    ModuleNotFoundError: No module named 'requests'
    ```
  - With it
    ```python
    >>> import pyautoinstall
    >>> import requests
    Should I install requests? (y/n) - y
    Successfully installed requests!!
    >>> requests.get('https://pypi.org/project/pyautoinstall/')
    <Response [200]>
    ```