semvec/pypi-packages huggingface dataset:
easyadobeanalytics 1.0.3
This is an attempt at a usable python library to query report data from Adobe Analytics 1.4 API.
Requires Python: >=3.10

# easyAdobeAnalytics

This is an attempt at a usable python library to query report data from Adobe Analytics 1.4 API.

## Installation
Install the package using:
```
pip install easyAdobeAnalytics
```
You can also find the package on [PyPI](https://pypi.org/project/easyAdobeAnalytics/).

## How it works
* For authentication, you need to retrieve an access token from Adobe using client id and client secret.
* First step is generating a json structure required by Adobe for querying data.
* Depending upon if you need segments to be queried individually or not, generate the required number of report descriptions.
* Next, we submit these reports to Adobe Analytics to ready the reports for us.
* Once the report is queried, Adobe returns us a `report_id` which we can use to track it's status.
* If report is not ready yet, we keep checking until it's ready and data is available to be consumed.
* Once the report is ready (depending upon the size of data), we get the actual report data using the `report_id`.
* Finally we concatenate all the report data returned to create a single dataframe.

## How to use

All the functionality is behind the `query_and_retrieve` function in the package. Define all the variables required and pass it on. Leave the variable as empty list for `elements,metrics,segments` in case you don't wish to provide one for a report.

Example:
```
from easyAdobeAnalytics import query_and_retrieve

def easy_example():
    client_id = '<your-client-id>'
    client_secret = '<your-client-secret'
    company_id = 'company_id'
    rsid = "report_suite_id"
    elements = ['element_id_1','element_id_2']
    
    metrics = ['metric_id_1','metric_id_2']
    
    segments = ['segment_id_1','segment_id_2']
    query_segments_individually = False # True in case you want each segment to be queried individually.
    date_from = '2024-12-3'
    date_to = '2024-12-17'
    date_granularity = "Day" # Month, Year
    report_data = query_and_retrieve(client_id,
                                     client_secret,
                                     elements,
                                     metrics,segments,
                                     rsid,date_from,
                                     date_to,
                                     date_granularity,
                                     company_id,
                                     query_segments_individually)
    print(report_data.head())

if __name__ == '__main__':
    easy_example()
```
FlowInput 1.0.24
This is the simplest module for improved work with input.
Requires Python: >=3.11
Keywords: input flowinput

# **Flow Input Library (FlowInput)**

The library is distributed under the MIT license and can be downloaded and used by anyone.

----------


## How to install
To install, you can download use pip: `pip install FlowInput`

Or download library from the repository from [GitHub](https://github.com/FunsyCode/FlowInput.git)

----------

## Using

----------

### Input
The arguments of main functions are:

#### input():
>prompt: str, default: str, color: Color or BgColor

- **prompt:**     `A String, representing a default message before the input.`
- **default:**    `A String, representing a default message in the input`
- **color:**      `A Color or BgColor Varible, representing Red, Green and Blue colors in the input`

----------
### Colors

The main classes are:

#### Color
**Color:**       `A Class width many Str Variables,  width ANSI codes of colors`

#### BgColor
**BgColor:**     `A Class width many Str Variables, width ANSI codes of background colors`

----------

The arguments of main function are:

#### coloring():
>key: dict, string: str

- **key:**      `A Dict Variable, in which the key is the word that needs to be colored, and the value is the color. Key of dict, have built-in words like this: __start__, __end__, __mid__, __all__. You can see their in examples`
- **string**    `A Str Variable, which is the text to be colored`

----------

## Some examples

**Input**
    
    import FlowInput

    FlowInput.input('What's your name? ', 'My name is Funsy!')

----------
    
**Color**
  
    from FlowInput import colors
    
    print(colors.coloring({'from': colors.Color.BLUE}, 'Hello from FlowInput!'))
    
    print(colors.coloring({'__start__': colors.BgColor.RED}, 'Hello from FlowInput!'))


----------

**Input & Color**
     
    import FlowInput
    
    FlowInput.input('What’s your name? ', 'Funsy', FlowInput.colors.Color.BLUE)