semvec/pypi-packages huggingface dataset:
tutompy 1.0.0
The hypermodern Python project
License: MIT
Requires Python: >=3.8,<4.0
Keywords: hypermodern

# tutompy
[![Tests](https://github.com/pamlinux/tutompy/workflows/Tests/badge.svg)](https://github.com/pamlinux/tutompy/actions?workflow=Tests)
[![Codecov](https://codecov.io/gh/pamlinux/tutompy/branch/master/graph/badge.svg)](https://codecov.io/gh/pamlinux/tutompy)
[![PyPI](https://img.shields.io/pypi/v/tutompy.svg)](https://pypi.org/project/tutompy/)
My repository for hypermodern-python tutorial by Claudio Jolowicz
confs 1.0.0
CLI tool that lists tools for which the given project has configuration files.
License: MIT
Requires Python: >=3.6
Keywords: cli,tools,configs

# confs

CLI tool that lists tools for which the given project has configuration files.

For example, if the project has `.isort.cfg` file or `[tool.isort]` section in `pyproject.toml`, confs will detect that the project uses [isort](https://pycqa.github.io/isort/). A possible use-case is to implement CI jobs for linters that are run only if the corresponding configuration file is represented in the project.

## Installation

```bash
python3 -m pip install --user confs
```

## CLI usage

+ `confs list` - list tools configured in the current directory.
+ `confs list --path=/path/to/project/` - list tools configured in the specified directory.
+ `confs has flake8` - check if the project has `flake8` configured. The exit code is 1 if the tool is not configured.

## API usage

```python
from pathlib import Path
from confs import get_tools

path = Path('.')
print(get_tools(path))
```
many-pynb 0.1.6
Output various settings of jupyter notebook which kernel is python.
License: MIT
Keywords: jupyter notebook papermill ipynb_path html

# many_pynb
Output various version of python jupyter notebook from one notebook with different settings.

# Installation 
```
pip install many_pynb
```

# Documentation
- https://github.com/toshiakiasakura/many_pynb
- https://akitoshiblogsite.com/many-pynb/ (in Japanese)

# Architecture
Idea of many_pynb is to run a single notebook with different configs. 
output notebook (nb_output.ipynb) can only indicate the same name of a file, 
so that file name and replace it with different configs. 
We can achive various types of jupyter notebook output. 


<img src="pic/many_pynb_doc_01.png" width="600px">

# Usage
Prepare two notebooks. One is for control, the other is for output.

For illustration purpose, nb_controller.ipynb is for a control notebook,   
and nb_output.ipynb is for a output notebook. 


### controller notebook
In nb_controller.ipynb, you should prepare configs that type is json. 
Also specify target file. 

```python
import many_pynb  
setteings = many_pynb.setup(target_file, config_paths)
```
and output becomes. 

```
# many_pynb settings
- target file : nb_output.ipynb
- config files :
    ./configs/config0.json
    ./configs/config1.json
    ./configs/config2.json
    ./configs/config3.json
    ./configs/config4.json
- output files:
    ./many_pynb_output/nb_output_0.html
    ./many_pynb_output/nb_output_1.html
    ./many_pynb_output/nb_output_2.html
    ./many_pynb_output/nb_output_3.html
    ./many_pynb_output/nb_output_4.html
```
If you do not specify output_dir, `manby_pynb_output` directory is created.  
If you do not specify each file name, target_file with numbering is used for each notebook.  

### output notebook
You just read a config by 
```python
import many_pynb
config = many_pynb.read_config()
```

and the config variable contains information as a dictionary type.  
Then, use this information, you can change code results. 

**Note** : first, you should set up configs and run `many_pynb.setup` and `many_pynb.run`,  
and `tmp_many_pynb_config.json` is created. many_pynb use this file for loading each config.  
Then, after creating this file, you can adjust output notebook interactively 
using `many_pynb.read_config`.

# Sample output

Using example code, the following output can be obtained.

***
<img src="pic/setting1.png" width="600px">

*** 
<img src="pic/setting3.png" width="600px">

***

Text as markdown can also be adjusted using `IPython.display.HTML`.  

with `exclude_code_block` option to be True for `many_pynb.run`,  
html output without code block is obtained.

***
<img src="pic/setting1_exclude.png" width="600px">

***
<img src="pic/setting3_exclude.png" width="600px">

***