semvec/pypi-packages huggingface dataset:
font-rename 0.2.0
Renames fonts to their internal name and unpacks .ttc/.otc files.
License: MIT
Requires Python: >=3.7,<4.0

# font-rename

Renames fonts to their internal name and unpacks .ttc/.otc files.

```bash
pip install font-rename
font-rename insert/directory/file/path/here
```

## Changelog

### v0.2.0

- Add the option to remove unparsable fonts [#11](https://github.com/whtsky/font-rename/pull/11)
- Add `.otc` support [#9](https://github.com/whtsky/font-rename/pull/9)
- Fix invalid .ttc handling [#9](https://github.com/whtsky/font-rename/pull/9)

### v0.1.0

- Initial Release
whendo-gpio 0.0.1a6
gpio actions for whendo
License: MIT
Keywords: gpio,scheduling,api

# whendo_gpio

whendo_gpio adds Raspberry Pi GPIO Actions to a whendo installation. See whendo_gpio/action.py for GPIO Actions.

If running on a Raspberry Pi, be sure to install RPi.GPIO. Also install psutil if you want additional system information to be available through
the SysInfo Action.

The Mock.GPIO library is useful for running Jupyter notebooks and other runtimes (on non-Raspberry Pi computers) that create and manage Actions, Schedulers, and Programs destined for Raspberry Pi deployments.

## Dependencies

- install_requires =
    whendo >= 0.0.2a27
    Mock.GPIO >= 0.1.8

## Computers tested (so far):

- 32-bit Raspberry Pi OS [pi 3B+, pi 4B]
- 64-bit Intel MacOS
timelimit 0.1.0
Sets the time limit for slow-running functions.
License: MIT
Keywords: timeout,time,out,function,thread,process,threading,multiprocessing

# [timelimit](https://github.com/rtmigo/timelimit_py#readme)

Sets the time limit for slow-running functions. Runs functions in parallel
threads or processes.

Tested with Python 3.6-3.9 on macOS, Ubuntu and Windows.

# Install

``` bash
pip3 install timelimit
```

# Use

``` python3
from timelimit import limit_thread, limit_process, TimeLimitExceeded

def sluggish(a, b):
  ...
  return a + b

# will run sluggish(1, 2) in parallel thread no more than 5 seconds
a_plus_b = limit_thread(sluggish, (1, 2), timeout=5)

# will run sluggish(1, 2) in parallel process no more than 5 seconds
a_plus_b = limit_process(sluggish, (1, 2), timeout=5)
```

## If the time is up

If the function did not complete its work within the specified time, a
`TimeLimitExceeded` exception is thrown.

``` python3
try:
    limit_thread(sluggish, (1, 2), timeout=5)
    
except TimeLimitExceeded:
    print("Oops!")  
```

If you set the `default` argument (at least to `None`), the default value is
returned instead of an exception.

``` python3
result = limit_thread(sluggish, (1, 2), timeout=5, default=-1)

if result == -1:
    print("Oops!")
```

## If time doesn't matter

If you do not specify the `timeout` parameter it will default to `float('inf')`.
The `sluggish` function will run in a parallel thread or process, but without
time constraints.

``` python3
# both call run the function in parallel thread without time limits
limit_thread(sluggish, (1, 2))  
limit_thread(sluggish, (1, 2), timeout=float('inf')) 
```

If you specify the value `timeout = None`, then the `sluggish` will be
executed like a regular function, without starting processes or threads.

``` python3
# the following calls are equivalent
sluggish(1, 2)
limit_thread(sluggish, (1, 2), timeout=None)
```

Thus, the limitation can be made optional and resource-saving.

``` python3
limit_thread(sluggish, (1, 2), 
             timeout = 5 if in_hurry else None)
```
gt-webcore 0.2.9
A Web Service Framework Base On Flask And Sqlalchemy
License: MIT
Keywords: flask,sqlalchemy,restful

gt-webcore
=================

Features
-------

- 自动序列化接口返回值为JSON结构；
- 集成了SQLAlchemy、MongoEngine对象映射框架；
- 统一的接口返回值结构；
- 提供简单完善可扩展的接口参数验证机制；
- 完善的异常处理机制；
- 模块化方式加载应用模块，每个应用独立一个蓝图配置；

Install
-------

With pip:

:: pip install gt-webcore

Configration
-------

1. MODULES - 加载模块列表

   ```python
   { 'name': 'app.resource', 'package': 'resource' }
   ```

2. LOGGER_CONFIG - 日志配置字典  
日志配置可以参考 python logging 的配置说明；

3. SQLAlchemy 配置  
具体可以参考 [Flask-SQLAlchemy](https://flask-sqlalchemy.palletsprojects.com/en/2.x/quickstart/) 的配置说明，示例如下：  

   ``` python
     SQLALCHEMY_ENGINE_OPTIONS = {  
       'pool_recycle': 3600,  
       'pool_timeout': 15,  
       'pool_pre_ping': True,  
       'pool_size': 5  
     }  
     
     SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://root:pwd@host:port/database?charset=utf8'
   ```

4. MongoEngine 配置
配置项参考 [Flask-MongoEngine](http://docs.mongoengine.org/projects/flask-mongoengine/en/latest/) 的配置说明，示例如下：

   ``` python
     MONGODB_SETTINGS = {
         'host': 'localhost',
         'port': 27017,
         'db': 'demo'
     }
   ```

5. Celery 配置  
配置项参考 Celery 配置文档说明，示例如下：  

   ``` python
     CELERY = {
       'celery_broker_url': 'redis://guest@localhost:6379',  
       'result_backend': 'redis://guest@localhost:6379',  
       'task_routes': { 'app.system.controller.*': {'queue': 'test'} }  
     }
   ```

6. Cache 配置
配置项参考 [Flask-Caching](https://flask-caching.readthedocs.io/en/latest) 的配置说明，示例如下：

   ``` python
     CACHE_TYPE = 'RedisCache'
     CACHE_DEFAULT_TIMEOUT = 300
     CACHE_REDIS_URL = 'redis://localhost:6379/2'
   ```

Run
--------

``` python
from webcore import create_app, release_app

def debug_instance():
    from config.develop import DevelopConfig
    return create_app(DevelopConfig())

def production_instance():
    from config.production import ProductionConfig
    return create_app(ProductionConfig())

if __name__ == '__main__':
    app = debug_instance()
    app.run(host='0.0.0.0', port=5002, debug=True)
    release_app()
```