semvec/pypi-packages huggingface dataset:
filenumutils 0.1.2
Python tools to find last file/folder number in a int indexed file/folder with specified extension, prefix and/or suffix. Also allows to create next folder, e.g if dir contains train_00 and train_01, it creates train_02
License: MIT

# filenumutils

![Pypi version](https://img.shields.io/pypi/v/filenumutils)
![Wheel Status](https://img.shields.io/pypi/wheel/filenumutils)
![Pypi Licence](https://img.shields.io/pypi/l/filenumutils)

Python tools to find last file/folder number in a int indexed file/folder with specified extension, prefix and/or suffix. Also allows to get/create next folder, e.g if dir contains `train_00` and `train_01`, it creates `train_02`.

## Installation

Simply install using `pip`

```sh
pip install filenumutils
```

## Usage

Assuming the current working directory has the following structure

current_dir
├─ train_00
├─ train_01
├─ train_03
├─ train_04
├─ model_00.py
├─ model_01.py
└─ model_02.py

### Get Last Folder / File Number

```python
from filenumutils import get_last_folder_number, get_last_file_number
get_last_folder_number(prefix="model_")       # Output: 4
get_last_file_number(prefix="train_")         # Output: 2
```

If no such file/folder with given prefix exists, it outputs -1

### Get Next Folder / File Name

```python
from filenumutils import get_next_file, get_next_folder
get_next_file(prefix="model_")                      # Output: model_03.py
get_next_folder(prefix="test_")                     # Output: test_00
get_next_folder(prefix="train_", create=True)       # Output: train_05 (Folder is created)
```

If no such folder with given prefix exists, it outputs `prefix_00`. 

Also, it will automatically stick to the existing numbering pattern. 
For eg, if the folders were [`train_0000`, `train_0001`], 
```python
get_next_folder(prefix="train_", create=True)       # Output: train_0000 (Folder is created)
``` 

### More Options

| Attribute | Default | Description |
| --- | --- | --- |
| `path` | Current Directory | Do operations in the given directory |
| `prefix` | "" | Match only files with given prefix |
| `suffix` | "" | Match only files with given extension/suffix |
| `default_number_width` | 2 | When no numbering pattern is found, output number will be `default_number_width` digits |
| `full_path` | True | By default, returns `new_folder_name`. If True, returns `path/new_folder_name`.  |

## Contributing

Pull requests are very welcome.

1. Fork the repo
1. Create new branch with feature name as branch name
1. Check if things work with a jupyter notebook
1. Raise a pull request

## Licence

Please see attached [Licence](LICENCE)
yxytmtoolP 0.0.4
tmtool
License: MIT
Requires Python: >=3.8.5

# yxy-tm-pip-tools
工具集合

### 安装(Python 版本>=3.8.0)
```
pip install --upgrade yxytmtoolP
```

### 使用

#### 发送邮件
```
from tmtool.tools import Tool
tool = Tool()

tool.mail_from_user_host = '发件地址host'
tool.mail_from_user = '发件人邮箱号'
tool.mail_from_user_pwd = '发件人密码'

tool.send_mail_msg(to_user='收件人邮箱地址（这里是列表，可填写多个）', title='邮件标题', content='邮件内容')
```
msaris 0.1.9
Python package to identify isotope patterns and their formulas
License: MIT
Requires Python: >3.7
Keywords: mass spectrometry,mass spec,isotopic,linear programming,isotope pattern,clusterization

# msaris
 Mass Spectrometry Automatic Recognition Integrated Service

Package of classes, methods and function to
perform search of isotope patterns, their identification and
identifying their formulas

## Installation

To install last version from pypi following command can be used

> pip install msaris==0.1.8b2

It is also possible to install from cloned repository via sdist installation

> python3 setup.py sdist bdist_wheel

It is recommended to run package and associated script in isolated python virtual environment
For creating environment `venv` or `virtualenv` can be used

## Usage

Example of running isotope pattern recognition presented in example workflow.\
Code in `jupyter notebook` can be adjusted to own .mzML files.\
Plotting and report creation in notebook presented as example can be used
in code. \
To see examples proceed to `example` folder

It shall be pointed that current version adjusted for one PdCl<sub>2</sub> and CuCl solutions
in acetonitrile. Future versions would expand applications for other systems.
eodhistoricaldata 0.9.0
EOD Historical Data Python Library (Unofficial)
License: MIT

# EOD Historical Data Python Library (Unofficial)
https://eodhistoricaldata.com

## Installation

    python3 -m pip install eodhistoricaldata

## Note

Demo API key below is provided by EOD Historial Data for testing purposes
<https://eodhistoricaldata.com/financial-apis/new-real-time-data-api-websockets>

## Sample code and examples

* example_api.py
* example_scanner.py
* example_websockets.py