semvec/pypi-packages huggingface dataset:
tracardi-discord-webhook 0.6.0
This plugin sends discord messages.
Requires Python: >=3.8
Keywords: tracardi,plugin

# Discord webhook plugin

This plugin sends discord messages.

# Configuration

Configuration needs a discord webhook url. Webhooks can be created in discord application. Click settings in the channel 
that you would like to send message to.  Then click integrations and webhooks.  Expand webhook list and click 
new webhook. Give it a name and copy url. This url should be copied to URL in the configuration JSON.

```json
{
  "url": "https://discord.com/api/webhooks/879132030/kXYSPpId...",
  "timeout": 10,
  "message": "Hello {{profile@traits.private.name}}",
  "username": "<username>"
}
```

# Input

This plugin does not process input payload. 

# Output

This plugin returns either the input payload on response port or and error on error port.
dj-auto-multitenant 0.0.6
A small package to create tenants,schemas and domains only by providing a name.
Requires Python: >=3.6


customers
=====

customers is a Django app which is used to serve django tenant details. It is used to create tenants, schemas and doamin urls for respective tenants. :fire:

Quick start
-----------
Install the package `pip install dj-auto-multitenant`.

Now make change in your DATABASE_ENGINE

    DATABASES = {
        'default': {
            'ENGINE': 'django_tenants.postgresql_backend',
            # ..
        }
    }

Add DATABASE_ROUTERS setting, so that the correct apps can be synced, depending on what’s being synced (shared or tenant).

    DATABASE_ROUTERS = (
        'django_tenants.routers.TenantSyncRouter',
    )

Add the middleware django_tenants.middleware.main.TenantMainMiddleware to the top of MIDDLEWARE, so that each request can be set to use the correct schema.

    MIDDLEWARE = (
        'django_tenants.middleware.main.TenantMainMiddleware',
        #...
    )

Now change your INSTALLED APPS settings and seprate your shared apps and tenant apps. Add your `customers` app in SHARED APP.

    SHARED_APPS = (
        'django_tenants',  # mandatory
        'customers', # you must list the app where your tenant model resides in

        'django.contrib.contenttypes',

        # everything below here is optional
        'django.contrib.auth',
        'django.contrib.sessions',
        'django.contrib.sites',
        'django.contrib.messages',
        'django.contrib.admin',
    )

    TENANT_APPS = (
        # The following Django contrib apps must be in TENANT_APPS
        'django.contrib.contenttypes',

        # your tenant-specific apps

        'myapp.houses',
    )

INSTALLED_APPS = list(SHARED_APPS) + [app for app in TENANT_APPS if app not in SHARED_APPS]


Add: 
    TENANT_MODEL = "customers.Client" # app.Model

    TENANT_DOMAIN_MODEL = "customers.Domain"  # app.Model

    CLOUDAMQP = "<YOUR CLOUDAMQP URL>"

Now migrate customers `python manage.py migrate_schemas --shared`
test-t 0.0.1
A small example package

# 简介
欢迎使用爱数云开发者工具套件（SDK）3.0，SDK3.0是云 API3.0 平台的配套工具。目前已经支持log产品，后续所有的云服务产品都会接入进来。新版SDK实现了统一化，具有各个语言版本的SDK使用方法相同，接口调用方式相同，统一的错误码和返回包格式这些优点。
为方便 Python 开发者调试和接入爱数云产品 API，这里向您介绍适用于 Python 的爱数云开发工具包，并提供首次使用开发工具包的简单示例。让您快速获取爱数云 Python SDK 并开始调用。

# 依赖环境

1. 依赖环境：Python 2.7, 3.6-3.9 版本。
2. 从 爱数云控制台 开通相应产品。
3. 获取 AccesssKey、SecretAccessKey 以及调用地址（endpoint），endpoint 一般形式为IP:HOST，具体参考各产品说明。

# 获取安装

安装 Python SDK 前，先获取安全凭证。在第一次使用云 API 之前，用户首先需要在爱数云控制台上申请安全凭证，安全凭证包括 AccesssKey、SecretAccessKey, AccesssKey 是用于标识 API 调用者的身份，SecretAccessKey 是用于加密签名字符串和服务器端验证签名字符串的密钥。SecretAccessKey 必须严格保管，避免泄露。

## 通过 Pip 安装(推荐)

