Skip to content

Warfere/eso-api-wrapper

Repository files navigation

Eso api wrapper

In this README 👇

Features

This template repository comes with all of the boilerplate needed for:

⚙️ Robust (and free) CI with GitHub Actions:

  • Unit tests ran with PyTest against multiple Python versions and operating systems.
  • Type checking with mypy.
  • Linting with pylint.
  • Formatting with black.

Usage

Initial setup

First you have to register for api_key and whitelist your IP. https://www.eso.lt/web/api-paslaugos-uzsakymas/307

Install package

pip install eso_api

after installing

from eso_api import EsoApi,Headers

eso = EsoApi(Headers(api_key=API_KEY))
date = datetime(2024, 3, 1, 0, 0, 0)
response = eso.get_obejects(date)

In case of some issues, server will return 200 but will have body:

{"statusCode": 401, "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription."}

Contributing

If you find a bug 🐛, please open a bug report. If you have an idea for an improvement or new feature 🚀, please open a feature request.

About

wrapper for eso api

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages