![]() Sometime during development of the library I found a web-based tool that met my industrial and trading needs that helped me reach my financial goals. I had always struggled to earn the in-game money I needed to play the game the way that I wanted so I was dead set on building a industrial and trading empire to become a multi-billionaire. A Bloomberg Terminal for EVE Online if you will. As the project grew and my interests changed, the motivation for EVE API drastically pivoted towards a tool to give me the edge I needed for trading items on the open market. Several attempts to bring an EVEMon-like experience to the Mac have been tried and abandoned over the years.ĭevelopment began in 2013 during the period of time when I was playing solely on a Macbook Pro and wanted a tool similar to EVEMon. Players can create skill plans, manage their finances, read "eve-mail", manage their assets, and more for every character they have. The most widely used and respected tool is called EVEMon and is entirely focused on character management. It is intended to be free, distributed, and used with other third party Mac tools developed by the EVE Online player base. Now create a RedisCache object and pass it to the EsiPysi object from esipysy import EsiPysi from esipysy.EVE API is meant to be the backbone of these types of applications and responsible for transforming the information obtained from the game's API endpoints into usable objects. StrictRedis ( host = 'localhost', port = 6379, db = 0 ) First create a redis client.Įxample from redis-py import redis r = redis. They act just like a Dict with some extras.ĮsiPysi has caching provided by redis. response.headers - a CIMultiDict which is a special dict cabable of holding multiple of the same key because headers are funky.resonse.json() - The text decoded as json into a python Dict.response.text - The plain text of the body of the response.stop_session () Response ObjectĮsiPysi returns a response object called EsiResponse, it contains the following: When you are finished with a session, it is reccomended to stop it: await esi. execute ( categories = "character", search = "Flying Kiwi Sertan" ) set_auth ( auth )Īnd then you can execute that operation with parameters result = await op. from_refresh_token ( CLIENT_ID, CLIENT_SECRET, REFRESH_TOKEN ) op. from_authorization_code ( CLIENT_ID, CLIENT_SECRET, AUTHORIZATION_CODE ) auth = await EsiAuth. ![]() Or you can get it from less data such as an authorization code you got back from the callback or just a refresh token: from esipysi import EsiAuth auth = await EsiAuth. You can either get one from your client info, access token, refresh token, and expire datetime (in UTC) from esipysi import EsiAuth auth = EsiAuth ( CLIENT_ID, CLIENT_SECRET, ACCESS_TOKEN, REFRESH_TOKEN, EXPIRES_AT ) op. If it requires authorization you can use EsiAuth Now from that object you can create operations, pass the operation ID to the get_operation function op = esi. It also support the with syntax which will start and stop the sessions for you: async with EsiPysi ( "", user_agent = "Your User Agent Here" ). Start with an EsiPysi object, this will keep track of global settings like which Esi version to use (_latest is reccomended) and start a session from esipysi import EsiPysi esi = EsiPysi ( "", user_agent = "Your User Agent Here" ). Get familliar with the ESI reference and Eve SSO Automatic retries for certain error codes.Only validates that the parameters are in the Esi Swagger Spec, does not validate types/values.Uses asyncio and event loops so that the API calls are non-blocking.Fast API calling and JSON parsing using aiohttp.If your access token expires, EsiPysi will acquire a new one.To create a lightweight and fast tool which makes devloping with Esi easier. ![]() EsiPysi (pronounced like "Easy Peasy") is a utility for accessing the Eve api called Esi.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |