Compare commits

...

10 Commits

Author SHA1 Message Date
df543326c7 Updated README.md 2022-11-27 19:24:45 +01:00
f0d25549a5 Added mediatracker type 2022-10-18 19:13:29 +02:00
cc86f13c13 Added MIT license 2022-10-18 19:11:54 +02:00
66a602b06f Script now takes a config file as an optional arg 2022-07-22 15:16:04 +02:00
ffa8090399 Moved from .env to ini config format 2022-07-22 14:54:57 +02:00
4bf249a9fd Fixed MovieExistsValidator 2022-07-22 14:00:38 +02:00
aae074a573 Added pre-commit 2022-07-22 13:59:14 +02:00
a9ec3e3ebc Added Radarr support 2022-07-22 13:49:21 +02:00
7b86003d9f Moved AnyDict to seperate file 2022-07-22 12:59:24 +02:00
ec2471a932 Added black formatter 2022-07-22 12:46:48 +02:00
14 changed files with 502 additions and 72 deletions

View File

@ -1,12 +0,0 @@
# Name of user to sync from
ANILIST_USERNAME=
# The Sonarr instance to sync to
SONARR_API_URL=
SONARR_API_KEY=
# Root folder to save the shows to
SONARR_FOLDER_PATH=
# IDs of the quality and language profiles to use
SONARR_QUALITY_PROFILE=4
SONARR_LANGUAGE_PROFILE=1

3
.gitignore vendored
View File

@ -158,3 +158,6 @@ cython_debug/
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
# Development
config.ini

17
.pre-commit-config.yaml Normal file
View File

@ -0,0 +1,17 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.1.0
hooks:
- id: reorder-python-imports
default_language_version:
python: python3.10

