semvec/pypi-packages huggingface dataset:
fossl 0.12.0
Access Free Open Source License information on the command line
Requires Python: >=3.9,<4
Keywords: cli,console,licensing

# fossl

[![Python versions](https://img.shields.io/pypi/pyversions/fossl.svg)](https://pypi.org/project/fossl/)
[![PyPI version](https://img.shields.io/pypi/v/fossl.svg)](https://pypi.org/project/fossl/)
[![License](https://img.shields.io/pypi/l/fossl.svg)](https://pypi.org/project/fossl/)

fossl provides descriptions of the most common free open source (FOSS) licenses. Instructions on how to apply a license to the source code are included. The information is obtained from GitHub i.e. is always up-to-date. The license texts for "LICENSE" files can also be downloaded.

```sh
% fossl list
AGPL-3.0     - GNU Affero General Public License v3.0
Apache-2.0   - Apache License 2.0
BSD-2-Clause - BSD 2-Clause "Simplified" License
BSD-3-Clause - BSD 3-Clause "New" or "Revised" License
CC0-1.0      - Creative Commons Zero v1.0 Universal
EPL-2.0      - Eclipse Public License 2.0
GPL-2.0      - GNU General Public License v2.0
GPL-3.0      - GNU General Public License v3.0
LGPL-2.1     - GNU Lesser General Public License v2.1
LGPL-3.0     - GNU Lesser General Public License v3.0
MIT          - MIT License
MPL-2.0      - Mozilla Public License 2.0
Unlicense    - The Unlicense
```

```sh
% fossl show Apache-2.0
SPDX ID:            │ Apache-2.0
Name:               │ Apache License 2.0
Description:        │ A permissive license whose main conditions require
                    │ preservation of copyright and license notices.
                    │ Contributors provide an express grant of patent rights.
                    │ Licensed works, modifications, and larger works may be
                    │ distributed under different terms and without source
                    │ code.
Implementation:     │ Create a text file (typically named LICENSE or
                    │ LICENSE.txt) in the root of your source code and copy
                    │ the text of the license into the file.
Permissions:        │ commercial-use, modifications, distribution, patent-use,
                    │ private-use
Conditions          │ include-copyright, document-changes
Limitations:        │ trademark-use, liability, warranty
HTML URL:           │ http://choosealicense.com/licenses/apache-2.0/
GitHub API URL:     │ https://api.github.com/licenses/apache-2.0
Featured on GitHub: │ Yes
```

Finally,

```sh
% fossl show MIT -text > LICENSE
```

creates a LICENSE file for a new project.

`fossl` can also be used as a Python package, allowing Python code to access license information.

## Limitations

GitHub limits the number of queries a user may make per hour. For unauthenticated users like `fossl`, that [rate limit](https://docs.github.com/en/rest/overview/resources-in-the-rest-api?apiVersion=2022-11-28#rate-limiting) is 60 / hour. `fossl` caches license information locally (`~/.config/fossl.toml`) to work around the rate limit. The license cache is updated every 90 days or if the cache file is deleted.
PBI-SELENIUM 1.0
package for routine operations in power bi
Keywords: Selenium,PowerBi,Automatization,automation

# Selenium Automation Script

This Python script utilizes Selenium for web automation to perform tasks related to logging in, updating workspace reports, and downloading reports..

## Prerequisites

- Python installed (version 3.x recommended)
- Powerbi Account


# Features

## UpdateWorkspace
Updates the specified workspace.  
```python
    from PBI-SELENIUM import Routine 
     
    Login = 'exemple@gmail.com'
    Password =  'exemple123'
    Workspace = 'https://app.powerbi.com/groups/me/list?experience=power-bi'
    
    Routine.UpdateWorkspace(Login,Password,Workspace)
```



## DownloadReport
Downloads reports from specified links.  
```python
    from PBI-SELENIUM import Routine 
     
    Login = 'exemple@gmail.com'
    Password =  'exemple123'
    Workspace = 'https://app.powerbi.com/groups/me/list?experience=power-bi'
    links = ['Yourdashboardlink','https://app.powerbi.com/groups/me/reports//ReportSection?experience=power-bi']
    
    Routine.DownloadReport(Login,Password,Workspace,links)
```
## ViewReports
Views reports at regular intervals.
```python
    from PBI-SELENIUM import Routine 
     
    Login = 'exemple@gmail.com'
    Password =  'exemple123'
    Workspace = 'https://app.powerbi.com/groups/me/list?experience=power-bi'
    interval = 10 # interval time between reports
    links = ['https://app.powerbi.com/groups/me/reports//ReportSection?experience=power-bi']
    
    
    Routine.ViewReports(Login,Password,Workspace,interval,links)
```
cozyconsole 0.4.1
Making development of console-based apps a little more convenient
Requires Python: >=3.8,<4
Keywords: cli,console,rich

# cozyconsole

## Caveat

This package exists to support my other projects. Those may require breaking changes in here. Consequently, cozyconsole may never become "stable", never reach v1.0.0. Considering how little is in here at the moment, it is probably not worth your time.

## If you are still reading

cozyconsole currently contains:

`cozyconsole.consolex.ConsoleX` is a trivial wrapper around  `rich.console.Console`. It exists to avoid code duplication anti-patterns in my other projects.

`cozyconsole.activity.Activity` is a context manager for operations that run for a few seconds each. It displays a message while a piece of code is executing. When the execution is complete, its status is shown.

```python
from time import sleep
from cozyconsole.activity import Activity
with Activity("Updating dependencies") as act:
   sleep(3)   # simulating the actual code
   act.success = True
```

This displays

```sh
Collecting dependencies...
```

until the code finishes (here: 3 seconds), then updates that to show

```sh
Collecting dependencies - done
```

Activity can handle warnings, errors, and expections in various ways. Run

```bash
% python3 -m cozyconsole.demo
```

to see more.

## Ideas for v0.5.0 and beyond

- Evaluate if Activity should use `rich.status`.
- Activity and ConsoleX error and warning colors should be configurable via a TOML config file.
- A Rich-based horizontal barchart "widget".

## Credits

[Rich](https://pypi.org/project/rich/)