Skip to content

Commit 8910ebe

Browse files
Merge pull request #4 from p2p-ld/docs-test
minor changes to test previews vol 2
2 parents 15c8d5c + 732861e commit 8910ebe

File tree

2 files changed

+17
-18
lines changed

2 files changed

+17
-18
lines changed

README.md

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
11
# torrent-models
22

3+
[![docs](https://readthedocs.org/projects/torrent-models/badge/)](https://torrent-models.readthedocs.io/en/latest/)
4+
35
.torrent file parsing and creation with pydantic
46
(and models for other bittorrent things too)
57

6-
~ alpha software primarily intended for use with [sciop](https://codeberg.org/Safeguarding/sciop) ~
8+
While there are [many](#other-projects) other torrent packages, this one:
79

8-
## Initial development
10+
- Is simple and focused
11+
- Can create and parse v1, v2, hybrid, and [other BEPs](./beps.md)
12+
- Is focused on library usage (but does [cli things too](./usage/cli.md))
13+
- Validates torrent files (e.g. when accepting them as user input!)
14+
- Treats .torrent files as an *extensible* rather than fixed format
15+
- Is performant! (and asyncio compatible when hashing!)
16+
- Uses python typing and is mypy friendly
17+
18+
~ alpha software primarily intended for use with [sciop](https://codeberg.org/Safeguarding/sciop) ~
919

10-
- [x] Parsing
11-
- [x] v1
12-
- [x] v2
13-
- [x] Generation
14-
- [x] v1
15-
- [x] v2
16-
- [ ] hybrid
1720

1821
## See also
1922

@@ -27,15 +30,6 @@ These are also good projects, and probably more battle tested
2730
- [`PyBitTorrent`](https://github.com/gaffner/PyBitTorrent)
2831
- [`torrent_parser`](https://github.com/7sDream/torrent_parser)
2932

30-
The reason this package exists is that none of them are a pure, complete
31-
parser and generator of torrent files that...
32-
- can handle v1, v2, hybrid, and all other .torrent-related BEPs
33-
- is focused on library usage
34-
- is simple and focused
35-
- has few dependencies
36-
- is performant
37-
- uses modern python typing
38-
3933
Specifically
4034
- `torf` has some notable performance problems, and doesn't support v2
4135
- `torrentfile` is focused on the cli and doesn't appear to be able to validate torrent files,

docs/index.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ While there are [many](#other-projects) other torrent packages, this one:
3232
- Is performant! (and asyncio compatible when hashing!)
3333
- Uses python typing and is mypy friendly
3434

35+
this package was created for, and used by [sciop <3](https://sciop.net/)
36+
3537
## Examples
3638

3739
### Read a torrent
@@ -169,13 +171,15 @@ The reasons we did not use these other tools and wrote this one:
169171

170172
```{toctree}
171173
:caption: Usage:
174+
:hidden:
172175
173176
usage/torrent
174177
usage/cli
175178
```
176179

177180
```{toctree}
178181
:caption: API:
182+
:hidden:
179183
180184
api/create
181185
api/hashing
@@ -188,6 +192,7 @@ api/types
188192
```{toctree}
189193
:maxdepth: 2
190194
:caption: Reference:
195+
:hidden:
191196
192197
beps
193198
references

0 commit comments

Comments
 (0)