21
LICENSE.md Normal file
View File

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2022 niku
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@ -2,10 +2,16 @@
A small script for syncing your currently watching anime from AniList to Sonarr/Radarr.
## Usage
Assuming you have [poetry](https://python-poetry.org/docs/#installation) installed:
```sh
cp .env.example .env
$EDITOR .env
poetry install
poetry run python3 -m al_arr_sync
pip install git+https://git.cesium.pw/niku/al-arr-sync.git#egg=al-arr-sync
wget -O config.ini https://git.cesium.pw/niku/al-arr-sync/raw/branch/main/config.ini.example
nano config.ini
python -m al_arr_sync
```
In case you want to use a specific config:
```sh
python -m al_arr_sync ~/.config/al-arr-sync/config.ini
```

View File

@ -1,37 +1,51 @@
import os
import sys
import typing
from dotenv import load_dotenv
from al_arr_sync.anilist import AniListClient
from al_arr_sync.radarr import RadarrClient
from al_arr_sync.sonarr import SonarrClient
load_dotenv()
from al_arr_sync.types import DlAutomator, MediaTracker
from al_arr_sync.config import load_config
def main() -> int:
al = AniListClient()
sonarr = SonarrClient.from_env()
def main(args: typing.Sequence[str]) -> int:
cfg_path = args[0] if len(args) > 0 else "./config.ini"
cfg = load_config(cfg_path)
username = os.environ["ANILIST_USERNAME"]
al: MediaTracker = AniListClient()
sonarr: DlAutomator = SonarrClient.from_config(cfg)
radarr: DlAutomator = RadarrClient.from_config(cfg)
download_clients: typing.Dict[str, DlAutomator] = {
"TV": sonarr,
"MOVIE": radarr,
}
username = cfg["anilist"]["username"]
media = al.currently_watching(username)
series: typing.List[typing.Any] = []
for entry in media:
media_format = entry["media"]["format"]
if media_format == "TV":
series.append(entry)
show_name = entry["media"]["title"]["english"]
client: typing.Optional[DlAutomator] = download_clients.get(
media_format)
if client is None:
continue
results = client.lookup_series(show_name)
if len(results) == 0:
print(f"No results found for: {show_name}")
continue
for show in series:
show_name = show["media"]["title"]["english"]
results = sonarr.lookup_series(show_name)
try:
sonarr.add_series(results[0])
print(f"Successfully added series {show_name}")
client.add_series(results[0])
print(f"Successfully added: {show_name}")
except Exception as e:
print(e)
continue
return 0
if __name__ == "__main__":
raise SystemExit(main())
raise SystemExit(main(sys.argv[1:]))

View File

@ -1,8 +1,8 @@
import typing
from requests import Session
if typing.TYPE_CHECKING:
AnyDict = typing.Dict[typing.Any, typing.Any]
from al_arr_sync.types import AnyDict
USER_WATCHING_QUERY = """
@ -28,12 +28,12 @@ class AniListClient:
self.graphql_api_url = "https://graphql.anilist.co/"
self.http_session = Session()
def currently_watching(self, username: str) -> typing.List['AnyDict']:
def currently_watching(self, username: str) -> typing.List[AnyDict]:
resp = self.http_session.post(
self.graphql_api_url,
json={"query": USER_WATCHING_QUERY, "variables": {"userName": username}},
)
resp_data: 'AnyDict' = resp.json()
resp_data: AnyDict = resp.json()
if errors := resp_data.get("errors"):
raise Exception(errors)

7
al_arr_sync/config.py Normal file
View File

@ -0,0 +1,7 @@
import configparser
def load_config(path: str) -> configparser.ConfigParser:
config = configparser.ConfigParser()
config.read(path)
return config

83
al_arr_sync/radarr.py Normal file
View File

@ -0,0 +1,83 @@
import os
import configparser
import typing
from urllib.parse import urljoin
from requests import PreparedRequest
from requests import Session
from al_arr_sync.types import AnyDict
class RadarrClient:
def __init__(
self, api_url: str, api_key: str, folder_path: str, quality_profile: int = 4
) -> None:
self.api_url = api_url
self.api_key = api_key
self.folder_path = folder_path
self.quality_profile = quality_profile
self.http_session = Session()
@staticmethod
def from_env() -> "RadarrClient":
return RadarrClient(
api_url=os.environ["SONARR_API_URL"],
api_key=os.environ["SONARR_API_KEY"],
folder_path=os.environ["SONARR_FOLDER_PATH"],
quality_profile=int(os.environ["SONARR_QUALITY_PROFILE"]),
)
@staticmethod
def from_config(cfg: configparser.ConfigParser) -> "RadarrClient":
return RadarrClient(
api_url=cfg["radarr"]["api_url"],
api_key=cfg["radarr"]["api_key"],
folder_path=cfg["radarr"]["folder_path"],
quality_profile=int(cfg["radarr"]["quality_profile"]),
)
def _prepare_request(
self,
endpoint: str,
method: str = "GET",
params: AnyDict = {},
json: typing.Optional[AnyDict] = None,
) -> PreparedRequest:
url = urljoin(self.api_url, endpoint)
headers = {"X-Api-Key": self.api_key}
req = PreparedRequest()
req.prepare(method=method, url=url, headers=headers, params=params, json=json)
return req
def lookup_series(self, query: str) -> typing.List[AnyDict]:
req = self._prepare_request("/api/v3/movie/lookup", params={"term": query})
resp = self.http_session.send(req)
return resp.json()
def add_series(self, *series: AnyDict):
for show in series:
payload: AnyDict = show.copy()
payload.update(
{
"addOptions": {
"searchForMovie": True,
"ignoreEpisodesWithFiles": False,
"ignoreEpisodesWithoutFiles": False,
},
"rootFolderPath": self.folder_path,
"qualityProfileId": self.quality_profile,
}
)
req = self._prepare_request("/api/v3/movie", method="POST", json=payload)
resp = self.http_session.send(req)
if resp.status_code != 201:
resp_data = resp.json()
error_codes = map(lambda x: x["errorCode"], resp_data)
if "MovieExistsValidator" in error_codes:
raise Exception(f"Movie already exists: {show['title']}")
raise Exception(f"Failed to add movie: {show['title']}:\n{resp_data}")

View File

@ -1,47 +1,73 @@
import typing
from requests import Session
from requests import PreparedRequest
import configparser
import os
import typing
from urllib.parse import urljoin
if typing.TYPE_CHECKING:
AnyDict = typing.Dict[typing.Any, typing.Any]
from requests import PreparedRequest
from requests import Session
from al_arr_sync.types import AnyDict
class SonarrClient:
def __init__(self, sonarr_url: str, api_key: str) -> None:
self.sonarr_url = sonarr_url
def __init__(
self,
api_url: str,
api_key: str,
folder_path: str,
quality_profile: int = 4,
language_profile: int = 1,
) -> None:
self.api_url = api_url
self.api_key = api_key
self.folder_path = folder_path
self.quality_profile = quality_profile
self.language_profile = language_profile
self.http_session = Session()
@staticmethod
def from_env() -> "SonarrClient":
return SonarrClient(
sonarr_url=os.environ["SONARR_API_URL"],
api_url=os.environ["SONARR_API_URL"],
api_key=os.environ["SONARR_API_KEY"],
folder_path=os.environ["SONARR_FOLDER_PATH"],
quality_profile=int(os.environ["SONARR_QUALITY_PROFILE"]),
language_profile=int(os.environ["SONARR_LANGUAGE_PROFILE"]),
)
@staticmethod
def from_config(cfg: configparser.ConfigParser) -> "SonarrClient":
return SonarrClient(
api_url=cfg["sonarr"]["api_url"],
api_key=cfg["sonarr"]["api_key"],
folder_path=cfg["sonarr"]["folder_path"],
quality_profile=int(cfg["sonarr"]["quality_profile"]),
language_profile=int(cfg["sonarr"]["language_profile"]),
)
def _prepare_request(
self,
endpoint: str,
method: str = "GET",
params: 'AnyDict' = {},
json: typing.Optional['AnyDict'] = None,
params: AnyDict = {},
json: typing.Optional[AnyDict] = None,
) -> PreparedRequest:
url = urljoin(self.sonarr_url, endpoint)
url = urljoin(self.api_url, endpoint)
headers = {"X-Api-Key": self.api_key}
req = PreparedRequest()
req.prepare(method=method, url=url, headers=headers, params=params, json=json)
return req
def lookup_series(self, title: str) -> typing.List['AnyDict']:
req = self._prepare_request("/api/v3/series/lookup", params={"term": title})
def lookup_series(self, query: str) -> typing.List[AnyDict]:
req = self._prepare_request("/api/v3/series/lookup", params={"term": query})
resp = self.http_session.send(req)
return resp.json()
def add_series(self, *series: 'AnyDict'):
def add_series(self, *series: AnyDict):
for show in series:
payload: 'AnyDict' = show.copy()
payload: AnyDict = show.copy()
payload.update(
{
"addOptions": {
@ -49,13 +75,18 @@ class SonarrClient:
"searchForCutoffUnmetEpisodes": False,
"searchForMissingEpisodes": False,
},
"rootFolderPath": os.environ["SONARR_FOLDER_PATH"],
"qualityProfileId": int(os.environ["SONARR_QUALITY_PROFILE"]),
"languageProfileId": int(os.environ["SONARR_LANGUAGE_PROFILE"]),
"rootFolderPath": self.folder_path,
"qualityProfileId": self.quality_profile,
"languageProfileId": self.language_profile,
}
)
req = self._prepare_request("/api/v3/series", method="POST", json=payload)
resp = self.http_session.send(req)
if resp.status_code != 201:
raise Exception(f"Failed to add series {show['title']}:\n{resp.json()}")
resp_data = resp.json()
error_codes = map(lambda x: x["errorCode"], resp_data)
if "SeriesExistsValidator" in error_codes:
raise Exception(f"Series already exists: {show['title']}")
raise Exception(f"Failed to add series: {show['title']}:\n{resp_data}")

18
al_arr_sync/types.py Normal file
View File

@ -0,0 +1,18 @@
import typing
AnyDict = typing.Dict[typing.Any, typing.Any]
class DlAutomator(typing.Protocol):
def lookup_series(self, query: str) -> typing.List[AnyDict]:
...
def add_series(self, *series: AnyDict):
...
class MediaTracker(typing.Protocol):
def currently_watching(self, username: str) -> typing.List[AnyDict]:
...

15
config.ini.example Normal file
View File

@ -0,0 +1,15 @@
[anilist]
username=
[sonarr]
api_url=
api_key=
folder_path=
quality_profile=4
language_profile=1
[radarr]
api_url=
api_key=
folder_path=
quality_profile=4

250
poetry.lock generated
View File

@ -20,6 +20,27 @@ docs = ["furo", "sphinx", "zope.interface", "sphinx-notfound-page"]
tests = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface", "cloudpickle"]
tests_no_zope = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "cloudpickle"]
[[package]]
name = "black"
version = "22.6.0"
description = "The uncompromising code formatter."
category = "dev"
optional = false
python-versions = ">=3.6.2"
[package.dependencies]
click = ">=8.0.0"
mypy-extensions = ">=0.4.3"
pathspec = ">=0.9.0"
platformdirs = ">=2"
tomli = {version = ">=1.1.0", markers = "python_full_version < \"3.11.0a7\""}
[package.extras]
colorama = ["colorama (>=0.4.3)"]
d = ["aiohttp (>=3.7.4)"]
jupyter = ["ipython (>=7.8.0)", "tokenize-rt (>=3.2.0)"]
uvloop = ["uvloop (>=0.15.2)"]
[[package]]
name = "certifi"
version = "2022.6.15"
@ -28,6 +49,14 @@ category = "main"
optional = false
python-versions = ">=3.6"
[[package]]
name = "cfgv"
version = "3.3.1"
description = "Validate configuration and produce human readable error messages."
category = "dev"
optional = false
python-versions = ">=3.6.1"
[[package]]
name = "charset-normalizer"
version = "2.1.0"
@ -39,6 +68,17 @@ python-versions = ">=3.6.0"
[package.extras]
unicode_backport = ["unicodedata2"]
[[package]]
name = "click"
version = "8.1.3"
description = "Composable command line interface toolkit"
category = "dev"
optional = false
python-versions = ">=3.7"
[package.dependencies]
colorama = {version = "*", markers = "platform_system == \"Windows\""}
[[package]]
name = "colorama"
version = "0.4.5"
@ -47,6 +87,37 @@ category = "dev"
optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
[[package]]
name = "distlib"
version = "0.3.5"
description = "Distribution utilities"
category = "dev"
optional = false
python-versions = "*"
[[package]]
name = "filelock"
version = "3.7.1"
description = "A platform independent file lock."
category = "dev"
optional = false
python-versions = ">=3.7"
[package.extras]
docs = ["furo (>=2021.8.17b43)", "sphinx (>=4.1)", "sphinx-autodoc-typehints (>=1.12)"]
testing = ["covdefaults (>=1.2.0)", "coverage (>=4)", "pytest (>=4)", "pytest-cov", "pytest-timeout (>=1.4.2)"]
[[package]]
name = "identify"
version = "2.5.2"
description = "File identification library for Python"
category = "dev"
optional = false
python-versions = ">=3.7"
[package.extras]
license = ["ukkonen"]
[[package]]
name = "idna"
version = "3.3"
@ -63,6 +134,22 @@ category = "dev"
optional = false
python-versions = ">=3.5"
[[package]]
name = "mypy-extensions"
version = "0.4.3"
description = "Experimental type system extensions for programs checked with the mypy typechecker."
category = "dev"
optional = false
python-versions = "*"
[[package]]
name = "nodeenv"
version = "1.7.0"
description = "Node.js virtual environment builder"
category = "dev"
optional = false
python-versions = ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*"
[[package]]
name = "packaging"
version = "21.3"
@ -74,6 +161,26 @@ python-versions = ">=3.6"
[package.dependencies]
pyparsing = ">=2.0.2,<3.0.5 || >3.0.5"
[[package]]
name = "pathspec"
version = "0.9.0"
description = "Utility library for gitignore style pattern matching of file paths."
category = "dev"
optional = false
python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7"
[[package]]
name = "platformdirs"
version = "2.5.2"
description = "A small Python module for determining appropriate platform-specific dirs, e.g. a \"user data dir\"."
category = "dev"
optional = false
python-versions = ">=3.7"
[package.extras]
docs = ["furo (>=2021.7.5b38)", "proselint (>=0.10.2)", "sphinx-autodoc-typehints (>=1.12)", "sphinx (>=4)"]
test = ["appdirs (==1.4.4)", "pytest-cov (>=2.7)", "pytest-mock (>=3.6)", "pytest (>=6)"]
[[package]]
name = "pluggy"
version = "0.13.1"
@ -85,6 +192,22 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
[package.extras]
dev = ["pre-commit", "tox"]
[[package]]
name = "pre-commit"
version = "2.20.0"
description = "A framework for managing and maintaining multi-language pre-commit hooks."
category = "dev"
optional = false
python-versions = ">=3.7"
[package.dependencies]
cfgv = ">=2.0.0"
identify = ">=1.0.0"
nodeenv = ">=0.11.1"
pyyaml = ">=5.1"
toml = "*"
virtualenv = ">=20.0.8"
[[package]]
name = "py"
version = "1.11.0"
@ -127,15 +250,12 @@ checkqa-mypy = ["mypy (==v0.761)"]
testing = ["argcomplete", "hypothesis (>=3.56)", "mock", "nose", "requests", "xmlschema"]
[[package]]
name = "python-dotenv"
version = "0.20.0"
description = "Read key-value pairs from a .env file and set them as environment variables"
category = "main"
name = "pyyaml"
version = "6.0"
description = "YAML parser and emitter for Python"
category = "dev"
optional = false
python-versions = ">=3.5"
[package.extras]
cli = ["click (>=5.0)"]
python-versions = ">=3.6"
[[package]]
name = "requests"
@ -155,6 +275,30 @@ urllib3 = ">=1.21.1,<1.27"
socks = ["PySocks (>=1.5.6,!=1.5.7)"]
use_chardet_on_py3 = ["chardet (>=3.0.2,<6)"]
[[package]]
name = "six"
version = "1.16.0"
description = "Python 2 and 3 compatibility utilities"
category = "dev"
optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*"
[[package]]
name = "toml"
version = "0.10.2"
description = "Python Library for Tom's Obvious, Minimal Language"
category = "dev"
optional = false
python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*"
[[package]]
name = "tomli"
version = "2.0.1"
description = "A lil' TOML parser"
category = "dev"
optional = false
python-versions = ">=3.7"
[[package]]
name = "urllib3"
version = "1.26.10"
@ -168,6 +312,24 @@ brotli = ["brotlicffi (>=0.8.0)", "brotli (>=1.0.9)", "brotlipy (>=0.6.0)"]
secure = ["pyOpenSSL (>=0.14)", "cryptography (>=1.3.4)", "idna (>=2.0.0)", "certifi", "ipaddress"]
socks = ["PySocks (>=1.5.6,!=1.5.7,<2.0)"]
[[package]]
name = "virtualenv"
version = "20.15.1"
description = "Virtual Python Environment builder"
category = "dev"
optional = false
python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7"
[package.dependencies]
distlib = ">=0.3.1,<1"
filelock = ">=3.2,<4"
platformdirs = ">=2,<3"
six = ">=1.9.0,<2"
[package.extras]
docs = ["proselint (>=0.10.2)", "sphinx (>=3)", "sphinx-argparse (>=0.2.5)", "sphinx-rtd-theme (>=0.4.3)", "towncrier (>=21.3)"]
testing = ["coverage (>=4)", "coverage-enable-subprocess (>=1)", "flaky (>=3)", "pytest (>=4)", "pytest-env (>=0.6.2)", "pytest-freezegun (>=0.4.1)", "pytest-mock (>=2)", "pytest-randomly (>=1)", "pytest-timeout (>=1)", "packaging (>=20.0)"]
[[package]]
name = "wcwidth"
version = "0.2.5"
@ -179,7 +341,7 @@ python-versions = "*"
[metadata]
lock-version = "1.1"
python-versions = "^3.10"
content-hash = "0bb20f685f44a2bcb9319b8f7049a0a67e23e1b0716404f29cec7fff6c0ef8ac"
content-hash = "f9fcae0bb7bb64dcd825eaba7f83945316eaa5c7a0747271ba135d028c48e275"
[metadata.files]
atomicwrites = []
@ -187,9 +349,18 @@ attrs = [
{file = "attrs-21.4.0-py2.py3-none-any.whl", hash = "sha256:2d27e3784d7a565d36ab851fe94887c5eccd6a463168875832a1be79c82828b4"},
{file = "attrs-21.4.0.tar.gz", hash = "sha256:626ba8234211db98e869df76230a137c4c40a12d72445c45d5f5b716f076e2fd"},
]
black = []
certifi = []
cfgv = []
charset-normalizer = []
click = [
{file = "click-8.1.3-py3-none-any.whl", hash = "sha256:bb4d8133cb15a609f44e8213d9b391b0809795062913b383c62be0ee95b1db48"},
{file = "click-8.1.3.tar.gz", hash = "sha256:7682dc8afb30297001674575ea00d1814d808d6a36af415a82bd481d37ba7b8e"},
]
colorama = []
distlib = []
filelock = []
identify = []
idna = [
{file = "idna-3.3-py3-none-any.whl", hash = "sha256:84d9dd047ffa80596e0f246e2eab0b391788b0503584e8945f2368256d2735ff"},
{file = "idna-3.3.tar.gz", hash = "sha256:9d643ff0a55b762d5cdb124b8eaa99c66322e2157b69160bc32796e824360e6d"},
@ -198,14 +369,28 @@ more-itertools = [
{file = "more-itertools-8.13.0.tar.gz", hash = "sha256:a42901a0a5b169d925f6f217cd5a190e32ef54360905b9c39ee7db5313bfec0f"},
{file = "more_itertools-8.13.0-py3-none-any.whl", hash = "sha256:c5122bffc5f104d37c1626b8615b511f3427aa5389b94d61e5ef8236bfbc3ddb"},
]
mypy-extensions = [
{file = "mypy_extensions-0.4.3-py2.py3-none-any.whl", hash = "sha256:090fedd75945a69ae91ce1303b5824f428daf5a028d2f6ab8a299250a846f15d"},
{file = "mypy_extensions-0.4.3.tar.gz", hash = "sha256:2d82818f5bb3e369420cb3c4060a7970edba416647068eb4c5343488a6c604a8"},
]
nodeenv = []
packaging = [
{file = "packaging-21.3-py3-none-any.whl", hash = "sha256:ef103e05f519cdc783ae24ea4e2e0f508a9c99b2d4969652eed6a2e1ea5bd522"},
{file = "packaging-21.3.tar.gz", hash = "sha256:dd47c42927d89ab911e606518907cc2d3a1f38bbd026385970643f9c5b8ecfeb"},
]
pathspec = [
{file = "pathspec-0.9.0-py2.py3-none-any.whl", hash = "sha256:7d15c4ddb0b5c802d161efc417ec1a2558ea2653c2e8ad9c19098201dc1c993a"},
{file = "pathspec-0.9.0.tar.gz", hash = "sha256:e564499435a2673d586f6b2130bb5b95f04a3ba06f81b8f895b651a3c76aabb1"},
]
platformdirs = [
{file = "platformdirs-2.5.2-py3-none-any.whl", hash = "sha256:027d8e83a2d7de06bbac4e5ef7e023c02b863d7ea5d079477e722bb41ab25788"},
{file = "platformdirs-2.5.2.tar.gz", hash = "sha256:58c8abb07dcb441e6ee4b11d8df0ac856038f944ab98b7be6b27b2a3c7feef19"},
]
pluggy = [
{file = "pluggy-0.13.1-py2.py3-none-any.whl", hash = "sha256:966c145cd83c96502c3c3868f50408687b38434af77734af1e9ca461a4081d2d"},
{file = "pluggy-0.13.1.tar.gz", hash = "sha256:15b2acde666561e1298d71b523007ed7364de07029219b604cf808bfa1c765b0"},
]
pre-commit = []
py = [
{file = "py-1.11.0-py2.py3-none-any.whl", hash = "sha256:607c53218732647dff4acdfcd50cb62615cedf612e72d1724fb1a0cc6405b378"},
{file = "py-1.11.0.tar.gz", hash = "sha256:51c75c4126074b472f746a24399ad32f6053d1b34b68d2fa41e558e6f4a98719"},
@ -218,12 +403,53 @@ pytest = [
{file = "pytest-5.4.3-py3-none-any.whl", hash = "sha256:5c0db86b698e8f170ba4582a492248919255fcd4c79b1ee64ace34301fb589a1"},
{file = "pytest-5.4.3.tar.gz", hash = "sha256:7979331bfcba207414f5e1263b5a0f8f521d0f457318836a7355531ed1a4c7d8"},
]
python-dotenv = [
{file = "python-dotenv-0.20.0.tar.gz", hash = "sha256:b7e3b04a59693c42c36f9ab1cc2acc46fa5df8c78e178fc33a8d4cd05c8d498f"},
{file = "python_dotenv-0.20.0-py3-none-any.whl", hash = "sha256:d92a187be61fe482e4fd675b6d52200e7be63a12b724abbf931a40ce4fa92938"},
pyyaml = [
{file = "PyYAML-6.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:d4db7c7aef085872ef65a8fd7d6d09a14ae91f691dec3e87ee5ee0539d516f53"},
{file = "PyYAML-6.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:9df7ed3b3d2e0ecfe09e14741b857df43adb5a3ddadc919a2d94fbdf78fea53c"},
{file = "PyYAML-6.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:77f396e6ef4c73fdc33a9157446466f1cff553d979bd00ecb64385760c6babdc"},
{file = "PyYAML-6.0-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:a80a78046a72361de73f8f395f1f1e49f956c6be882eed58505a15f3e430962b"},
{file = "PyYAML-6.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:f84fbc98b019fef2ee9a1cb3ce93e3187a6df0b2538a651bfb890254ba9f90b5"},
{file = "PyYAML-6.0-cp310-cp310-win32.whl", hash = "sha256:2cd5df3de48857ed0544b34e2d40e9fac445930039f3cfe4bcc592a1f836d513"},
{file = "PyYAML-6.0-cp310-cp310-win_amd64.whl", hash = "sha256:daf496c58a8c52083df09b80c860005194014c3698698d1a57cbcfa182142a3a"},
{file = "PyYAML-6.0-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:897b80890765f037df3403d22bab41627ca8811ae55e9a722fd0392850ec4d86"},
{file = "PyYAML-6.0-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:50602afada6d6cbfad699b0c7bb50d5ccffa7e46a3d738092afddc1f9758427f"},
{file = "PyYAML-6.0-cp36-cp36m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:48c346915c114f5fdb3ead70312bd042a953a8ce5c7106d5bfb1a5254e47da92"},
{file = "PyYAML-6.0-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:98c4d36e99714e55cfbaaee6dd5badbc9a1ec339ebfc3b1f52e293aee6bb71a4"},
{file = "PyYAML-6.0-cp36-cp36m-win32.whl", hash = "sha256:0283c35a6a9fbf047493e3a0ce8d79ef5030852c51e9d911a27badfde0605293"},
{file = "PyYAML-6.0-cp36-cp36m-win_amd64.whl", hash = "sha256:07751360502caac1c067a8132d150cf3d61339af5691fe9e87803040dbc5db57"},
{file = "PyYAML-6.0-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:819b3830a1543db06c4d4b865e70ded25be52a2e0631ccd2f6a47a2822f2fd7c"},
{file = "PyYAML-6.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:473f9edb243cb1935ab5a084eb238d842fb8f404ed2193a915d1784b5a6b5fc0"},
{file = "PyYAML-6.0-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:0ce82d761c532fe4ec3f87fc45688bdd3a4c1dc5e0b4a19814b9009a29baefd4"},
{file = "PyYAML-6.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:231710d57adfd809ef5d34183b8ed1eeae3f76459c18fb4a0b373ad56bedcdd9"},
{file = "PyYAML-6.0-cp37-cp37m-win32.whl", hash = "sha256:c5687b8d43cf58545ade1fe3e055f70eac7a5a1a0bf42824308d868289a95737"},
{file = "PyYAML-6.0-cp37-cp37m-win_amd64.whl", hash = "sha256:d15a181d1ecd0d4270dc32edb46f7cb7733c7c508857278d3d378d14d606db2d"},
{file = "PyYAML-6.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:0b4624f379dab24d3725ffde76559cff63d9ec94e1736b556dacdfebe5ab6d4b"},
{file = "PyYAML-6.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:213c60cd50106436cc818accf5baa1aba61c0189ff610f64f4a3e8c6726218ba"},
{file = "PyYAML-6.0-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:9fa600030013c4de8165339db93d182b9431076eb98eb40ee068700c9c813e34"},
{file = "PyYAML-6.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:277a0ef2981ca40581a47093e9e2d13b3f1fbbeffae064c1d21bfceba2030287"},
{file = "PyYAML-6.0-cp38-cp38-win32.whl", hash = "sha256:d4eccecf9adf6fbcc6861a38015c2a64f38b9d94838ac1810a9023a0609e1b78"},
{file = "PyYAML-6.0-cp38-cp38-win_amd64.whl", hash = "sha256:1e4747bc279b4f613a09eb64bba2ba602d8a6664c6ce6396a4d0cd413a50ce07"},
{file = "PyYAML-6.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:055d937d65826939cb044fc8c9b08889e8c743fdc6a32b33e2390f66013e449b"},
{file = "PyYAML-6.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:e61ceaab6f49fb8bdfaa0f92c4b57bcfbea54c09277b1b4f7ac376bfb7a7c174"},
{file = "PyYAML-6.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d67d839ede4ed1b28a4e8909735fc992a923cdb84e618544973d7dfc71540803"},
{file = "PyYAML-6.0-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:cba8c411ef271aa037d7357a2bc8f9ee8b58b9965831d9e51baf703280dc73d3"},
{file = "PyYAML-6.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:40527857252b61eacd1d9af500c3337ba8deb8fc298940291486c465c8b46ec0"},
{file = "PyYAML-6.0-cp39-cp39-win32.whl", hash = "sha256:b5b9eccad747aabaaffbc6064800670f0c297e52c12754eb1d976c57e4f74dcb"},
{file = "PyYAML-6.0-cp39-cp39-win_amd64.whl", hash = "sha256:b3d267842bf12586ba6c734f89d1f5b871df0273157918b0ccefa29deb05c21c"},
{file = "PyYAML-6.0.tar.gz", hash = "sha256:68fb519c14306fec9720a2a5b45bc9f0c8d1b9c72adf45c37baedfcd949c35a2"},
]
requests = []
six = [
{file = "six-1.16.0-py2.py3-none-any.whl", hash = "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"},
{file = "six-1.16.0.tar.gz", hash = "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"},
]
toml = []
tomli = [
{file = "tomli-2.0.1-py3-none-any.whl", hash = "sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc"},
{file = "tomli-2.0.1.tar.gz", hash = "sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f"},
]
urllib3 = []
virtualenv = []
wcwidth = [
{file = "wcwidth-0.2.5-py2.py3-none-any.whl", hash = "sha256:beb4802a9cebb9144e99086eff703a642a13d6a0052920003a230f3294bbe784"},
{file = "wcwidth-0.2.5.tar.gz", hash = "sha256:c4d647b99872929fdb7bdcaa4fbe7f01413ed3d98077df798530e5b04f116c83"},

View File

@ -6,11 +6,12 @@ authors = ["strNophix <nvdpoel01@gmail.com>"]
[tool.poetry.dependencies]
python = "^3.10"
python-dotenv = "^0.20.0"
requests = "^2.28.1"
[tool.poetry.dev-dependencies]
pytest = "^5.2"
black = {version = "^22.6.0", allow-prereleases = true}
pre-commit = "^2.20.0"
[build-system]
requires = ["poetry-core>=1.0.0"]