Compare commits
2 Commits
9b38c2b037
...
c53ef03d28
Author | SHA1 | Date | |
---|---|---|---|
c53ef03d28 | |||
2429a07731 |
@ -12,22 +12,34 @@ class NotLettersAPIError(StollenAPIError, NotLettersError):
|
|||||||
class NotLettersBadRequestError(NotLettersAPIError):
|
class NotLettersBadRequestError(NotLettersAPIError):
|
||||||
"""400 Bad Request"""
|
"""400 Bad Request"""
|
||||||
|
|
||||||
|
message = "Bad request."
|
||||||
|
|
||||||
|
|
||||||
class NotLettersUnauthorizedError(NotLettersAPIError):
|
class NotLettersUnauthorizedError(NotLettersAPIError):
|
||||||
"""401 Unauthorized"""
|
"""401 Unauthorized"""
|
||||||
|
|
||||||
|
message = "Unauthorized."
|
||||||
|
|
||||||
|
|
||||||
class NotLettersPaymentRequiredError(NotLettersAPIError):
|
class NotLettersPaymentRequiredError(NotLettersAPIError):
|
||||||
"""402 Payment Required"""
|
"""402 Payment Required"""
|
||||||
|
|
||||||
|
message = "Payment required."
|
||||||
|
|
||||||
|
|
||||||
class NotLettersForbiddenError(NotLettersAPIError):
|
class NotLettersForbiddenError(NotLettersAPIError):
|
||||||
"""403 Forbidden"""
|
"""403 Forbidden"""
|
||||||
|
|
||||||
|
message = "Forbidden."
|
||||||
|
|
||||||
|
|
||||||
class NotLettersNotFoundError(NotLettersAPIError):
|
class NotLettersNotFoundError(NotLettersAPIError):
|
||||||
"""404 Not Found"""
|
"""404 Not Found"""
|
||||||
|
|
||||||
|
message = "Resource not found."
|
||||||
|
|
||||||
|
|
||||||
class NotLettersInternalServerError(NotLettersAPIError):
|
class NotLettersInternalServerError(NotLettersAPIError):
|
||||||
"""500 Internal Server Error"""
|
"""500 Internal Server Error"""
|
||||||
|
|
||||||
|
message = "Internal server error."
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
[build-system]
|
||||||
|
requires = ["hatchling"]
|
||||||
|
build-backend = "hatchling.build"
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
authors = [{name = "LORES"}]
|
authors = [{name = "LORES"}]
|
||||||
classifiers = [
|
classifiers = [
|
||||||
@ -12,7 +16,6 @@ dependencies = [
|
|||||||
"stollen>=0.6.8",
|
"stollen>=0.6.8",
|
||||||
]
|
]
|
||||||
description = "A lightweight NotLetters SDK based on stollen."
|
description = "A lightweight NotLetters SDK based on stollen."
|
||||||
dynamic = ["version"]
|
|
||||||
keywords = [
|
keywords = [
|
||||||
"letters",
|
"letters",
|
||||||
"mails",
|
"mails",
|
||||||
@ -22,6 +25,7 @@ keywords = [
|
|||||||
license-files = ["LICENSE"]
|
license-files = ["LICENSE"]
|
||||||
name = "notletters"
|
name = "notletters"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
version = "0.1.1"
|
||||||
requires-python = ">=3.9"
|
requires-python = ">=3.9"
|
||||||
|
|
||||||
[project.urls]
|
[project.urls]
|
||||||
@ -90,8 +94,10 @@ ignore-names = []
|
|||||||
[tool.ruff.lint.pylint]
|
[tool.ruff.lint.pylint]
|
||||||
allow-magic-value-types = []
|
allow-magic-value-types = []
|
||||||
|
|
||||||
[tool.setuptools.dynamic]
|
[tool.tomlsort]
|
||||||
version = {attr = "notletters.__version__"}
|
all = true
|
||||||
|
sort_first = ["project"]
|
||||||
|
trailing_comma_inline_array = true
|
||||||
|
|
||||||
[tool.uv]
|
[tool.uv]
|
||||||
cache-dir = ".cache/uv"
|
cache-dir = ".cache/uv"
|
||||||
|
Reference in New Issue
Block a user