semvec/pypi-packages huggingface dataset:
ctmd5 0.1.2
change the MD5
License: MIT
Requires Python: >=3.8
Keywords: MD5

# change the MD5

[![The MIT License](https://img.shields.io/badge/license-MIT-green.svg?style=flat-square)](http://opensource.org/licenses/MIT) [![PyPI](https://img.shields.io/pypi/v/ctmd5.svg?style=flat-square)](https://pypi.python.org/pypi/ctmd5)

有时候在使用某网盘的时候总会遇到文件无法上传或者是上传后无法分享的情况，所以抽了个时间写了个改变文件 MD5 值的小工具，目前只能算是基本能用吧，后续再继续完善。

## 安装

```shell
pip3 install ctmd5
```

## 使用

```shell
$ ctmd5 --help
Usage: ctmd5 [OPTIONS] FILE

  A CLI tool used to change the MD5 of files

Options:
  -s, --show  show the md5 value. (When the file is large, it will take a long
              time.)
  --version   Show the version and exit.
  --help      Show this message and exit.
```

## 示例

运行

```shell
$ ctmd5 -s The.Big.Bang.Theory.mp4
before md5: 23aefe6872325590956548dec285849f
The file[The.Big.Bang.Theory.mp4] md5 value has been changed.
after md5: 447e1bb20de228dcdead50db56415b7c
```

## LICENSE

The MIT License [@shkey](https://github.com/shkey)
doi2pdf 0.1.3
Retrieve research paper PDF from DOI, name or URL of the research paper
License: MIT
Requires Python: >=3.7,<4.0

# doi2pdf 
`doi2pdf` is a command line tool to download PDFs of reasearch paper from DOI, name or url, written in Python.  
It can be used either as a command line tool or as inside a Python script.


## Installation

```bash
pip install doi2pdf
```


## CLI usage
```bash
doi2pdf --name "Attention is all you need" --output "Transformer.pdf" --open
doi2pdf --url "https://arxiv.org/abs/1706.03762" --output "Transformer.pdf" --open
doi2pdf --doi "10.48550/arXiv.2203.15556" --output "Chinchilla.pdf" --open
```


Can also be used as a library.

```python
from doi2pdf import doi2pdf

doi2pdf("10.48550/arXiv.2203.15556", output="Chinchilla.pdf")
```


## Troobleshooot

- If error `DOI not found` appears it means sci hub could not retrieve the paper, you might need to override default sci-hub URL with a mirror, like so:

```bash
SCI_HUB_URL=https://sci-hub.wf/ doi2pdf --name "Attention is all you need" --open
```

- If error `Paper not found` appears, you might want to try another way to retrieve the research paper, using DOI instead of name or name instead of URL.