Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jb--/lychpy
Unofficial Python bindings for Lychee
https://github.com/jb--/lychpy
Last synced: about 2 months ago
JSON representation
Unofficial Python bindings for Lychee
- Host: GitHub
- URL: https://github.com/jb--/lychpy
- Owner: jb--
- License: mit
- Created: 2023-08-27T16:57:56.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-26T16:02:40.000Z (12 months ago)
- Last Synced: 2024-07-24T21:12:16.836Z (2 months ago)
- Language: Rust
- Size: 64.5 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LychPy
LychPy is an unofficial Python wrapper for [Lychee](https://github.com/lycheeverse/lychee), a fast, async, stream-based link checker written in Rust. It allows you to use Lychee's functionality in your Python projects.
> :warning: **Important Notice:** This project is still in development, and not ready for usage. Please check back later.
![Screencast](assets/screencast.svg)
## Table of Contents
- [Installation](#installation)
- [Usage](#usage)
- [Credits](#credits)
- [License](#license)## Installation
```bash
pip install lychpy
```## Usage
```python
Python 3.7.17 (default, Jun 14 2023, 09:26:35)
[GCC 9.3.1 20200408 (Red Hat 9.3.1-2)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import lychpy
>>> lychpy.check(["https://bing.com", "https://google.com"])
{'https://bing.com': ✔ [200] https://bing.com/, 'https://google.com': ✔ [200] https://google.com/}
>>> url, result = lychpy.check(["https://bing.com"]).popitem()
>>> result.is_excluded
False
>>> result.is_failure
False
>>> result.is_success
True
>>> result.is_timeout
False
>>> result.is_unsupported
False
>>> result.status
'200'
>>> result.url
'https://bing.com/'
```## Credits
This Python wrapper is built on top of the [Lychee](https://github.com/lycheeverse/lychee) project. All credits for the link checking functionality go to the original authors and contributors of Lychee.
## License
LychPy is licensed under the MIT License. See the [LICENSE](LICENSE) file for more information.
Lychee is licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or
https://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or https://opensource.org/licenses/MIT)at your option.