|
1 | 1 | # Result |
2 | 2 |
|
3 | | -[](https://github.com/rustedpy/result/actions/workflows/ci.yml?query=branch%3Amain) |
4 | | -[](https://codecov.io/gh/rustedpy/result) |
5 | | - |
6 | 3 | A simple Result type for Python 3 [inspired by |
7 | 4 | Rust](https://doc.rust-lang.org/std/result/), fully type annotated. |
8 | 5 |
|
9 | | -## Installation |
10 | | - |
11 | | -Latest release: |
| 6 | +> [!WARNING] |
| 7 | +> Forked from the original [result](https://github.com/rustedpy/result) library after it became unmaintained. This version is experimental and mainly used for my own projects--use it at your own risk! |
12 | 8 |
|
13 | | -``` sh |
14 | | -$ pip install result |
15 | | -``` |
| 9 | +## Installation |
16 | 10 |
|
17 | 11 | Latest GitHub `main` branch version: |
18 | 12 |
|
19 | 13 | ``` sh |
20 | | -$ pip install git+https://github.com/rustedpy/result |
| 14 | +uv add git+https://github.com/montasaurus/result |
21 | 15 | ``` |
22 | 16 |
|
23 | 17 | ## Summary |
@@ -422,29 +416,6 @@ Sometimes regular `do()` can handle async values, but this error means |
422 | 416 | you have hit a case where it does not. You should use `do_async()` here |
423 | 417 | instead. |
424 | 418 |
|
425 | | -## Contributing |
426 | | - |
427 | | -These steps should work on any Unix-based system (Linux, macOS, etc) with Python |
428 | | -and `make` installed. On Windows, you will need to refer to the Python |
429 | | -documentation (linked below) and reference the `Makefile` for commands to run |
430 | | -from the non-unix shell you're using on Windows. |
431 | | - |
432 | | -1. Setup and activate a virtual environment. See [Python docs][pydocs-venv] for more |
433 | | - information about virtual environments and setup. |
434 | | -2. Run `make install` to install dependencies |
435 | | -3. Switch to a new git branch and make your changes |
436 | | -4. Test your changes: |
437 | | - - `make test` |
438 | | - - `make lint` |
439 | | - - You can also start a Python REPL and import `result` |
440 | | -5. Update documentation |
441 | | - - Edit any relevant docstrings, markdown files |
442 | | - - Run `make docs` |
443 | | -6. Add an entry to the [changelog](./CHANGELOG.md) |
444 | | -5. Git commit all your changes and create a new PR. |
445 | | - |
446 | | -[pydocs-venv]: https://docs.python.org/3/library/venv.html |
447 | | - |
448 | 419 | ## FAQ |
449 | 420 |
|
450 | 421 | - **Why should I use the `is_ok` (`is_err`) type guard function over the `is_ok` (`is_err`) method?** |
|
0 commit comments