semvec/pypi-packages huggingface dataset:
luminati 0.1.36
Luminati proxy done easy
License: MIT
Keywords: luminati,proxy,third party

import luminati as lm

session=lm.session('{username}','{password}')

r=session.get('https://api.myip.com')#returns usual request object

print(r.json())

>> {'ip': '89.185.77.245', 'country': 'Romania', 'cc': 'RO'}


#Every time uses different proxy

#Also chrome header is set by default to make your ban chances minimal

#but you still can parse from specific country if you want

session.get('https://api.myip.com',cc="ru").text

>> {"ip":"84.22.150.132","country":"Russian Federation","cc":"RU"}

#or set your own header

session.get('https://api.myip.com',headers={"User-Agent":"Mozilla/5.0 (compatible; MSIE 9.0; Windows Phone OS 7.5; Trident/5.0; IEMobile/9.0)"}).text

>> {"ip":"178.173.228.210","country":"Australia","cc":"AU"}

#or timeout

session.get('https://api.myip.com',timeout=10)

#TODO
Change UserAgent every time just like it happens with countries of origin
criticalityMaps 0.1.0
WNTR utility for generating criticality maps
License: MIT

[![Build Status](https://travis-ci.com/pshassett/CriticalityMaps.svg?branch=master)](https://travis-ci.com/pshassett/CriticalityMaps) [![Coverage Status](https://coveralls.io/repos/github/pshassett/CriticalityMaps/badge.svg?branch=master)](https://coveralls.io/github/pshassett/CriticalityMaps?branch=master) [![Documentation Status](https://readthedocs.org/projects/criticalitymaps/badge/?version=latest)](https://criticalitymaps.readthedocs.io/en/latest/?badge=latest) 

CriticalityMaps
---------------
CriticalityMaps is a [WNTR](https://github.com/USEPA/WNTR)-based utility for running large sets of 
fire and pipe criticality simulations and visualizing the results on interactive leaflet.js html 
maps. Additionally, the mapping utilities can be used to visualize any other attributes of the 
network on an interactive .html map. 

<p align="center">
<img src="docs/_static/pipe_criticality.PNG" alt="pipe criticality map" width="500"/>
</p>

Please see the [project documentation](https://criticalitymaps.readthedocs.io/en/latest/) for more details
on usage and capabilities.

Funding Disclaimer
------------------
The U.S. Environmental Protection Agency (EPA) through its Office of Research and Development funded and collaborated in the research described herein under Interagency Agreement (IA #92432901) with the Department of Energyâ€™s Oak Ridge Associated Universities (ORAU).
mysql-binlog-explorer 0.2.4
Web UI to Explore MySQL's binlog files a little easier.
License: MIT
Keywords: mysql binlog analysis ui web explore

# mysql-binlog-explorer

MySQL binlogs are the foundation for replication, but them can be useful for tracking intense write operations on database when using `binlog_format=ROW`. With that we can see all the changes that are actually applied to the database. For example: a statement like `delete from table where timestamp > ?` could affect just 3 or 1 million rows. Besides that, sometimes we have tons of very fast statements, but when composed together in a transaction it can takes lots of time.

This application aims to aid in tracking which transactions are being too write intensves.

## Usage (simplified)

```
pip install mysql-binlog-explorer
mysql-binlog-explorer ~/logs/mysql-bin-changelog.411078 --tenant-identifier company_id  --schema-ddl schema/my_db.ddl
```

We have two not required parameters (but they are quite useful).

- `schema-ddl` is a file with the DDL instructions to create the database. It'll be use used to show the column names in the statements. 
- `tenant-identifier` the name of a column which is used to store the tenant id (usually a column name that repeats across every table). This will aid in the generated charts.

## Usage (the real deal)

- Enable binlog (configuration varies depending on environment)
- Enable row format for binlog: `binlog_format=ROW`
- This kind o change needs to restart the server so **be careful**

Given that you already have a local mysql installation with `brew`, doing the above steps would mean:

```
mysql.server start --log-bin=binlog --binlog-format=ROW
```

Now you need the actual logs. In a MySQL session do the following:

```sql
SHOW BINARY LOGS; -- get the name of the binary log that you want to check
``` 

Now download it:

```
mysqlbinlog -h <HOST> -u <USER> -p<PASSWORD> --read-from-remote-server --base64-output=decode-rows -vv <NAME_FROM_STATEMENT_ABOVE> > my-bin-log.txt
```

**Don't forget the** `--base64-output=decode-rows -vv`, it's mandatory for the parser to work!

Now just use it.

```
mysql-binlog-explorer my-bin-log.txt
```

## Screenshot

![image](https://user-images.githubusercontent.com/771129/42190310-c3e6ba1e-7e32-11e8-941a-cebb80ad009c.png)

When the tenant information is used, the app can plot a chart with transactions/changes distribution per tenant identifier.

## Caveats

- Tested only with MySQL 5.6 binlogs, other versions may not work as expected.
- The result of the parsing is stored entirely in-memory, so it may crash for very large file sets.