From c8d6d54e298de305ab996faab5b8812c12d5c5d6 Mon Sep 17 00:00:00 2001 From: purarue <7804791+purarue@users.noreply.github.com> Date: Thu, 24 Oct 2024 15:49:40 -0700 Subject: [PATCH] chore: update urls --- LICENSE | 2 +- README.md | 20 ++++++++++---------- chess_export/chessdotcom/export.py | 2 +- setup.cfg | 5 ++--- 4 files changed, 14 insertions(+), 15 deletions(-) diff --git a/LICENSE b/LICENSE index c1304ab..3b9dab4 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2021 Sean Breckenridge +Copyright (c) 2021 purarue Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 4334ba3..b49f55b 100644 --- a/README.md +++ b/README.md @@ -26,9 +26,9 @@ The `inspect` command just accepts the file as the first argument, like `chess_e The only required argument is your username, the API serves public data and has no serial rate limit ``` -$ chess_export chessdotcom export seanbreckenridge >data.json -Requesting https://api.chess.com/pub/player/seanbreckenridge/games/archives -Requesting https://api.chess.com/pub/player/seanbreckenridge/games/2021/01 +$ chess_export chessdotcom export purarue >data.json +Requesting https://api.chess.com/pub/player/purarue/games/archives +Requesting https://api.chess.com/pub/player/purarue/games/2021/01 ... ``` @@ -41,8 +41,8 @@ To do that, you can pass the `--user-agent-email` flag or set the `CHESSDOTCOM_U Requires your username and a [token](https://lichess.org/account/oauth/token/create?description=lichess+export) (this requires no extra scopes). The token can be provided with the `--token` flag or by setting the `LICHESS_TOKEN` environment variable. ``` -$ chess_export lichess export seanbreckenridge > data.json -Requesting https://lichess.org/api/games/user/seanbreckenridge?pgnInJson=true +$ chess_export lichess export purarue > data.json +Requesting https://lichess.org/api/games/user/purarue?pgnInJson=true ``` ### Example @@ -50,10 +50,10 @@ Requesting https://lichess.org/api/games/user/seanbreckenridge?pgnInJson=true The games are described in [`PGN`](https://en.wikipedia.org/wiki/Portable_Game_Notation) (which can be parsed using the [`chess`](https://python-chess.readthedocs.io/en/latest/pgn.html) package) ``` -$ chess_export chessdotcom export seanbreckenridge >data.json -Requesting https://api.chess.com/pub/player/seanbreckenridge/games/archives -Requesting https://api.chess.com/pub/player/seanbreckenridge/games/2021/01 -Requesting https://api.chess.com/pub/player/seanbreckenridge/games/2021/02 +$ chess_export chessdotcom export purarue >data.json +Requesting https://api.chess.com/pub/player/purarue/games/archives +Requesting https://api.chess.com/pub/player/purarue/games/2021/01 +Requesting https://api.chess.com/pub/player/purarue/games/2021/02 $ chess_export chessdotcom inspect data.json In [1]: import io, chess.pgn @@ -79,7 +79,7 @@ The information returned by `chess.com`/`lichess` are slightly different, see th ### Tests ```bash -git clone 'https://github.com/seanbreckenridge/chess_export' +git clone 'https://github.com/purarue/chess_export' cd ./chess_export pip install '.[testing]' mypy ./chess_export diff --git a/chess_export/chessdotcom/export.py b/chess_export/chessdotcom/export.py index ff2740b..4e7cc46 100644 --- a/chess_export/chessdotcom/export.py +++ b/chess_export/chessdotcom/export.py @@ -15,7 +15,7 @@ def _user_agent(user_agent_email: Optional[str] = None) -> Dict[str, str]: user_agent_email = os.environ["CHESSDOTCOM_USER_AGENT_EMAIL"] if user_agent_email: return { - "User-Agent": f"https://github.com/seanbreckenridge/chess_export {user_agent_email}" + "User-Agent": f"https://github.com/purarue/chess_export {user_agent_email}" } return {} diff --git a/setup.cfg b/setup.cfg index 50bbf0b..793c7f0 100644 --- a/setup.cfg +++ b/setup.cfg @@ -4,9 +4,8 @@ version = 0.1.1 description = Export your chess.com/lichess.org games long_description = file: README.md long_description_content_type = text/markdown -url = https://github.com/seanbreckenridge/chess_export -author = Sean Breckenridge -author_email = "seanbrecke@gmail.com" +url = https://github.com/purarue/chess_export +author = purarue license = MIT license_files = LICENSE classifiers =