-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: search() is now a generator (#8)
* feat: search() is now a generator * fix: tests * fix: tests * fix: tests * fix remove 3.13 * docs: update * docs: fix broken code block * fix: docstrings
- Loading branch information
1 parent
cf2d7c5
commit b41e559
Showing
48 changed files
with
730 additions
and
1,041 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
::: pynyaa._types.SearchLimit | ||
::: pynyaa._types.MagnetUrl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ authors = ["Ravencentric <[email protected]>"] | |
license = "Unlicense" | ||
readme = "README.md" | ||
keywords = ["anime", "nyaa", "nyaa.si", "torrent", "python"] | ||
packages = [{include = "pynyaa", from = "src"}] | ||
packages = [{ include = "pynyaa", from = "src" }] | ||
homepage = "https://pynyaa.ravencentric.cc" | ||
repository = "https://github.com/Ravencentric/pynyaa" | ||
documentation = "https://pynyaa.ravencentric.cc" | ||
|
@@ -42,14 +42,14 @@ pytest = "^8.2.2" | |
pytest-asyncio = "^0.23.5.post1" | ||
pre-commit = "^3.7.1" | ||
coverage = "^7.5.4" | ||
respx = "^0.21.1" | ||
types-beautifulsoup4 = "^4.12.0.20240511" | ||
types-xmltodict = "^0.13.0.3" | ||
|
||
|
||
[tool.poetry.group.docs.dependencies] | ||
mkdocs-material = "^9.5.27" | ||
mkdocstrings = {extras = ["python"], version = "^0.25.1"} | ||
mkdocs-autorefs = "^1.0.1" | ||
mkdocs-material = "^9.5.34" | ||
mkdocstrings = { extras = ["python"], version = "^0.26.1" } | ||
mkdocs-autorefs = "^1.2.0" | ||
|
||
[tool.poetry.scripts] | ||
pynyaa = "pynyaa.__main__:main" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +0,0 @@ | ||
from ._async import AsyncNyaa | ||
from ._sync import Nyaa | ||
|
||
__all__ = ["AsyncNyaa", "Nyaa"] | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
from pydantic import AnyUrl, Field, UrlConstraints | ||
from pydantic import AnyUrl, UrlConstraints | ||
from typing_extensions import Annotated | ||
|
||
SearchLimit = Annotated[int, Field(gt=0, le=75)] | ||
"""Integer with lower and upper limits.""" | ||
|
||
MagnetUrl = Annotated[AnyUrl, UrlConstraints(allowed_schemes=["magnet"])] | ||
"""Url that only allows magnets.""" |
Binary file removed
BIN
-2.97 KB
tests/__responses__/12ef158cb1836d0c59e541b9214f829b8cc6ba63f1eeebbcb6e72a77947a9598.search
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-2.83 KB
tests/__responses__/1d1887c576821bc21f11d997255183b5e84383c6b0d69bb4a066546dfdbf1e5f.search
Binary file not shown.
Binary file removed
BIN
-71.8 KB
tests/__responses__/2444d7829ba9dd685da41ce76c36f98e6e048442d94667c9e79f55dedd4242d5.search
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-1.84 KB
tests/__responses__/5fd1cf7f7240a8a641ba44a0b2c694eca5630fba0e65320b77d1979f99b09f2b.search
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-1.88 KB
tests/__responses__/9c1235763e8ac01b4c169c01144a5eaeab64b0ed455de071731ba0b6a4998ece.search
Binary file not shown.
Oops, something went wrong.