semvec/pypi-packages huggingface dataset:
cartiflette 0.1.9
Tools to easily retrieve French borders for geographic data analytics
Requires Python: >=3.9

# Cartiflette [![](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) ![](https://cdn.simpleicons.org/python/00ccff99?viewbox=auto&size=18)


`cartiflette` est un projet pour faciliter l’association de sources
géographiques en proposant des récupérations facilitées de coutours de
cartes officiels.

Une documentation interactive est disponible [ici](https://inseefrlab.github.io/cartiflette-website/index.html).

L'objectif de `cartiflette` est d'offrir des méthodes fiables, 
reproductibles et multi-langages pour récupérer des fonds de carte officiels de l'IGN
enrichis de métadonnées utiles pour la cartographie et la _data science_. 

La librairie python `cartiflette` ![](https://cdn.simpleicons.org/python/00ccff99?viewbox=auto&size=18) permet la récupération des fonds de carte de l'IGN.

## Installer la librairie python ![](https://cdn.simpleicons.org/python/00ccff99?viewbox=auto&size=18)
``` python
pip install cartiflette
```


## Exemples

Plus d'exemples sont disponibles dans la [documentation interactive](https://inseefrlab.github.io/cartiflette-website/index.html).

Exemple de récupération du fonds de carte des départements avec les DROM rapprochés de la France métropolitaine
``` python
from cartiflette import carti_download

data = carti_download(
    values = ["France"],
    crs = 4326,
    borders = "DEPARTEMENT",
    vectorfile_format="topojson",
    simplification=50,
    filter_by="FRANCE_ENTIERE_DROM_RAPPROCHES",
    source="EXPRESS-COG-CARTO-TERRITOIRE",
    year=2022
)
```

Si besoin de passer par un proxy, il faut déclarer http_proxy et https_proxy en variable d'environnement. Par exemple :
``` python
import os

from cartiflette import carti_download

os.environ["http_proxy"] = yourproxy
os.environ["https_proxy"] = yourproxy

data = carti_download(
    values = ["France"],
    crs = 4326,
    borders = "DEPARTEMENT",
    vectorfile_format="topojson",
    simplification=50,
    filter_by="FRANCE_ENTIERE_DROM_RAPPROCHES",
    source="EXPRESS-COG-CARTO-TERRITOIRE",
    year=2022
)
```

## Contexte

Le projet `cartiflette` est un projet collaboratif lancé par des agents de l'Etat dans le cadre d'un programme interministériel
nommé [Programme 10%](https://www.10pourcent.etalab.gouv.fr/).

__Vous désirez contribuer ?__ Plus d'information sont disponibles dans le fichier [CONTRIBUTING.md](https://github.com/InseeFrLab/cartiflette/blob/main/CONTRIBUTING.md)
certbot-dns-contabo 0.2.0
Contabo DNS Authenticator plugin for Certbot
Requires Python: >=3.5
Keywords: certbot, dns, contabo, letsencrypt, tls, ssl, dns-01

# Certbot Contabo authenticator plugin

This is a Certbot plugin to automate DNS-01 challenges for domains whose DNS is managed by Contabo. It works by
interacting with the Contabo web interface through web scraping, as Contabo does not currently offer an official API for
DNS management.

## Important

* **Web Scraping**: This plugin relies on web scraping Contabo's website. If Contabo changes its
  website structure, this plugin may break until it's updated. The plugin is designed based on their current
  interface, which has been relatively stable for years.

## Installation

You can install the plugin using pip:

```bash
pip install certbot-dns-contabo
```

## Usage

Create a credentials file like this, for example using `nano /etc/letsencrypt/contabo.ini`:

```ini
dns_contabo_email = your-contabo-email@example.com
dns_contabo_password = your-contabo-password
dns_contabo_2fa_secret = your-contabo-2fa-secret (optional, only if you have 2FA enabled; see below on how to get this!)
```

Since this file contains sensitive credentials, protect it by restricting its permissions:

```bash
sudo chmod 600  /etc/letsencrypt/contabo.ini
```

(Replace `/etc/letsencrypt/contabo.ini` if you saved it in a different location.)

To request a certificate, use Certbot with the `dns-contabo` authenticator.

**Example for `example.com` and `*.example.com` (wildcard):**

```bash
sudo certbot certonly \
  --authenticator dns-contabo \
  --dns-contabo-credentials /etc/letsencrypt/contabo.ini \
  -d example.com \
  -d "*.example.com" 
```

## Disclaimer
I am not affiliated with Contabo in any way. This plugin can stop working at any time if Contabo changes their website,
which *could* even lead to stuff breaking on your Contabo account. 


## Getting the 2FA secret
If you have 2FA enabled on your Contabo account, you need to provide the 2FA secret in the credentials file.
You can get the secret my navigating to your Contabo account settings (https://my.contabo.com/account/details), and
scrolling down to "2-Faktor-Authentifizierung neu setzen" (at least in German, the English version should be similar).  
![](assets/2fa.png)  
This will show you a QR code and a secret key. Save the secret key in your credentials file as dns_contabo_2fa_secret.  
![](assets/2fa_secret.png)  
**Very important**: You will have to add the new 2FA-QR-code in your authenticator app again!
astrbot-plugin-treasure-bag-plugin 0.0.2
一个用于 astrbot 的宝藏袋插件
Requires Python: >=3.10

# Treasure Bag Plugin

一个为AstrBot设计的多功能插件，包含多种实用和娱乐功能。

## 功能详情
- 获取随机一言语录：从精选一言库中随机返回一条语录 (保留功能)
- 通过图片分析颜值评分：基于百度AI开放平台的人脸识别API，分析人像照片并给出颜值评分 (保留功能)
- 查询王者荣耀英雄资料：根据英雄名称查询相关资料 (保留功能)
- 生成手写样式的图片：根据输入内容生成手写风格的图片 (保留功能)
- 获取随机美女图片：随机返回一张美女图片

## 依赖要求
- Python 3.8+
- AstrBot框架
- 百度AI开放平台API Key（用于颜值评分功能）

## 功能
- 获取随机一言语录
- 通过图片分析颜值评分
- 查询王者荣耀英雄资料
- 生成手写样式的图片
- 获取随机美女图片

## 命令列表
1. /hitokoto - 获取一条一言
2. /测颜值 - 发送人像图片获取颜值评分
3. /王者 [英雄名称] - 查询王者荣耀英雄资料
4. /handwrite [内容] - 生成手写样式的图片
5. /beauty-img (或 /美女图片, /今日美女, /随机美女图片) - 获取一张随机美女图片
6. /treasurebag-help - 显示帮助信息

## 安装
1. 将插件文件夹放入AstrBot的plugins目录
2. 重启AstrBot

## 配置
1. 百度API配置（颜值评分功能需要）
   - 前往[百度AI开放平台](https://ai.baidu.com/)申请API Key
   - 在插件配置文件中添加：
     ```
     [baidu]
     api_key = "your_api_key"
     secret_key = "your_secret_key"
     ```
2. 依赖安装
   - 运行 `pip install -r requirements.txt` 安装所需依赖

## 使用示例
```
/hitokoto
> 获取一条随机一言

/测颜值 [图片]
> 分析图片并返回颜值评分

/王者 亚瑟
> 查询英雄“亚瑟”的资料

/handwrite 你好世界
> 生成手写样式的图片

/beauty-img
> 获取一张随机美女图片

/treasurebag-help
> 显示插件帮助信息
```

## 支持
如有问题，请参考[官方文档](https://astrbot.app)或联系开发者。