semvec/pypi-packages huggingface dataset:
EcoMod 0.1.6
A simple species distribution modelling package. Functionality is currently limited to BIOCLIM.
Requires Python: >=3.11
Keywords: species distribution,ecological niche,habitat suitability

# EcoMod
Greetings, fellow ecologists. This is a simple species distribution modelling package, with currently only having the BIOCLIM function.

## installation
Use the package manager pip to install the module.
Due to the issue of osgeo package, I've included the whl of GDAL for Win py3.11 in this package.
You might need to look for other relevant source if you're running on a different system, such as Mac.
```bash
pip install YOUR_PYTHON_FOLDER/GDAL-3.4.3-cp311-cp311-win_amd64.whl
pip install EcoMod
```

## Usage
```python
import EcoMod

# get occurrences data & WorldClim GeoTiff
bioclims = [1, 12]
# # |: repeat for testing set
coordinates = EcoMod.get_coord("sp. name")
latitudes = [i[0] for i in coordinates]
longitudes = [i[1] for i in coordinates]
EcoMod.bioclimap(coordinates, bioclims, reso=10)
# # # [1] call to get the optimum from the training set.
EcoMod.get_norm_const(coordinates)
# # :| [2] normalise the prediction (i.e., testing, present) map
clusters = EcoMod.radius_cluster(coordinates, 2) # optional
normed_array = EcoMod.normalise()

# view the prediction map using matplotlib
# # assign 'extent_84320700' (variable) to the 'extent' param
# # to crop out the Region of Focus
...
plt.imshow(normed_array, extent=extent_84320700)
plt.show()
```

## Roadmap
I'll next be working on a more advance and statistically comprehensive feature like MaxEnt and its related target group background.
The aesthetic part of the map (i.e, visualisation) is also part of the roadmap.
This project is also following the guidelines and suggestions in Soley-Guardia et al.'s (2024) publication on the top ten hazards that were seen when modelling species distribution.

## Contributing
Contributions are welcome. Feel free to open an issue for any suggestion or submit a pull request.

## License
This project is licensed under the conventional MIT License - see the LICENSE file for details.

## Acknowledgement
This eco-modelling package was inspired by Timothée Poisot's "BioClim from scratch" tutorial. Special thanks to Professor Poisot (@tpoisot) for creating such an informative guide on modelling the bioclimatic distribution of species.

