semvec/pypi-packages huggingface dataset:
fdir 1.0
Module For Iterating through OS Directories
License: MIT
Keywords: Files,Directories,OS

> # **Module Setup** <br>
----
 ``git clone https://github.com/m-zayan/fdir.git``<br>
  Unzip file then open it<br>
  Open terminal (**Linux**) or cmd (**Windows command prompt**)<br>
Type ``python setup.py build && python setup.py install`` <br>
> # **Modes**
-------
 1 - ``./`` Dirctories (Folders) <br>
 2 - ``.``  Files <br>
 3 - ``.*`` Files with specific extension (eg : ``.csv`` or ``.pdf``)<br>
 4 - ``//`` Files and Directories <br>
> # **Module Functions**<br>
----
## **``listdir(str path,str mode)``**<br>
The Function takes two arguments ``path`` and ``mode (1 , 2 , 3 or 4)`` <br>
return List of pathes from given ``path``<br>
> **Ex**
------
```python
import fdir
pathes_list = fdir.listdir(path,'./') # return path of all folders at the current directory as same as (os.listdir)

```

## **``itrAll(list paths,str mode)``**<br>
The Function takes two arguments list of ``paths`` and ``mode (1 , 2 , 3 or 4)`` <br>
return dictionary ``(str key,list paths)``<br>
> **Ex** 
------
```python
import fdir
sub_files = fdir.itrAll(pathes_list,'./') # return paths of all folders for each path at list

```

## **``itrDict(dict paths,str mode)``**<br>
The Function takes two arguments dictionary of ``paths`` and ``mode (1 , 2 , 3 or 4)`` <br>
return dictionary ``(str key,dict paths)``<br>
> **Ex** 
------
```python
import fdir
dict_sub_files = fdir.itrAll(sub_files,'.pdf') # return paths of all pdf files for each list of paths at dictionary

```
## **``walk(str paths,str mode)``**<br>
The Function takes two arguments dictionary of ``paths`` and ``mode (1 , 2 , 3 or 4)`` <br>
Recursively iterating through all files from initial path , Return List of all files which match ``mode`` <br>
> **Ex** 
------
```python
import fdir
pdf_files = fdir.walk(path,'.pdf') # return paths of all pdf files.
```
aiogram-cli 0.0.1a3
aiogram CLI
License: MIT
Requires Python: >=3.8,<4.0
Keywords: aiogram,cli

# aiogram-cli

Command line interface for developers

Works only with [aiogram](https://github.com/aiogram/aiogram) 3.0+ (Is under development)

Here is only bootstrap for CLI interface with extensions based on [pkg_resources](https://setuptools.readthedocs.io/en/latest/pkg_resources.html)

## Installation

### From PyPi
`pip install --extra-index-url https://dev-docs.aiogram.dev/simple --pre aiogram-cli`

### Poetry

Add this block to `pyproject.toml` file:
```toml
[[tool.poetry.source]]
name = "aiogram-dev"
url = "https://dev-docs.aiogram.dev/simple"
secondary = true
```

And then run: `poetry add -D aiogram-cli`

## Extensions

- `aiogram_cli_generator` (WIP) - Project files generator based on pre-defined cookiecutter templates
- `aiogram_cli_executor` (WIP) - Executor for bots
- ...

## Usage

Just run in terminal `aiogram-cli` (Or alias - `aiogram`) and see what you can do with it.

## Example

![main interface](assets/cli.png)

![commands](assets/commands.png)


## Writing extensions

Any **aiogram-cli** extension package should provide an entry point like this:
```
[aiogram_cli.plugins]
my_extension = my_package.module:MyCommand
```

Or with poetry like this:
```toml
[tool.poetry.plugins."aiogram_cli.plugins"]
"builtin-about" = "aiogram_cli.commands.about:AboutCommand"
"builtin-plugins" = "aiogram_cli.commands.plugins:PluginsListCommand"
```

This application is based on [cleo](https://cleo.readthedocs.io/en/latest/) framework and that mean all plugins should be one of:
1. subclass of `cleo.Command`
1. instance of `cleo.Command`
1. sequence of subclasses or instances of `cleo.Command`
1. callable which accepts `app: cleo.Application` and returns any of 1-3 formats

Examples:
[aiogram_cli.commands.about](aiogram_cli/commands/about.py)
[aiogram_cli.commands.plugins](aiogram_cli/commands/plugins.py)