API for retrieving (and storing) data from Elite: Dangerous websites and APIs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
Anna Wiggins f244526458 Return calculated assets from update_credits. 4 years ago
edmc @ eeb0770bbe Add edmc submodule. 4 years ago
.gitignore Add .gitignore 4 years ago
.gitmodules Add edmc submodule. 4 years ago
Readme.md Update readme to reflect new targets for the library. 4 years ago
__init__.py Initial commit. This is based on code from ed_tools and fvbot. 4 years ago
companion.py Implement the *proper* SSL hackery to get SSL requests working with pyinstaller. 4 years ago
inara.py Return calculated assets from update_credits. 4 years ago
requirements.txt Add requirements.txt 4 years ago



This is a simple python library that can:

  • Retrieve and store select data on http://inara.cz.
  • Retrieve data from the Elite: Dangerous Companion API.


The inara module subclasses requests_cache.core.CachedSession to provide a specialized HTTP session to talk to inara. Usage is simple:

from inara.inara import InaraSession

session = InaraSession(inara_username, inara_password)
info = session.get_cmdr_info()

If the logged-in user is a member of a Wing, you can get information about wing-mates like so:

info = session.get_cmdr_info(wing_id, cmdr_id)

where the 'id's are the numeric identifiers visible in inara's URLs.


This module just provides a cleaner interface on top of the companion module from the Elite Dangerous Market Connector.