semvec/pypi-packages huggingface dataset:
ansibleawx-client 0.1.1
Ansible AWX Client
License: MIT

Ansible AWX Client
============

[![](https://img.shields.io/badge/python-3.4+-blue.svg)](https://www.python.org/download/releases/3.4.0/)  [![](https://img.shields.io/github/license/ResidentMario/missingno.svg)](https://github.com/mdiniz97/AnsibleAWX-Client/blob/master/README.md)


Donate to help keep this project maintained

<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ZHX5884XX26MW&source=url" target="_blank">
    <img src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif" border="0" name="submit" title="PayPal - The safer, easier way to pay online!" alt="Donate with PayPal button" />
</a>

Summary
-------

This is a unofficial python API client for Ansible AWX.

Requirements
------------
* requests

Quick Start Guide
-----------------

### Install Ansible AWX Client
	pip install ansibleawx-client

### Initialize API Client

You can do this with your username and password or using your Token.

#### Initialize client with your username and password

	import ansibleawx
    
    API_URL = "http://my-ansibleawx.com/api/v2"
    
    client = ansibleawx.Api("username", "password", api_url=API_URL)

#### Initialize client with your token
	import ansibleawx
    
    API_URL = "http://my-ansibleawx.com/api/v2"
    TOKEN = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
    
    client = ansibleawx.Api(api_url=API_URL, token=TOKEN)

Examples
--------
#### Get Inventories
	
    # to get all inventories
    response = client.get_inventories()
    
    # to get specific inventory by id
    response = client.get_inventories(1)
    
#### Get Jobs Templates
	
    # to get all jobs templates
    response = client.get_jobs_templates()
    
    # to get specific job template by id
    response = client.get_jobs_templates(1)

#### Launch Job Template by id
	response = client.launch_job_template(1)

#### Relaunch Job by id
	response = client.relaunch_job(1)
    
#### Cancel Job by id
	response = client.cancel_job(1)

Function Reference
------------------

Consult the [Ansible Tower documentation](https://docs.ansible.com/ansible-tower/latest/html/towerapi/api_ref.html#/Authentication) for more details.
flask-appmanager 0.1.14
一个Flask的后台插件
License: MIT
Requires Python: >=3.6.0

# flask_appmanager
[![star](https://gitee.com/toby_lai/flask_appmanager/badge/star.svg?theme=dark)](https://gitee.com/toby_lai/flask_appmanager/stargazers)[![fork](https://gitee.com/toby_lai/flask_appmanager/badge/fork.svg?theme=dark)](https://gitee.com/toby_lai/flask_appmanager/members)
#### 介绍
使用flask做的后台插件，暂时功能很少，欢迎issue或pull request

#### 功能
【先按照示例代码配置先】


> 运行后进入
> localhost:5000/manager
输入账号密码admin 12345（还没完全做好登陆系统QWQ，可以[pull request](https://gitee.com/toby_lai/flask_appmanager/pulls)来帮帮忙）
然后进入后台（界面如下）
![后台界面](https://images.gitee.com/uploads/images/2020/0722/224844_c029d383_6580637.png "批注 2020-07-22 151843.png")
目前的功能：
1. 查看路由和函数连接关系（概览页面）
2. 上传文件到静态资源目录
更多文档：[https://gitee.com/toby_lai/flask_appmanager/wikis](https://gitee.com/toby_lai/flask_appmanager/wikis)

 _可以[pull request](https://gitee.com/toby_lai/flask_appmanager/pulls)来提交新功能哦~_ 
#### 安装教程

```git
cd 你的python site-package路径
git clone https://gitee.com/toby_lai/flask_appmanager.git
```

#### 示例代码
简单几行，即可启动
```python
from flask import *
from flask_appmanager import *
app=Flask(__file__,static_folder='static')
#自己先创建静态目录，并把static_folder参数设置为静态目录名称

app.config['SECRET_KEY'] = '给session设置key，自己修改' #这个key随便设置也行，但不要给别人看
manage_app(app,'static')#给app添加上后台，第二个参数是静态目录名称   **_> ！最核心语句！_** 
app.run()#运行
```
[提交issue](https://gitee.com/toby_lai/flask_appmanager/issues) | 
[新建pull request](https://gitee.com/toby_lai/flask_appmanager/pulls)
rmepy 0.1.0
A simple python3 interface for DJI Robomaster EP.
License: MIT
Requires Python: >=3.6.0

# Rmepy

Rmepy 是一个对接RobomasterEP sdk的非官方python3接口，目标是还原官方在robomaster app中封装的python接口。



### Features:

该项目目前提供以下功能

- 提供使用 python3 封装的 robomasterEP sdk，允许直接在程序中调用 sdk

  ```python
  # Example
  rm.start()
  rm.basic_ctrl.set_robot_mode(2)
  rm.chassis.set_speed(0.0, 0.0, 10.0)
  ```

- 对机器人传来的视频流进行接收和解码

  ```python
  # Example
  rm.video.start()
  rm.video.display()
  ```
  
- 对机器人的推送信息进行处理，能在程序中调用

  ```python
  # Example
  rm.push.start()
  rm.gimbal.set_push(atti_freq=5)
  print(rm.gimbal.pitch, rm.gimbal.yaw)
  ```



### Requirements:

- 控制端
  - Python3 (测试使用python3.6&3.8)
  - opencv-python
  - numpy
  - pillow (PIL)
  - [h264decoder](https://github.com/dji-sdk/RoboMaster-SDK/tree/master/sample_code/RoboMasterEP/stream/decoder)

- 机器人
  - EP版本  v01.00.00.00
  - 明文 SDK 版本 v00.00.00.32



### Usage:

1. 从Pypi安装本项目:

   ```bash
   pip3 install rmepy
   ```

2. **根据自己的操作系统手动安装 [h264decoder](https://github.com/dji-sdk/RoboMaster-SDK/tree/master/sample_code/RoboMasterEP/stream/decoder)**

3. Enjoy! 可以使用以下代码进行测试


```python
import rmepy
from time import sleep

r = rmepy.Robot()
r.start()

r.video.log.level = 'WARNING'
r.video.log.level = 'INFO'

r.video.start()
r.video.display()

r.basic_ctrl.set_robot_mode(2)
r.chassis.set_push(1, 1, 1)
r.chassis.set_speed(0.0, 1.0, 10.0)
print(r.chassis.get_postion())
sleep(1)
r.chassis.set_speed(0.0, 0.0, 0.0)
print(r.chassis.get_postion())
sleep(1e5)
```

目前支持的其他命令的详细内容

可以使用 help(rmepy.robot_modules) 或 进入 rmepy/robot_modules 查看



### Project structure:

文件结构

```
rmepy
├── decorators.py	# 装饰器，包括 retry, accepts 等
├── __init__.py
├── logger.py	# 提供日志输出服务
├── robot_connection.py		# 提供与机器人的通讯服务
├── robot_modules	# 封装的sdk命令
│   ├── basic_ctrl.py	# 基础操控
│   ├── chassis.py	# 底盘控制
│   ├── gimbal.py	# 云台控制
│   ├── blaster.py	# 发射器控制
│   ├── __init__.py
│   └── __module_template.py
├── robot_msg_push.py	# 信息推送流处理
├── robot.py	# 主类(rmepy.Robot)
└── robot_video_stream.py	# 视频流处理
```

类结构

``` 
rmepy.Robot

        # Commends 封装的命令
        .basic_ctrl = commends.BasicCtrl()
        .chassis = commends.Chassis()
        .gimbal = commends.Gimbal()
        .blaster = robot_modules.Blaster()
        
        # Video 基础视频模块
        .video = robot_video_stream.RobotVideoStream()
        
        # Push 推送信息处理模块
        .push = robot_msg_push.RobotMsgPush()
```



### TODOs:

- [x]  发送控制命令
- [x]  接收s1的状态推送
- [x]  对s1的状态推送信息进行处理
- [ ]  封装所有基本的控制命令
- [x]  接收s1的视频流
- [x]  对状态推送信息处理进行测试
- [x] 对视频流接收进行测试
- [ ] 增加 advanced 模块，进行图像的高级处理（巡线，yolov3的物体识别等）
problib 0.2
Gaussian and Binomial Probability Distributions
License: MIT

# problib

[![PyPI version](https://img.shields.io/pypi/v/problib.svg)](https://pypi.python.org/pypi/problib)
![GitHub license](https://img.shields.io/github/license/lisza/problib)

Small Python library to calculate and plot probability density functions for Gaussian and Binomial distributions.

Note that this is a test Python package, it works fine but has some issues and solves no new problem. You can totally give it a try though!


## Installation with pip
```
pip install problib

# test.pypi install
pip install -i https://test.pypi.org/simple/ problib==0.2
```

## Use in Python
#### Gaussian Distribution
```python
from problib import Gaussian

# Create new gaussian distribution with mu=25 and sigma=2
gaussian = Gaussian(25, 2)
gaussian   # mean 25, standard deviation 0.5

# Return mean and standard deviation
gaussian.mean    # 25.0
gaussian.stdev   # 2.0

# Compute probability density function at point x=25
gaussian.pdf(25)    # 0.19947

# Add two Gaussian distributions together
gaussian_b =  Gaussian(80, 20)
gaussian + gaussian_b    # 'mean 105, standard deviation 20.09975'

# Read data from .txt file, recompute mean and stdev
gaussian.read_data_file('numbers.txt')
gaussian.calculate_mean()
gaussian.calculate_stdev()

# Plot data (requires loading data first)
gaussian.plot_histogram()
# Plot normalized histogram of data and probability density function (requires loading data first)
gaussian.plot_histogram_pdf()
```
![gaussian_pdf_plot](https://github.com/lisza/problib/blob/master/gauss_histogram_pdf_plot.png)


#### Binomial Distribution
The Binomial distribution has the same methods as Gaussian but takes success probability and trial size as required inputs

```python
from problib import Binomial

# Create new Binomial distribution with p=0.4 and n=20
binomial = Binomial(0.4, 20)

binomial.p    # 0.4
binomial.n    # 20
binomial.mean    # 8.0
binomial.stdev   # 2.19089

# Compute probability density function for k=5
binomial.pdf(5)    # 0.07465

# Read data from .txt file, recalculate properties
binomial.read_data_file('numbers_binomial.txt')
binomial.replace_stats_with_data()

# Plot data and probabilities (works with or without read data)
binomial.plot_bar()
binomial.plot_bar_pdf()
```
![binomial_pdf_plot](https://github.com/lisza/problib/blob/master/binomial_bar_pdf_plot.png)