您可以通过 pip 安装方式将爱数云 API Python SDK 安装到您的项目中，如果您的项目环境尚未安装 pip，请详细参见 [pip](https://pip.pypa.io/en/stable/installing/?spm=a3c0i.o32026zh.a3.6.74134958lLSo6o)官网 安装。

通过pip方式安装或更新请在命令行中执行以下命令:

```bash
pip install --upgrade aishucloud-sdk-python
```


请注意，如果同时有 python2 和 python3 环境， python3 环境需要使用 pip3 命令安装。


## 通过源码包安装

前往 [Github 代码托管地址](https://github.com/aishucloud/aishucloud-sdk-python) 下载最新代码，解压后

    $ cd aishucloud-sdk-python
    $ python setup.py install

# 示例

以查询实例列表接口为例。


```python
from aishucloud.common.http.request import RequestClient
from aishucloud.common.parameter import CheckParameter, Credential
from aishucloud.common.sign import Sign

try:
    credential = Credential(access_key="AccessKey",
                            secret_access_key="SecretAccessKey")
    sign = Sign(credential)
    parameter = {
        "endpoint": "VIP",
        "path": "访问路径和端口",
        "method": "访问方法",
        "params": "访问参数",
        "body": "访问参数",
    }
    checkParameter = CheckParameter(parameter)

    resp = RequestClient(sign, checkParameter, download_path="Z:\\download\\").get_request_client()
    print(resp)
except Exception as e:
    print(e)

```
BookerTrans2 2021.10.25.0
HTML Translator with Baidu Api for iBooker/ApacheCN
Requires Python: >=3.6
Keywords: baidu,html,translate,translater,百度,翻译

# BookerTrans2

用于 iBooker/ApacheCN 翻译项目的 HTML 百度翻译工具

## 安装

通过pip（推荐）：

```
pip install BookerTrans2
```

从源码安装：

```
pip install git+https://github.com/apachecn/BookerTrans
```

## 使用说明

```
btrans [-h] [-v] [-P PROXY] [-t TIMEOUT] [-w WAIT_SEC] 
       [-r RETRY] [-s SRC] [-d DST] <-i APP_ID> <-k APP_KEY>
       fname
       
-P PROXY: 代理，格式为 \d+\.\d+\.\d+\.\d+:\d+，默认为空
-t TIMEOUT: 超时时间，以秒为单位，默认为 8
-w WAIT_SEC: 两次翻译之间的延迟（以秒为单位），默认为 0.1
-r RETRY: 重试次数，默认为 10
-s SRC: 源语言，默认为 auto
-d DST: 目标语言，默认为 zh
-i APP_ID: 开放平台 APP ID，默认为系统变量 $BAIDU_FANYI_APPID
-k APP_KEY: 开放平台 APP KEY，默认为系统变量 $BAIDU_FANYI_APPKEY
fname: HTML 文件名称，或者文件所在的目录名称
```

## 协议

本项目基于 SATA 协议发布。

您有义务为此开源项目点赞，并考虑额外给予作者适当的奖励。

## 赞助我们

![](https://home.apachecn.org/img/about/donate.jpg)

## 另见

+   [ApacheCN 学习资源](https://docs.apachecn.org/)
+   [计算机电子书](http://it-ebooks.flygon.net)
+   [布客新知](http://flygon.net/ixinzhi/)
GaltoPy 0.0.1
Efficient implmenetations of instantiations of the Trinity of Interaction.
Requires Python: >=3.6

# GaltoPy
Efficient implementations of the instantiations of the Trinity of Interaction.

This package is name after Sir Francis Galton whose intuitive thinking was pivotal in motivating the notion of statistical correlation. While Francis Galton had a tabular method of calculating correlation, and Auguste Bravais had previously developed an equivalent calculation before, it was Karl Pearson who formulated the product-moment correlation coefficient that bears his name.
pyLemma 0.4.1
PyLemma is a wrapper to Lemma

# About
Lemma is an ElectroMagnetics Modelling API. Lemma is developed in the hopes that it will be helpful for academics, industry, and anyone else interested in geophysical modelling.

* Written in C++ 
* Test driven   
* Flexible 
* Fast
* Object oriented 
* Python bindings
* VTK integration

## Git 
Lemma is hosted on several Git instances. Our main instance runs on Gitea and is at https://lemmasoftware.org. The project is also mirrored on GitHub. 

## Team 
Lemma is and has been developed by several organisations and people, including: University of Utah, Colorado School of Mines, US Geological Survey. 

## Platforms 
Lemma is tested on Linux (Ubuntu & Arch), Mac OSX and Windows (7&10) platforms. 
If you have used Lemma on something else, please let us know. 

## Getting involved
* Testing code
* Improving documentation