## References
1. Mateo, R.G., Croat, T.B., Felicísimo, A.M. & Muñoz, J. (2010) Profile or group discriminative techniques? Generating reliable species distribution models using pseudo-absences and target-group absences from natural history collections._Diversity and Distribution_, 16(1), 84-94. https://doi.org/10.1111/j.1472-4642.2009.00617.x
2. Poisot, T. (2021) Building the BioClim model from scratch_.[\[video\]]YouTube.(https://www.youtube.com/watch?v=81MblyNWz3Q)
3. Soley-Guardia, M., Alvarado-Serrano, D.F. & Anderson, R.P. (2024) _Top ten hazards to avoid when modeling species distributions: a didactic guide of assumptions, problems, and recommendations._Ecography_, e06852. https://doi.org/10.1111/ecog.06852
hlogger 1.3.1
A logger utility for python application
Requires Python: >=3.7
Keywords: logging,logger

# HLogger

![PyPI - Version](https://img.shields.io/pypi/v/hlogger)
![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/sChameleoNz/hlogger/test.yml)
![Codecov](https://img.shields.io/codecov/c/github/sChameleoNz/hlogger)

HLogger is a utility module that provides a flexible logging solution for Python applications.
It allows you to easily create and manage loggers with both file and stream handlers.

## Installation

You can install HLogger using pip:

> $ pip install hlogger

## Usage

### Create Logger

```python
from hlogger import create_logger

# Create a logger
logger = create_logger("app_logger", "app_log.log")

# Log messages
logger.info("Application started")
```

### Create Logger with Specified Level

```python
import logging
from hlogger import create_logger

# Create a logger
logger = create_logger("app_logger", "app_log.log", level=logging.WARNING)

# Log messages
logger.warning("WARNING: No module named 'missing_module'")
```

### Get Logger

```python
from hlogger import create_logger, get_logger

# Create a logger
logger = create_logger("app_logger", "app_log.log")

# Create another logger
logger = create_logger("app_logger2", "app_log2.log")

# Set logger to the previous one and log messages to it
logger = get_logger("app_logger")
logger.error("Application error")
```

### Change Log File

```python
from hlogger import create_logger

# Create a logger
logger = create_logger("app_logger", "app_log.log")

# Log messages
logger.info("Application started")

# Change the log file dynamically
logger = create_logger("app_logger", "new_app_log.log")

# Log messages to the new log file
logger.warning("Application warning")
```

### Change Formatter

```python
import logging
from hlogger import create_logger, set_formatter

# Create a logger
logger = create_logger("app_logger", "app_log.log")

# Change formatter
set_formatter("app_logger", logging.Formatter("%(message)s"))

# Log messages
logger.info("Application started")
```
chinacapi 0.1.3
A chinac api operator
Requires Python: >=3.7

# ChinacApi 星界链API

[![pypi](https://img.shields.io/pypi/v/chinacapi.svg)](https://pypi.org/project/chinacapi/)
![support-version](https://img.shields.io/pypi/pyversions/chinacapi) 
[![license](https://img.shields.io/github/license/AkagiYui/ChinacApi)](https://github.com/AkagiYui/ChinacApi/blob/master/LICENSE)  
[![commit](https://img.shields.io/github/last-commit/AkagiYui/ChinacApi)](https://github.com/AkagiYui/ChinacApi/commits/master)

[星界链OpenApi](https://docs-api.chinac.com/) Python SDK

支持

- [x] 获取云手机列表
- [ ] 获取云手机详情
- [x] 重启云手机
- [x] 开启/关闭云手机
- [x] 获取云手机ADB白名单IP列表
- [x] 设置云手机ADB白名单IP
- [x] 获取本机在星界链的公网IP

## 安装

```shell
pip install chinacapi -i https://pypi.tuna.tsinghua.edu.cn/simple
```

## 使用

你需要先在[星界链控制台](https://console.chinac.com/iam)申请访问密钥。

```python
from chinacapi.cloud_phone_region import CloudPhoneRegion
from chinacapi.entity.cloud_phone import CloudPhone
from chinacapi.chinac_api import ChinacApi


# 创建 ChinacApi 实例
ca = ChinacApi('your_access_key', 'your_access_secret')
cpa = ca.cloud_phone_api  # 云手机API

# 列出所有云手机
cpl = cpa.list_cloud_phone()
for cp in cpl:
    print(cp)

# 通过ID构造云手机对象
cp = CloudPhone({
    'id': 'cp-xxxxxxxxxxxxxx',
    'region': CloudPhoneRegion.SZ,
})

# 获取云手机详情
print(cpa.describe_cloud_phone(cp.region, cp.id))

# 列出云手机ADB白名单
ips = cpa.list_cloud_phone_adb_white_ip(CloudPhoneRegion.SZ)
print(ips)

# 获取本机在星界链的公网IP
my_ip = ChinacApi.get_request_ip()
print(my_ip)

# 设置云手机ADB白名单
print(cpa.set_cloud_phone_adb_white_ip(CloudPhoneRegion.SZ, list(set(ips + my_ip))))
ips = cpa.list_cloud_phone_adb_white_ip(CloudPhoneRegion.SZ)
print(ips)


print(cpa.reboot_cloud_phone(cp))  # 重启云手机
print(cpa.start_cloud_phone(cp))  # 开启云手机
print(cpa.stop_cloud_phone(cp))  # 关闭云手机
```

---

[更新日志](https://github.com/AkagiYui/ChinacApi/blob/master/Changelog.md)
FruceAPI 1.2.3
FruceAPI is a easy tool for working with FruitSpace hosting
Requires Python: >=3.6

# FruceAPI
FruceAPI - это удобный инструмент для работы с хостингом FruitSpace  
Данная библиотека *не является официальной* и не создана разработчиками FruitSpace

# С чего начать
Сначала нужно установиьт FruceAPI на ваш компьютер. Для этого пропишите в консоли эту команду
```py
pip install FruceAPI
```
#### Теперь мы можем написать первую программу на FruceAPI!
```py
import FruceAPI as FRAPI # импортируем FruceAPI
from asyncio import run # импортируем библиотеку для запуска асинхронной функции

client = FRAPI.Client("token") # класс клиента для работы с FruitSpace
# token - это ваш токен на FruitSpace
# НИКОМУ НЕ ДАВАЙТЕ ЭТОТ ТОКЕН (ДАЖЕ КОТУ)!!!
async def about_user(): 
    user = await client.get_user_info() # получаем информацию о пользователе
    print(f"Ваш никнейм: {user['uname']}") # выводим имя пользователя

run(about_user()) # запускаем асинхронную функцию
```
Обратите внимание что `get_user_info()`, как и все остальные функции в FruceAPI, это `corotuine` функция  
Если вы всё сделали правильно, то в консоли вы увидите имя вашего аккаунта на FruitSpace
```
>>> console output
Ваш никнейм: Nickname
```
Подзравляем! Теперь вы готовы к полноценному использованию FruceAPI!  
Документация: https://miwco.gitbook.io/fruceapi/
py-ffmpeg-splitter 0.0.3
A simple python library used to split media files.
Requires Python: >=3.6

# A simple python library used to split media files.


## Examples

*From the command line*
``` bash
python ffmpeg_splitter --help
python ffmpeg_splitter.py source.mp4 1000000000 -t "out.mp4" # Will split `source.mp4` into files of 1GiB size (named out-x.mp4).
```

*From Python*
``` python
from ffmpeg_splitter import split_by_size

if __name__ == "__main__":
    split_by_size("my_file.mp4", 1000000000, print_function=print) # Will also print output and useful information
```