Compare commits
7 Commits
c53ef03d28
...
master
Author | SHA1 | Date | |
---|---|---|---|
ccd1fdb312 | |||
2a317947ca | |||
4d8843f3cb | |||
229901206d | |||
9b38c2b037 | |||
5b021c0952 | |||
098e5cad64 |
@ -22,12 +22,9 @@ __all__ = (
|
||||
"NotLettersNotFoundError",
|
||||
"NotLettersPaymentRequiredError",
|
||||
"NotLettersUnauthorizedError",
|
||||
"__version__",
|
||||
"__version_tuple__",
|
||||
)
|
||||
|
||||
|
||||
from notletters.__meta__ import __version__, __version_tuple__
|
||||
from notletters.client import NotLetters
|
||||
from notletters.exceptions import (
|
||||
NotLettersAPIError,
|
||||
|
@ -1,2 +0,0 @@
|
||||
__version_tuple__ = (0, 1, 0)
|
||||
__version__ = ".".join(map(str, __version_tuple__))
|
@ -12,34 +12,22 @@ class NotLettersAPIError(StollenAPIError, NotLettersError):
|
||||
class NotLettersBadRequestError(NotLettersAPIError):
|
||||
"""400 Bad Request"""
|
||||
|
||||
message = "Bad request."
|
||||
|
||||
|
||||
class NotLettersUnauthorizedError(NotLettersAPIError):
|
||||
"""401 Unauthorized"""
|
||||
|
||||
message = "Unauthorized."
|
||||
|
||||
|
||||
class NotLettersPaymentRequiredError(NotLettersAPIError):
|
||||
"""402 Payment Required"""
|
||||
|
||||
message = "Payment required."
|
||||
|
||||
|
||||
class NotLettersForbiddenError(NotLettersAPIError):
|
||||
"""403 Forbidden"""
|
||||
|
||||
message = "Forbidden."
|
||||
|
||||
|
||||
class NotLettersNotFoundError(NotLettersAPIError):
|
||||
"""404 Not Found"""
|
||||
|
||||
message = "Resource not found."
|
||||
|
||||
|
||||
class NotLettersInternalServerError(NotLettersAPIError):
|
||||
"""500 Internal Server Error"""
|
||||
|
||||
message = "Internal server error."
|
||||
|
@ -25,7 +25,7 @@ keywords = [
|
||||
license-files = ["LICENSE"]
|
||||
name = "notletters"
|
||||
readme = "README.md"
|
||||
version = "0.1.1"
|
||||
version = "0.1.2"
|
||||
requires-python = ">=3.9"
|
||||
|
||||
[project.urls]
|
||||
@ -94,11 +94,6 @@ ignore-names = []
|
||||
[tool.ruff.lint.pylint]
|
||||
allow-magic-value-types = []
|
||||
|
||||
[tool.tomlsort]
|
||||
all = true
|
||||
sort_first = ["project"]
|
||||
trailing_comma_inline_array = true
|
||||
|
||||
[tool.uv]
|
||||
cache-dir = ".cache/uv"
|
||||
link-mode = "copy"
|
||||
|
Reference in New Issue
Block a user