semvec/pypi-packages huggingface dataset:
pydownfile 1.0.1
Pydownfile allows you to download files from web and provides a progress bar
License: MIT
Requires Python: >=3.4
Keywords: python,downloader,download,file,python3

# pydownfile
Pydownfile allows you to download files from web and provides a progress bar
# Installation
The Pydownfile can be installed via the python package manager (pip):  
```bash
python -m pip install pydownfile
```
# Usage
Pydownfile has three methods:
 - downloading file through command line:  
 You can download files from web by supplying the links as arguments on command line like this:
 ```bash
 $ python pydownfile.py http://www.africau.edu/images/default/sample.pdf
 ```
 You can provide multiple arguements to download multiple files, they should be separated by spaces.
 - calling 'download' function through your python program:  
 Pydownfile contains 'download' function which can be called from other python programs or can be copied into other programs:
 ```python
 from pydownfile import download
 download(url, filename)
 ```
 The url parameter is the url of file to be downloaded and filename is the name (with extension) of file that is to be downloaded
 Example:
 ```python
 from pydownfile import download
 download("http://www.africau.edu/images/default/sample.pdf", "mysample.pdf")
 ```
 Note that the file located on web has name 'sample.pdf' but is downloaded as mysample.pdf because we have supplied the filename as 'mysample.pdf'
 - calling 'downloadarray' function:  
 Pydownfile has function 'downloadarray' which can be called from other python programs or can be copied into other programs. It is to be used when you want to download a group of files from web. The files can be downloaded by supplying an array(list) of links like this:
 ```python
 listoflinks = ["http://www.africau.edu/images/default/sample.pdf", "https://en.unesco.org/inclusivepolicylab/sites/default/files/dummy-pdf_2.pdf"]
 from pydownfile import downloadarray
 downloadarray(listoflinks)
 ```
chiscore 0.2.3
Test statistics from linear combination of chi-squared distributions.
License: MIT
Keywords: test statistic,chi-squared distribution,p-value

# chiscore

Estimate the joint significance of test statistics derived from linear combination
of chi-squared distributions.

## Install

We recommend installing it via
[conda](http://conda.pydata.org/docs/index.html):

```bash
conda install -c conda-forge chiscore
```

Alternatively, chiscore can also be installed using
[pip](https://pypi.python.org/pypi/pip):

```bash
pip install chiscore
```

## Running the tests

After installation, you can test it

```bash
python -c "import chiscore; chiscore.test()"
```

as long as you have [pytest](https://docs.pytest.org/en/latest/).

## Usage

### Davies

```python
>>> from chiscore import davies_pvalue
>>> q = 1.5
>>> w = [[0.3, 5.0], [5.0, 1.5]]
>>> davies_pvalue(q, w)
{'p_value': 0.6151796819770086, 'param': {'liu_pval': 0.6151796819770086, 'Is_Converged': 1.0}, 'p_value_resampling': None, 'pval_zero_msg': None}
```

### Liu

Let us approximate

    𝑋 = 0.5⋅χ²(1, 1) + 0.4⋅χ²(2, 0.6) + 0.1⋅χ²(1, 0.8),

and evaluate Pr(𝑋 > 2).

```python
>>> from chiscore import liu_sf
>>>
>>> w = [0.5, 0.4, 0.1]
>>> dofs = [1, 2, 1]
>>> deltas = [1, 0.6, 0.8]
>>> (q, dof, delta, _) = liu_sf(2, w, dofs, deltas)
>>> q
0.4577529852208846
>>> dof
3.5556138890755395
>>> delta
0.7491921870025307
```

Therefore, we have

    Pr(𝑋 > 2) ≈ Pr(χ²(3.56, 0.75) > 𝑡⁺𝜎ₓ + 𝜇ₓ) = 0.458.

### P-value

```python
>>> from chiscore import optimal_davies_pvalue
>>> q = [1.5, 3.0]
>>> mu = -0.5
>>> var = 1.0
>>> kur = 3.0
>>> w = [10.0, 0.2, 0.1, 0.3]
>>> remain_var = 0.5
>>> df = 3.4
>>> trho = [5.1, 0.2]
>>> grid = [0., 0.01]
>>> optimal_davies_pvalue(q, mu, var, kur, w, remain_var, df, trho, grid)
0.966039962464624
```

## Authors

* [Danilo Horta](https://github.com/horta)

## References

* Lee, Seunggeun, Michael C. Wu, and Xihong Lin. "Optimal tests for rare variant
  effects in sequencing association studies." Biostatistics 13.4 (2012): 762-775.
* Liu, H., Tang, Y., & Zhang, H. H. (2009). A new chi-square approximation to the
  distribution of non-negative definite quadratic forms in non-central normal
  variables. Computational Statistics & Data Analysis, 53(4), 853-856.

## License

This project is licensed under the [MIT License](https://raw.githubusercontent.com/limix/chiscore/master/LICENSE.md).
slow-start-rewatch 0.2.4
Make cute things happen!
License: MIT
Requires Python: >=3.6,<4.0

<p align="center">
  <img src="https://raw.githubusercontent.com/slow-start-fans/slow-start-rewatch/master/assets/happy_shion.gif" width="384" height="360" />
</p>


# Slow Start Rewatch

[![Build Status](https://travis-ci.com/slow-start-fans/slow-start-rewatch.svg?branch=master)](https://travis-ci.com/slow-start-fans/slow-start-rewatch)
[![Coverage](https://coveralls.io/repos/github/slow-start-fans/slow-start-rewatch/badge.svg?branch=master)](https://coveralls.io/github/slow-start-fans/slow-start-rewatch?branch=master)
[![Python Version](https://img.shields.io/pypi/pyversions/slow-start-rewatch.svg)](https://pypi.org/project/slow-start-rewatch/)
[![wemake-python-styleguide](https://img.shields.io/badge/style-wemake-000000.svg)](https://github.com/wemake-services/wemake-python-styleguide)


## Missions

Make cute things happen!

Provide a command-line utility for hosting an awesome Slow Start Rewatch.


## Features

- Schedule a submission of multiple Reddit posts
- The templates for posts can be stored in Reddit's wiki or local files
- Each post can include a navigation section with links to other posts which are automatically updated after the submission of new posts
- Reddit authorization via OAuth2 using a local HTTP server with cute GIFs
- Storing the refresh token locally to keep the authorization active
- Submitting text posts with thumbnails
- Fully typed with annotations and checked with mypy, [PEP561 compatible](https://www.python.org/dev/peps/pep-0561/)


## Installation

```bash
pip install slow-start-rewatch
```

Upgrade:

```bash
pip install -U slow-start-rewatch
```


## Usage

When started for the first time the location of the schedule must be set.

1. Using the schedule stored in Reddit's wiki:

```bash
slow-start-rewatch -w /r/subreddit/wiki/wiki-path
```

2. Using the schedule stored in the local YAML file:

```bash
slow-start-rewatch -f /path/to/the/schedule.yml
```

After the location of the schedule is stored in the local config, the program can be launched without any parameters:

```bash
slow-start-rewatch
```


## License

[MIT](https://github.com/slow-start-fans/slow-start-rewatch/blob/master/LICENSE)


## Credits

This project was generated with [`wemake-python-package`](https://github.com/wemake-services/wemake-python-package).

GitHub avatar art by [yunyunmaru](https://www.pixiv.net/en/users/24452545).