semvec/pypi-packages huggingface dataset:
opmatch 1.0.1
A leightweight package to perform optimal case-control matching.
License: MIT
Requires Python: >=3.7, <4
Keywords: matching,statistics,epidemiology,causal inference,propensity score,optimal matching,case-control matching,matching algorithms,matching methods,pharmacoepidemiology

The package provides the following matching methods:
* **optimal match**
    + one-to-one match
    + one-to-many match
    + variable ratio match
    + full match (not implemented yet)
* **greedy match**
    + not implemented yet

All matching methods support covariate and propensity score matching.

To obtain matches you can simply run:

```python
from opmatch.matcher import Matcher
case_control_dict = Matcher(
        df, matching_ratio, 
        min_mr, max_mr, n_controls, 
        metric, matching_type,
        case_col, var_cols,  ps_col,
        ).match()
```
>#### Parameters

* **matching_ratio** number of controls per case if matching ratio is constant

* **min_mr**: minimum number of controls per case
* **max_mr**: maximum number of controls per case
* **n_controls**: number of controls to match
* **metric**: PS or one of the metrics accepted by scipy.spatial.distances.cdist
* **matching_type**: constant or variable matching ratio
* **case_col**: boolean column where cases are 1s and controls 0s
* **var_cols**: columns containing relevatn patient variables
        if metric!=PS: var_cols used for matching
        if metric==PS but ps_col is not specified: var_cols used to compute PS using logistic regression
* **ps_col**: column containing the propensity score
* **case_col**: column name of case column, should contain 1s and 0s
proxy-servant 1.0.0
proxy-servant is your best friend that will give you a working proxy every time you request it
License: MIT
Keywords: Proxy,Proxy Checker,Proxy Servant,Servant,Python 3

# proxy-servant
proxy-servant is your best friend that will give you a working proxy every time you request it

## Why and For What?
Proxy-servant developed for a community from a part of that community
My main goal was to develop a package that would accept a set of proxy data, 
send thousands http requests throught those proxies, and know which ones were alive

## Which proxies are supported?
* SOCKS5
* SOCKS4
* HTTP

## How to use?
### Load dataset

```
http://127.0.0.1
http://127.0.0.2
http://127.0.0.3
http://127.0.0.4
```
*dataset.txt*

```py
import proxy_servant

data = proxy_servant.FileDataSource("./proxies.csv")
```

### Instantiate checker
```py
pc = proxy_servant.BasicProxyChecker(data, "https://google.com", timeout=aiohttp.ClientTimeout(connect=8))
```

### Send requests
If you in async function
```py
check_result = await pc.check()
```
or
```
import asyncio
check_result = asyncio.run(pc.check())
```
Now you have list with result of proxy-checking

### Iterate over working proxy
```py
pp = proxy_servant.BasicProxyProvider(check_result) # filtering and saves only working proxies
pp.get_all()

# or

next(pp)

# or

for proxy in pp:
    pass
```

To manage an infinite or finite loop, use the `remove_proxy_after_use` parameter in `BasicProxyProvider`


# Change log


## [1.0.0] - 2022-12-03

### Added
- Improved README


## [0.0.1] - 2022-11-04

### Added
- Initial version