Skip to content
This repository was archived by the owner on Feb 15, 2024. It is now read-only.
This repository was archived by the owner on Feb 15, 2024. It is now read-only.

Refactoring #75

@DarkCat09

Description

@DarkCat09
  • Fix detection by Aternos (see Refactoring #75 (comment) and parse_token returns wrong ajax token #85)
  • Create a BASE_URL constant in each module and use it to generate URLs, change /panel/ajax to /ajax (fixes 503 Server Error #74)
  • Parse a server page instead of requesting /panel/ajax/status.php to get lastStatus object (fixes 503 Server Error #74)
  • Fix 400 Bad Request
  • from_credentials -> instantiating AternosClient, configuring, calling login()
  • Patially rewrite atclient, move some methods into ataccount
  • When the previous task is done, we can set captcha solvers API key directly through atconn.session.captcha and, after that, call any endpoints including login() (fixes CloudflareChallengeError with valid API key #62)
  • getLogger in log.py instead of calling logging methods, create a debug field in AternosClient to configure debug logging
  • Automatically parse the server page to get lastStatus object if AternosClient.autoparse is set to true
  • Parse pages asynchronously where possible
  • Generate SEC token like Aternos does: 11 random symbols (alphanumeric) + 5 zeroes
  • Change the error code for unaccepted EULA, rewrite ServerStartError (fixes ServerStartError #79)
  • Fully rewrite AternosWss, I should finally understand how AsyncIO works and simplify the atwss logic (fixes i have this error : Task exception was never retrieved #69, Console isn't working if server is already started #68)
  • Update unit tests, setup CI/CD on GitHub, build and upload to PyPI on pushing to release branch (not main)
  • Update documentation

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions