semvec/pypi-packages huggingface dataset:
jpcovid-v3 0.0.1
A package for calculating time transition policy scores against COVID-19 in Japan
Requires Python: >=3.7

# jpcovid_v3

下記の二つのツールを同時に表示させるようにしました

1, jpcovid(https://github.com/miyagawa-toshiki/jpcovid)

2, jpcovid_v2(https://github.com/miyagawa-toshiki/jpcovid_v2)

# jpcovid_v3のインストール方法
$ pip install jpcovid_v3

# jpcovid_v3の実行方法
$ jpcovid_v3 <都道府県名>

$ jpcovid_v3 Tokyo Osaka

<img src="tokyo_osaka.png" width="400">

$ jpcovid_v3 Tokyo Tottori

<img src="tokyo_tottori.png" width="400">

$ jpcovid_v3 Osaka Niigata

<img src="osaka_niigata.png" width="400">

$ jpcovid_v3 Hokkaido Nara

<img src="hokkaido_nara.png" width="400">

$ jpcovid_v3 Niigata Fukui Shimane Tottori

<img src="niigata_fukui_shimane_tottori.png" width="400">
lambda-thread-pool 0.0.2
AWS Lambda thread pool (lambda-thread-pool) uses multiprocessing.Pipe instead of multiprocessing.Queue. It provides the ability to perform parallel execution within the AWS lambda Python execution environment.
Requires Python: >3.7.0

# AWS Lambda thread pool (lambda-thread-pool)

You cannot use "multiprocessing.Queue" or "multiprocessing.Pool" within a Python Lambda environment because the Python Lambda execution environment does not support shared memory for processes.

You will see an issue if you attempt to use Pool:

```
{
  "errorMessage": "[Errno 38] Function not implemented",
  "errorType": "OSError",
  "requestId": <request_id>,
  "stackTrace": [
    "  File \"/var/task/lambda_function.py\", line 10, in lambda_handler\n    pool = Pool(10)\n",
    "  File \"/var/lang/lib/python3.9/multiprocessing/pool.py\", line 927, in __init__\n    Pool.__init__(self, processes, initializer, initargs)\n",
    "  File \"/var/lang/lib/python3.9/multiprocessing/pool.py\", line 196, in __init__\n    self._change_notifier = self._ctx.SimpleQueue()\n",
    "  File \"/var/lang/lib/python3.9/multiprocessing/context.py\", line 113, in SimpleQueue\n    return SimpleQueue(ctx=self.get_context())\n",
    "  File \"/var/lang/lib/python3.9/multiprocessing/queues.py\", line 341, in __init__\n    self._rlock = ctx.Lock()\n",
    "  File \"/var/lang/lib/python3.9/multiprocessing/context.py\", line 68, in Lock\n    return Lock(ctx=self.get_context())\n",
    "  File \"/var/lang/lib/python3.9/multiprocessing/synchronize.py\", line 162, in __init__\n    SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx)\n",
    "  File \"/var/lang/lib/python3.9/multiprocessing/synchronize.py\", line 57, in __init__\n    sl = self._semlock = _multiprocessing.SemLock(\n"
  ]
}
```

AWS Lambda thread pool (lambda-thread-pool) uses "multiprocessing.Pipe" instead of "multiprocessing.Queue". It provides the ability to perform parallel execution within the AWS lambda Python execution environment.

# Prerequisites
* python3
* pip
* AWS Credentials

# Install
pip install lambda-thread-pool

# Usage

```
from lambda_thread_pool import LambdaThreadPool


def test_func(index, message):
    print(index, message, end='\n')
    return message


def lambda_handler(event, context):
    pool = LambdaThreadPool()

    results = []

    for i in range(10):
        res = pool.apply_async(test_func, (i, f'Message: {i}'))
        results.append(res)

    pool.join()

    for result in results:
        print('Result:', result.get())

```
kaindall-template 0.0.1
This is a package to do the project of DIO's bootcamp
Requires Python: >=3.8

# package_name

Description. 
The package package_name is used to:
	- 
	-

## Installation

Use the package manager [pip](https://pip.pypa.io/en/stable/) to install package_name

```bash
pip install package_name
```

## Usage

```python
from package_name import file1_name
file1_name.my_function()
```

## Author
My_name

## License
[MIT](https://choosealicense.com/licenses/mit/)
latestearthquake-ind 0.2
This package will get the latest info of earquake from BMKG (Meteorological, Climatological, and Geophysical Agency)
Requires Python: >=3.6

# Latest Indonesia Earthquake
This package will get the latest info of earquake from BMKG (Meteorological, Climatological, and Geophysical Agency)

## HOW IT WORK?
This package will scrape from [BMKG](https://bmkg.go.id) to get latest info quake Indonesia.
This package will use BeautifulSoup4 and Request, to produce output in the form of JSON that is ready to be used in web or mobile applications.

#Author
Dodi Akbar

"""
if __name__ == '__main__':
    result = ekstraksi_data()
    tampilkan_data(result)
"""
django-mentor-ds 0.6.3
mentor_pro porting for django
Requires Python: >=3.8

# django-mentor_ds

django-mentor_ds 는 mentor-pro v4.8.0을 장고에 맞게 포팅한 장고앱이다.


> 프로젝트에 설치하기
> 1. mentor 앱과 demian_parts 앱을 프로젝트 settings.py 의 INSTALLED_APPS 에 추가한다.
> ```python
> import os
> INSTALLED_APPS = [
>     ...
>     'demian_parts',
>     'mentor',
> ]
> ```
> 2. 프로젝트의 urls.py에 mentor url을 추가한다.
> ```python
> from django.urls import path, include
> 
> urlpatterns = [
>     ...
>     path('', include('mentor.urls')),
> ]
> ```
> 3. 케이스를 입력하기 위해서 프로젝트에 mentor 데이터베이스를 생성한다.
> ```commandline
>     python manage.py makemigrations mentor
>     python manage.py migrate
>     python manage.py createsuperuser
> ```
> 4. http://127.0.0.1:8000/admin 으로 접속하여 블로그를 입력한다.

> 프로젝트 구조 생성하기
> 1. 개별 업체만의 static 폴더 경로를 INSTALLED_APPS 에 추가한다.
> ```python
> import os
> STATICFILES_DIRS = [
>   os.path.join(BASE_DIR, '_static/'),
> ]
> ```
> 2. _data 폴더를 생성하고 contents.py내에 데이터를 형식에 맞게 입력한다.
> 3. _static 폴더를 생성하고 각종 이미지 등을 형식에 맞게 저장한다.

> 참고 : SCSS 설치하기 - 프로젝트에 SCSS를 설치해야 앱이 작동한다.    
> https://www.accordbox.com/blog/how-use-scss-sass-your-django-project-python-way/   
> 1. django_compressor, django-libsass를 설치한다. (앱을 설치하면 자동으로 설치된다.)
> ```commandline
> pip install django_compressor django-libsass
> ```
> 2. 프로젝트 settings.py 의 INSTALLED_APPS 에 다음을 추가한다.
> ```python
> import os
> INSTALLED_APPS = [
>     ...
>     'compressor',
> ]
> 
> COMPRESS_PRECOMPILERS = (
>     ('text/x-scss', 'django_libsass.SassCompiler'),
> )
> 
> STATICFILES_FINDERS = [
>     'django.contrib.staticfiles.finders.FileSystemFinder',
>     'django.contrib.staticfiles.finders.AppDirectoriesFinder',
>     'compressor.finders.CompressorFinder',
> ]
> 
> # compressor 앱을 실행하기 위해서는 STATIC_ROOT가 설정되어 있어야 한다.
> STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
> ```
PyiPNG 1.0.3
Convert CgBI to PNG with Python
Requires Python: >=3.6
Keywords: CgBI

PyiPNG
=======
convert apple fake png(CgBI) to real png

Requirements
-------------

None

Installation
-------------

Package is uploaded on `PyPI<https://pypi.org/project/pyipng>`.
You can install it with pip::

    $ python3 -m pip install PyiPNG


Example
-------------

see `example.py<https://github.com/venjye/PyiPNG/blob/master/example.py>`



License
-------

PyiPNG is released under the MIT License. See LICENSE for more information.
py-color-log 1.0.4
python color log
Requires Python: >=3.5, <4
Keywords: color,log

# py-color-log

> python 颜色缤纷的日志

------

## 运行环境

![](https://img.shields.io/badge/Python-3.8%2B-brightgreen.svg)


## 介绍

封装了 colorlog 使其更易用，效果如图：

![](./imgs/01.png)

其特点为：

- 默认的各等级颜色分配
- 默认的日志滚动配置（按天滚动，最多保留 7 天）
- 默认的第三方日志禁用：
    - `requests`
    - `chardet.charsetprober`
- 灵活可控的配置


## 使用说明

在代码中引入 py-color-log 包即可：

```python
from color_log.clog import log

log.debug('这是 DEBUG 日志，白色')
log.info('这是 INFO 日志，青绿')
log.warn('这是 WARN 日志，黄色')
log.error('这是 ERROR 日志，紫色')
try :
    a = 1 / 0
except :
    log.critical('这是 CRITICAL 日志，红色')
```

可以通过构造函数调整日志配置：

```python
from color_log.clog import ColorLog

'''
[param] log_dir: 日志输出目录
[param] app_logs: 应用运行日志的名称字典，格式如 { name: min_level, ... }
[param] logfile_format: 输出日志文件的格式
[param] date_format: 输出日志文件的时间格式
[param] logcolors: 日志每个等级的颜色字典，格式如 { level: color, ... }
[param] rollday: 日志滚动间隔（单位：天）
[param] backupdays: 备份日志时长（单位：天）
[param] encoding: 日志编码
[param] debug: 是否打印 debug 日志
[param] thirdlist: 禁用的第三方日志列表
'''
log = ColorLog(
    log_dir = './logs', 
    app_logs = {
        'run.log': logging.INFO, 
        'err.log': logging.ERROR
    }, 
    logfile_format = '%(asctime)s [%(levelname)s] [%(filename)s:%(lineno)d] - %(message)s', 
    date_format = '%Y-%m-%d %H:%M:%S', 
    log_colors = {
        'DEBUG': 'white',
        'INFO': 'cyan',
        'WARNING': 'yellow',
        'ERROR': 'purple',
        'CRITICAL': 'red',
    }, 
    rollday = 1, 
    backupdays = 7, 
    encoding = 'utf-8', 
    debug = True, 
    thirdlist = [ 
        'requests', 
        'chardet.charsetprober'
    ]
)
```

### 关于测试

详见 [单元测试说明](tests)


## 赞助途径

| 支付宝 | 微信 |
|:---:|:---:|
| ![](imgs/donate-alipay.png) | ![](imgs/donate-wechat.png) |


## 版权声明

　[![Copyright (C) EXP,2016](https://img.shields.io/badge/Copyright%20(C)-EXP%202016-blue.svg)](http://exp-blog.com)　[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)

- Site: [https://exp-blog.com](https://exp-blog.com) 
- Mail: <a href="mailto:289065406@qq.com?subject=[EXP's Github]%20Your%20Question%20（请写下您的疑问）&amp;body=What%20can%20I%20help%20you?%20（需要我提供什么帮助吗？）">289065406@qq.com</a>