semvec/pypi-packages huggingface dataset:
py-irtools 1.0.11
A package with useful tools

# irtools

A collection of useful tools for Automation, Devops, or anything really

## News:

> Now hosted on pypi !

https://pypi.org/project/py-irtools/

> Now with a Slack Channel!

https://py-irtools.slack.com

> Now with Travis CI

https://travis-ci.org/InbarRose/irtools

## What is it?

A set of tools that I find myself using often.
Compiled over many years of use, gathered here and organized.

## Installing with pip

> To get the most stable version (**recommended**) 

`pip install py-irtools`

> To get the development version

`pip install git+git://github.com/InbarRose/irtools@development#egg=irtools`

## Usage

To use the tools, you simply do:

`from irtools import *`

* This will gauruntee that you have the optimal situation, where you can access `utils` from your code. 
* It will also make sure that the logging module has been monkey patched with the new `trace` level. (important when running on commandline or with logging enabled)

When running from command line, you should include a call to `utils.logging_setup()` to make sure the logging is setup to work correctly for all the utils.

## Examples

```python
ret = utils.iexec('ping 8.8.8.8')  # using iexec you can run any command
```
See the rest of this example and more in the [quickstart examples file](examples/quickstart_examples.md)

More examples in the [examples folder](examples).

## Authors / Creators / Credits

* **Inbar Rose** - *Owner* - [InbarRose](https://github.com/InbarRose)

## Note about code included or copied from external sources

Throughout the years I have compiled this set of utilities, most of it is written by me (Inbar) But some of it is copied from other sources, everywhere I have copied code I have included a link to the source, and where possible the type of license or a note about the author. If you believe I have made an error, or something I have included is wrong or needs updating, please let me know. It is not my intention to steal or cheat or claim work as my own, and if you dispute my using of your code, I will happily remove it. In some cases I made slight modifications to code mostly for readability, but in some cases I made modifications to enhance capabilities. Again, if anyone has a problem with anything I have done, please let me know. Thanks.

## Future Plans

1. Add examples to try to cover each util lib and kit. (Assistance is welcomed)

2. Improve documentation and add additional comments for increased flow readability (Assistance is welcomed)

3. I plan to include additional tools in the future, not just a set of utils, but also powerful classes to manage common DevOps/Automation challanges...

   1. [x] ~~TaskManager~~ - *To optimize running tasks in parallel or in a specific order*
   2. [x] ~~JsonLoader~~ - *To make reading and writing class structures from JSON easy*
   3. [x] ~~RestfulAPI~~ - *To enhance the ability to use and debug restful interface using requests*
   4. [ ] And More.. - *I have a large collection of tools to release*

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details
qichacha 0.0.9
企查查的api

**Xiang Wang @ 2019-02-18 15:41:48**

企查查api文档

# 安装步骤
1. [申请自己的数据](http://www.yjapi.com/DataCenter/ApplyData#)
2. 安装
```
    pip install qichacha
```
3. 创建client
```
from qichacha import QichachaClient
client = QichachaClient(key="您的key", secretkey="您的密钥", logger="您的logger，可以不填")
```
4. 调用接口
```
client.search(name="小桔科技")
```

# 接口详细文档
## 企业工商数据查询
* 企业关键字模糊查询
[接口文档地址](http://www.yjapi.com/DataApi/Api?apiCode=410)
```
>>> result, response = client.search(name="小桔科技")
>>> print(result)
[
    {
      "KeyNo": "4659626b1e5e43f1bcad8c268753216e",
      "Name": "北京小桔科技有限公司",
      "OperName": "程维",
      "StartDate": "2012-07-10T00:00:00",
      "Status": "存续（在营、开业、在册）",
      "No": "110108015068911",
      "CreditCode": "9111010859963405XW"
    },
    {
      "KeyNo": "4178fc374c59a79743c59ecaf098d4dd",
      "Name": "深圳市小桔科技有限公司",
      "OperName": "王举",
      "StartDate": "2015-04-22T00:00:00",
      "Status": "存续",
      "No": "440301112653267",
      "CreditCode": "91440300334945450M"
    },
    ...
]
```

# 其他
如有疑问或者需求提供其他接口，欢迎提交PR或者联系 [ramwin@qq.com](mailto:ramwin@qq.com)
django-soc-lite 0.0.4
A Powerfull Django plugin to detect and logging Basic Web-based Attack.

# django_soc_lite #

* A security middleware for Django app to Detect OWASP Top Basic and generate report in your ThreatEquation dashboard.


### with ``pip`` ###

    pip install django_soc_lite


### Configure to Your APP ###
=================

    . Add  `django_soc_lite` to your project's `INSTALLED_APPS` in`settings.py` file.

    . Add the following middleware to your project's `MIDDLEWARE_CLASSES` in `settings.py` file:

      ``'django_soc_lite.threat.middleware.ThreatEquationMiddleware',``


### Include your Product_key and Api_key (without this step, AppSoc won't work) ###
================= 

    . in your `settings.py` file place your keys in anywhere.

         THREAT_EQUATION_PRODUCT_KEY = <your product_id>
         THREAT_EQUATION_API_KEY = <your api_key>

    . example-

         THREAT_EQUATION_PRODUCT_KEY = 'aaaaabbbbb'
         THREAT_EQUATION_API_KEY = '1111111111999999999999xxxxxxxxxxxxxxxxx'


## Features ##

Monitoring request data and generate reports on following areas -

1. SQL injection
3. XSS (Cross Site Scripting)
4. Insecure File/Directory Access


### Who do I talk to? ###

* contact@threatequation.com
rxpipe 0.7.0
Wrappers for remote exec, local exec.

# Remotelib
---
---

Various wrappers for subprocess, ssh, fabric.

---

## REX: Remote execute:
REX(
	target,
	user = None,
	pass_ = None,
	port = None,
	audit_file = None,
	silent = True
)

### REX.rex("cmd", audit=True, bg=False, logfilename="deploy1.log")
Remotely execute the command specified by cmd. If bg=True, runs with nohup
and returns immediately. If audit = True, writes the stdout of the command
to the specified logfilename on the remote server.

#### REX.rex_push(local_path, remote_path): scp from the user over the active REX connection

#### REX.rex_pull(remote_path, local_path): scp a file towards the user over an active REX connection



## SSHTunnel(object)

```python
import import ssh_tunnel
tun = ssh_tunnel.SSHTunnel(
        <remote-site> [local_port(4444), remote_port(3306), 
        remote interface("localhost"), remote_user=<current_user>, spin=(True,False),
        foreground=(True,False), immediate=(True, False)
        )
```
### RemoteDB(SSHTunnel):
 -- Execute MySQL queries over a forwarded SSH connection
```pytho
remote_db = ssh_tunnel.RemoteDB(
    db_hostname, db_user=<current_user>, db_pass=<None>, db_port=4444, database=<None>, **SSHTunnel(*, **)
    )
```
### Tunnels(object):
 -- Registry for SSH Tunnels; also allows iteration (for example, to kill the connection.) Allows iteration.
 -- To register a tunnel, use the register()