semvec/pypi-packages huggingface dataset:
graphql-builder 1.0.0a3
Easy solution for dynamic generation of GraphQL operations.
Requires Python: >=3.8

# graphql-builder
> Easy solution for dynamic generation of GraphQL operations.

[![Sponsor on GitHub](https://img.shields.io/github/sponsors/jack1142?logo=github)](https://github.com/sponsors/jack1142)
[![Documentation Status](https://readthedocs.org/projects/graphql-builder/badge/)](https://graphql-builder.readthedocs.io)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![Imports: isort](https://user-images.githubusercontent.com/6032823/111363465-600fe880-8690-11eb-8377-ec1d4d5ff981.png)](https://github.com/PyCQA/isort)
[![We use pre-commit!](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit)
[![License: Apache-2.0](https://img.shields.io/badge/License-Apache--2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)

## Installation

**Python 3.8 or higher is required**

To install the library, you can just run the following command:

```sh
# Linux/OS X
python3.9 -m pip install -U graphql-builder

# Windows
py -3.9 -m pip install -U graphql-builder
```

## Documentation

Read [graphql-builder's documentation](https://graphql-builder.readthedocs.io)

## License

Distributed under the Apache License 2.0. See ``LICENSE`` for more information.

---

> Jakub Kuczys &nbsp;&middot;&nbsp;
> GitHub [@jack1142](https://github.com/jack1142)
nacos-app 1.1.4
django-nacos-app
Requires Python: >=2.6, !=3.0.*, !=3.1.*, !=3.2.*, <4

# 项目说明  

一个Django app用于注册nacos

### 依赖库清单  
- python >= 3.6
- django >= 2.0
- requests anyversion

### 安装环境方式

在对应的python环境中: python setup.py install

### 功能及作用
1、适用于Django服务程序注册微服务实例至nacos服务中心，实现服务集群健康检测，服务弹性伸缩，压力负载均衡;  
2、实现了服务与注册中心的登录授权，服务注册，心跳检测;  

### 引入方式
以下两点同时满足后方可启动服务注册

1、在django对应settings中INSTALLED_APPS添加nacos_app
```
INSTALLED_APPS = [
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.staticfiles',
    'nacos_app.apps.NacosRegisterConfig'
]
```
2、django程序需要在settings环境配置中写入服务注册的信息  
```
NACOS_SERVER_DISCOVERY = {  
    "server_addr": "",  # nacos服务中心地址,多个英文逗号隔开  
    "namespace": "",                   # 命名空间  
    "group_name": "",                # 分组
    "ip": "",                # 本机ip, 优先级低于socket请求包获取的ip
    "port": "",                       # 本机服务端口
    "service_name": "",           # 本机服务名称
    "ephemeral": ,                   # 是否临时实例，true为临时实例
    "username": "",                    # 拥有对应命名空间权限的账户
    "password": "",               # 密码
    "heartbeat_interval": 5               # 心跳检测间隔，单位秒，nacos默认5s
}
```

### gunicorn web服务启动
gunicorn多个worker模式下启动需要添加--preload参数，由管理进程预加载非函数式编程中的代码块，从而避免多个worker同时加载register  
gunicorn backend.wsgi -w 8 -b 0.0.0.0:port -t 600 --preload  

### 1.1.1版本构想
✓ 实现项目功能结构分离  
✓ 增加查询服务列表接口功能  
✓ 二次封装requests，增加支持LoadBalance的请求发送工具, 可以根据服务名名称自动查找服务ip:port   
✓ 定义实体类接收数据类型
luxtronik 0.3.14
A luxtronik heatpump controller interface

# Luxtronik

python-luxtronik is a library that allow you to interact with a Luxtronik heatpump controller.

## Installation

Installation is siply using this pip command:

` pip install luxtronik`

## Examples

**Reading values**

```
from luxtronik import Luxtronik

l = Luxtronik('192.168.1.23', 8889)

t_forerun = l.calculations.get("ID_WEB_Temperatur_TVL")

# alternatively get by id:

t_forerun = l.calculations.get(10)

print(t_forerun) # this returns the temperature value of the forerun, 22.7 for example
print(t_forerun.unit) # gives you the unit of the value if known, °C for example

# l.calculations holds measurement values
# check https://github.com/Bouni/luxtronik/blob/master/luxtronik/calculations.py for values you might need

# l.parameters holds parameter values
# check https://github.com/Bouni/luxtronik/blob/master/luxtronik/parameters.py for values you might need

# l.visibilitys holds visibility values, the function of visibilities is not clear at this point
check https://github.com/Bouni/luxtronik/blob/master/luxtronik/visibilities.py for values you might need


```

**Writing values**

```
from luxtronik import Luxtronik

l = Luxtronik('192.168.1.23', 8889)

heating_mode = l.parameters.set("ID_Ba_Hz_akt", "Party")
l.write()

# If you're not sure what values to write, you can get all options:

print(l.parameters.get("ID_Ba_Hz_akt").options) # returns a list of possible values to write, ['Automatic', 'Second heatsource', 'Party', 'Holidays', 'Off'] for example

```

By default a safeguard is enabled that prevents writing of parameters whose purpose is unknown.
You can disable that safeguard by passing `safe=False` to the Luxtronik class.

```
from luxtronik import Luxtronik

l = Luxtronik('192.168.1.23', 8889, safe=False)

```